From 3ebf7daa3baf093367680ed3efbbd91152cd957d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 12 May 2022 14:58:05 +0200 Subject: [PATCH] Update to version 1.4.0; Fixes RHBZ#2080708 --- .gitignore | 1 + async-process-fix-metadata.diff | 12 ++++++++---- rust-async-process.spec | 27 +++++++++++++-------------- sources | 2 +- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index fb8d027..7cadc9b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /async-process-1.1.0.crate /async-process-1.2.0.crate /async-process-1.3.0.crate +/async-process-1.4.0.crate diff --git a/async-process-fix-metadata.diff b/async-process-fix-metadata.diff index 2b5c825..dc10635 100644 --- a/async-process-fix-metadata.diff +++ b/async-process-fix-metadata.diff @@ -1,13 +1,17 @@ ---- async-process-1.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ async-process-1.3.0/Cargo.toml 2021-11-11T11:32:36.266753+00:00 -@@ -42,10 +42,3 @@ +--- async-process-1.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-process-1.4.0/Cargo.toml 2022-05-12T12:56:11.928944+00:00 +@@ -54,14 +54,3 @@ version = "0.3.0" features = ["iterator"] default-features = false +- -[target."cfg(windows)".dependencies.blocking] -version = "1.0.0" - -[target."cfg(windows)".dependencies.winapi] -version = "0.3.9" --features = ["winbase", "winnt"] +-features = [ +- "winbase", +- "winnt", +-] -default-features = false diff --git a/rust-async-process.spec b/rust-async-process.spec index 9270b54..b077367 100644 --- a/rust-async-process.spec +++ b/rust-async-process.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate async-process Name: rust-%{crate} -Version: 1.3.0 +Version: 1.4.0 Release: %autorelease Summary: Async interface for working with processes @@ -18,11 +18,8 @@ Source: %{crates_source} Patch0: async-process-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Async interface for working with processes.} @@ -35,13 +32,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +48,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 1ce94c7..e8152b5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-process-1.3.0.crate) = da151b84b0986b3e6d42e2be71c6931daae98c27b4a8f712e5174eafae4d0ca739bbdaa09065815799a65b5553e8cfdd71be021ec32d630d664c0e1b4e47f6e2 +SHA512 (async-process-1.4.0.crate) = e57bc0a223939bd01feb41ab8b2d8b7e86b9efeb4f77fe71f0845756d9ed3d20203e37a7f22662fbd0f3dd2cd8e35b39cce5d9381be2bf0973161f465c939a80