From 96584111f8611401e83dc64c2e386c35374ae8b1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 5 Jan 2024 18:44:45 +0100 Subject: [PATCH] Update to version 3.2.0; Fixes RHBZ#2245932 --- .gitignore | 1 + async-lock-fix-metadata-auto.diff | 10 +++++----- rust-async-lock.spec | 22 +++++++++++++++++----- sources | 2 +- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 701f28c..95228fe 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /async-lock-2.6.0.crate /async-lock-2.7.0.crate /async-lock-2.8.0.crate +/async-lock-3.2.0.crate diff --git a/async-lock-fix-metadata-auto.diff b/async-lock-fix-metadata-auto.diff index 0e1e399..6458e70 100644 --- a/async-lock-fix-metadata-auto.diff +++ b/async-lock-fix-metadata-auto.diff @@ -1,8 +1,8 @@ ---- async-lock-2.8.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ async-lock-2.8.0/Cargo.toml 2023-08-27T12:03:31.820273+00:00 -@@ -47,5 +47,3 @@ - [dev-dependencies.waker-fn] - version = "1.1.0" +--- async-lock-3.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-lock-3.2.0/Cargo.toml 2024-01-05T17:41:16.349142+00:00 +@@ -62,5 +62,3 @@ + "event-listener-strategy/std", + ] -[target."cfg(any(target_arch = \"wasm32\", target_arch = \"wasm64\"))".dev-dependencies.wasm-bindgen-test] -version = "0.3" diff --git a/rust-async-lock.spec b/rust-async-lock.spec index 90aa1b0..1bf989b 100644 --- a/rust-async-lock.spec +++ b/rust-async-lock.spec @@ -1,21 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate async-lock Name: rust-async-lock -Version: 2.8.0 +Version: 3.2.0 Release: %autorelease Summary: Async synchronization primitives License: Apache-2.0 OR MIT URL: https://crates.io/crates/async-lock Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: async-lock-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Async synchronization primitives.} @@ -50,8 +50,20 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index f5bf0da..abdbb6a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-lock-2.8.0.crate) = f48732dd8e5de0228f56780adb87e4d9870496ddbfe4cc7c6aace8d4cd7198627a05ff0358fb33ed57480c7ac886b57253fc73b2bbcd3e8cfe65624b51847ae1 +SHA512 (async-lock-3.2.0.crate) = 46b449c5d24357ec4d47d5e77bd1305e0fcf282dd2658d63804928cab4435fdf9c9344a18df4292af816737c5d3c07b30a63846ce42d61fd4f7981606e6516fd