From caa7e7e3e5263b5b22a1a7e3d6314bd4672497aa Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 16 Mar 2023 21:59:44 +0100 Subject: [PATCH] Update to version 1.1.0; Fixes RHBZ#2161050 --- .gitignore | 1 + README.md | 3 --- rust-atomic-waker.spec | 49 +++++++++++++++++++++++++----------------- sources | 2 +- 4 files changed, 31 insertions(+), 24 deletions(-) delete mode 100644 README.md diff --git a/.gitignore b/.gitignore index fa31205..b1027d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /atomic-waker-1.0.0.crate +/atomic-waker-1.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 21c68fd..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-atomic-waker - -The rust-atomic-waker package diff --git a/rust-atomic-waker.spec b/rust-atomic-waker.spec index 899c725..f24bdcb 100644 --- a/rust-atomic-waker.spec +++ b/rust-atomic-waker.spec @@ -1,28 +1,22 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate atomic-waker -Name: rust-%{crate} -Version: 1.0.0 +Name: rust-atomic-waker +Version: 1.1.0 Release: %autorelease Summary: Synchronization primitive for task wakeup -# 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/atomic-waker Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Synchronization primitive for task wakeup.} +A synchronization primitive for task wakeup.} %description %{_description} @@ -32,13 +26,16 @@ 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 +%license %{crate_instdir}/LICENSE-THIRD-PARTY +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +43,23 @@ 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 + +%package -n %{name}+portable-atomic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+portable-atomic-devel %{_description} + +This package contains library source intended for building other packages which +use the "portable-atomic" feature of the "%{crate}" crate. + +%files -n %{name}+portable-atomic-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 207efbf..d049247 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (atomic-waker-1.0.0.crate) = cbc3e12c10f20e1b6d9a03097159a098c5e3a50a941b742891bd39bf0f7310986bda3e1e4c2ea0dfc82a70d9d57342889c46c11fe0d328372a6b3abecf7fa9a6 +SHA512 (atomic-waker-1.1.0.crate) = 5ea19d897657ffd8315d3e492c1787d8bfa60c455f814a357d418e919f8b2dbb5884043793498b16298a3394afc42668e25478df89befdeb3af72f49ca710ba6