diff --git a/.gitignore b/.gitignore index 38c5806..6f35e27 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /async-channel-1.6.1.crate +/async-channel-1.7.1.crate diff --git a/async-channel-fix-metadata.patch b/async-channel-fix-metadata.patch deleted file mode 100644 index 9fa6933..0000000 --- a/async-channel-fix-metadata.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur a/Cargo.toml b/Cargo.toml ---- a/Cargo.toml 1969-12-31 16:00:00.000000000 -0800 -+++ b/Cargo.toml 2021-05-06 14:39:01.647519493 -0700 -@@ -30,8 +30,6 @@ - - [dependencies.futures-core] - version = "0.3.5" --[dev-dependencies.blocking] --version = "1" - - [dev-dependencies.easy-parallel] - version = "3.1.0" diff --git a/rust-async-channel.spec b/rust-async-channel.spec index ec9a68d..2de3059 100644 --- a/rust-async-channel.spec +++ b/rust-async-channel.spec @@ -1,27 +1,21 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate async-channel -Name: rust-%{crate} -Version: 1.6.1 +Name: rust-async-channel +Version: 1.7.1 Release: %autorelease Summary: Async multi-producer multi-consumer channel -# 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-channel Source: %{crates_source} -# Break circular dependency with blocking -Patch0: async-channel-fix-metadata.patch ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Async multi-producer multi-consumer channel.} @@ -34,13 +28,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 -%{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} @@ -48,11 +44,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 2e56247..6859b40 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (async-channel-1.6.1.crate) = 797b1f5b4c07853f78670e62b67fb787c329ffa2c89475a3767a963d524a69dce082cc7f3a2878d9c990f00ae2d9cd7e0d21743fc4186769c238467bdb20c65e +SHA512 (async-channel-1.7.1.crate) = 26c2fcc2b0f0bd1fb58826f7a0ef1bdd3069c02c00b7e59c2c7001f39d347df8c9882eee8682629ff8d94e88973186b20fcf2ee6885332024d181d3525866cd9