From aaf9eb26ae7ab41b1fe5815be5ad81d40b2ed943 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 3 Jan 2024 13:39:13 +0100 Subject: [PATCH] Update to version 2.1.1; Fixes RHBZ#2246036 --- .gitignore | 1 + async-channel-fix-metadata-auto.diff | 8 ++++++++ rust-async-channel.spec | 22 ++++++++++++++++++---- sources | 2 +- 4 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 async-channel-fix-metadata-auto.diff diff --git a/.gitignore b/.gitignore index 72b6854..8c14c22 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /async-channel-1.7.1.crate /async-channel-1.8.0.crate /async-channel-1.9.0.crate +/async-channel-2.1.1.crate diff --git a/async-channel-fix-metadata-auto.diff b/async-channel-fix-metadata-auto.diff new file mode 100644 index 0000000..16b6c50 --- /dev/null +++ b/async-channel-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- async-channel-2.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-channel-2.1.1/Cargo.toml 2023-12-31T17:36:17.961926+00:00 +@@ -65,5 +65,3 @@ + "event-listener-strategy/std", + ] + +-[target."cfg(target_family = \"wasm\")".dev-dependencies.wasm-bindgen-test] +-version = "0.3.37" diff --git a/rust-async-channel.spec b/rust-async-channel.spec index f39189c..e0fb87f 100644 --- a/rust-async-channel.spec +++ b/rust-async-channel.spec @@ -1,19 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate async-channel Name: rust-async-channel -Version: 1.9.0 +Version: 2.1.1 Release: %autorelease Summary: Async multi-producer multi-consumer channel License: Apache-2.0 OR MIT URL: https://crates.io/crates/async-channel Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: async-channel-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Async multi-producer multi-consumer channel.} @@ -48,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 4d0b82e..bcb3501 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-channel-1.9.0.crate) = cc624b87dbf34e4be4e219a82b96036396b92042025eeed2362d91f414ca17884365470fca5014b02659be44b77f20530ca33236dc427f0a2fcff2704c46c3dc +SHA512 (async-channel-2.1.1.crate) = 97fcdcb22fd701c2dc5ec9b2bf399cea81068be172b11b0745fec4ffa9b773906f6d121ca6c9408e1e3a9a9cddb36d81e99ea816e562975e7ab376e1ae6567f7