From 93edf22c22bfc3827d06422099f28421429e8a7b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 11 Nov 2022 13:26:11 +0100 Subject: [PATCH] Update to version 2.6.0; Fixes RHBZ#2137640 --- .gitignore | 1 + async-lock-fix-metadata-auto.diff | 8 ++++++++ async-lock-fix-metadata.diff | 9 --------- rust-async-lock.spec | 28 +++++++++++++--------------- sources | 2 +- 5 files changed, 23 insertions(+), 25 deletions(-) create mode 100644 async-lock-fix-metadata-auto.diff delete mode 100644 async-lock-fix-metadata.diff diff --git a/.gitignore b/.gitignore index a056cf5..1f890f3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /async-lock-2.4.0.crate /async-lock-2.5.0.crate +/async-lock-2.6.0.crate diff --git a/async-lock-fix-metadata-auto.diff b/async-lock-fix-metadata-auto.diff new file mode 100644 index 0000000..bb436db --- /dev/null +++ b/async-lock-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- async-lock-2.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-lock-2.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -44,5 +44,3 @@ + [dev-dependencies.fastrand] + version = "1.4.0" + +-[target."cfg(any(target_arch = \"wasm32\", target_arch = \"wasm64\"))".dev-dependencies.wasm-bindgen-test] +-version = "0.3" diff --git a/async-lock-fix-metadata.diff b/async-lock-fix-metadata.diff deleted file mode 100644 index 699378f..0000000 --- a/async-lock-fix-metadata.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- async-lock-2.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ async-lock-2.5.0/Cargo.toml 2022-02-20T23:04:15.014527+00:00 -@@ -42,6 +42,3 @@ - - [dev-dependencies.futures-lite] - version = "1.11.0" -- --[target."cfg(target_arch = \"wasm32\")".dev-dependencies.wasm-bindgen-test] --version = "0.3" diff --git a/rust-async-lock.spec b/rust-async-lock.spec index 2f85ff5..04fcecd 100644 --- a/rust-async-lock.spec +++ b/rust-async-lock.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate async-lock -Name: rust-%{crate} -Version: 2.5.0 +Name: rust-async-lock +Version: 2.6.0 Release: %autorelease Summary: Async synchronization primitives -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/async-lock Source: %{crates_source} -# Initial patched metadata -# * drop WASM-specific dependencies -Patch0: async-lock-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: async-lock-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Async synchronization primitives.} @@ -36,9 +32,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.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} @@ -50,7 +48,7 @@ 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 f4319b9..93643a2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-lock-2.5.0.crate) = 4b0a834b9f1b841421cf9af0d0f6826a7fcf91b5be208e3f3b923839475d866d9113b37011a9abe0daa5762f5b684b37db062360baf094810a219103fffbe62c +SHA512 (async-lock-2.6.0.crate) = 20cb5f5f37d4c4fd7f010d96ed79a924dcc7eee3584027c48ea0edc04d19158f080771acd63fe0534dc5762937a0c1ea8bce8df707526a9f245b5dda61317dad