From d2d28594b551b995b3783b81c1ffaa18a41eb519 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 10 Jan 2022 21:03:15 +0100 Subject: [PATCH 1/5] Update to version 0.9.2; Fixes RHBZ#1886624 --- .gitignore | 1 + rust-spin.spec | 150 +++++++++++++++++++++++++++++++++++++++++++++---- sources | 2 +- 3 files changed, 141 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index af20227..877e2cb 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /spin-0.4.10.crate /spin-0.5.0.crate /spin-0.5.2.crate +/spin-0.9.2.crate diff --git a/rust-spin.spec b/rust-spin.spec index d3e0e60..82294f2 100644 --- a/rust-spin.spec +++ b/rust-spin.spec @@ -1,13 +1,13 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate spin Name: rust-%{crate} -Version: 0.5.2 +Version: 0.9.2 Release: %autorelease -Summary: Synchronization primitives based on spinning +Summary: Spin-based synchronization primitives # Upstream license specification: MIT License: MIT @@ -15,15 +15,11 @@ URL: https://crates.io/crates/spin Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging %global _description %{expand: -Synchronization primitives based on spinning. They may contain data, are usable -without `std`, and static initializers are available.} +Spin-based synchronization primitives.} %description %{_description} @@ -34,11 +30,11 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel %license LICENSE -%doc README.md +%doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -48,11 +44,143 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which -use "the default" feature of the "%{crate}" crate. +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+barrier-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+barrier-devel %{_description} + +This package contains library source intended for building other packages which +use the "barrier" feature of the "%{crate}" crate. + +%files -n %{name}+barrier-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+lazy-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lazy-devel %{_description} + +This package contains library source intended for building other packages which +use the "lazy" feature of the "%{crate}" crate. + +%files -n %{name}+lazy-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+lock_api-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lock_api-devel %{_description} + +This package contains library source intended for building other packages which +use the "lock_api" feature of the "%{crate}" crate. + +%files -n %{name}+lock_api-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+lock_api_crate-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lock_api_crate-devel %{_description} + +This package contains library source intended for building other packages which +use the "lock_api_crate" feature of the "%{crate}" crate. + +%files -n %{name}+lock_api_crate-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+mutex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mutex-devel %{_description} + +This package contains library source intended for building other packages which +use the "mutex" feature of the "%{crate}" crate. + +%files -n %{name}+mutex-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+once-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+once-devel %{_description} + +This package contains library source intended for building other packages which +use the "once" feature of the "%{crate}" crate. + +%files -n %{name}+once-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+rwlock-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rwlock-devel %{_description} + +This package contains library source intended for building other packages which +use the "rwlock" feature of the "%{crate}" crate. + +%files -n %{name}+rwlock-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+spin_mutex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+spin_mutex-devel %{_description} + +This package contains library source intended for building other packages which +use the "spin_mutex" feature of the "%{crate}" crate. + +%files -n %{name}+spin_mutex-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+ticket_mutex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ticket_mutex-devel %{_description} + +This package contains library source intended for building other packages which +use the "ticket_mutex" feature of the "%{crate}" crate. + +%files -n %{name}+ticket_mutex-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+use_ticket_mutex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+use_ticket_mutex-devel %{_description} + +This package contains library source intended for building other packages which +use the "use_ticket_mutex" feature of the "%{crate}" crate. + +%files -n %{name}+use_ticket_mutex-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 19bf8c0..64a05f2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (spin-0.5.2.crate) = fc57f7906da2b7a298c5f89215e881e8827b4d9f934dbf138338e0ee30122d8459483be566268fa374b41d63d8dbf65d42e0b322535ba35c827d7edb2176f267 +SHA512 (spin-0.9.2.crate) = f6d112567df533063b1571e140929505f5c519479ac27fc8c1d02e3fe36176af86d12db15dcf1ff9376b251a20d4e991ea57d6cbe8533c62810c9f67d7471fd7 From 6e3e654b3297c782eefd0b2863e09c49b21f1b9f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 25 May 2022 16:14:03 +0200 Subject: [PATCH 3/5] Update to version 0.9.3; Fixes RHBZ#2076008 --- .gitignore | 1 + rust-spin.spec | 37 +++++++++++++++++++------------------ sources | 2 +- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 877e2cb..2ba4af6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /spin-0.5.0.crate /spin-0.5.2.crate /spin-0.9.2.crate +/spin-0.9.3.crate diff --git a/rust-spin.spec b/rust-spin.spec index 82294f2..1c4626c 100644 --- a/rust-spin.spec +++ b/rust-spin.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate spin Name: rust-%{crate} -Version: 0.9.2 +Version: 0.9.3 Release: %autorelease Summary: Spin-based synchronization primitives @@ -16,7 +16,7 @@ Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Spin-based synchronization primitives.} @@ -33,9 +33,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,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 %package -n %{name}+barrier-devel Summary: %{summary} @@ -59,7 +60,7 @@ This package contains library source intended for building other packages which use the "barrier" feature of the "%{crate}" crate. %files -n %{name}+barrier-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+lazy-devel Summary: %{summary} @@ -71,7 +72,7 @@ This package contains library source intended for building other packages which use the "lazy" feature of the "%{crate}" crate. %files -n %{name}+lazy-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+lock_api-devel Summary: %{summary} @@ -83,7 +84,7 @@ This package contains library source intended for building other packages which use the "lock_api" feature of the "%{crate}" crate. %files -n %{name}+lock_api-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+lock_api_crate-devel Summary: %{summary} @@ -95,7 +96,7 @@ This package contains library source intended for building other packages which use the "lock_api_crate" feature of the "%{crate}" crate. %files -n %{name}+lock_api_crate-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mutex-devel Summary: %{summary} @@ -107,7 +108,7 @@ This package contains library source intended for building other packages which use the "mutex" feature of the "%{crate}" crate. %files -n %{name}+mutex-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+once-devel Summary: %{summary} @@ -119,7 +120,7 @@ This package contains library source intended for building other packages which use the "once" feature of the "%{crate}" crate. %files -n %{name}+once-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rwlock-devel Summary: %{summary} @@ -131,7 +132,7 @@ This package contains library source intended for building other packages which use the "rwlock" feature of the "%{crate}" crate. %files -n %{name}+rwlock-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+spin_mutex-devel Summary: %{summary} @@ -143,7 +144,7 @@ This package contains library source intended for building other packages which use the "spin_mutex" feature of the "%{crate}" crate. %files -n %{name}+spin_mutex-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -155,7 +156,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ticket_mutex-devel Summary: %{summary} @@ -167,7 +168,7 @@ This package contains library source intended for building other packages which use the "ticket_mutex" feature of the "%{crate}" crate. %files -n %{name}+ticket_mutex-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use_ticket_mutex-devel Summary: %{summary} @@ -179,7 +180,7 @@ This package contains library source intended for building other packages which use the "use_ticket_mutex" feature of the "%{crate}" crate. %files -n %{name}+use_ticket_mutex-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 64a05f2..2427161 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (spin-0.9.2.crate) = f6d112567df533063b1571e140929505f5c519479ac27fc8c1d02e3fe36176af86d12db15dcf1ff9376b251a20d4e991ea57d6cbe8533c62810c9f67d7471fd7 +SHA512 (spin-0.9.3.crate) = 2779ff3a94865e4b7cdfe8f0c22c7460095bfb2c4dcaac3f879e740799a2e6835d8acaeb6b70db4351209ba33d20c7c1dc2ec203e33844c619d3c54ee462bf70 From 0c401c83d2f066a06ef16e1afd25112267cf48d1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 14 Jul 2022 14:27:07 +0200 Subject: [PATCH 4/5] Update to version 0.9.4; Fixes RHBZ#2107111 --- .gitignore | 1 + .rust2rpm.conf | 4 ++++ rust-spin.spec | 2 +- sources | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .rust2rpm.conf diff --git a/.gitignore b/.gitignore index 2ba4af6..8751817 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /spin-0.5.2.crate /spin-0.9.2.crate /spin-0.9.3.crate +/spin-0.9.4.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..95bbfe1 --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,4 @@ +[DEFAULT] +unwanted-features = + portable-atomic + portable_atomic diff --git a/rust-spin.spec b/rust-spin.spec index 1c4626c..f9a8cf6 100644 --- a/rust-spin.spec +++ b/rust-spin.spec @@ -5,7 +5,7 @@ %global crate spin Name: rust-%{crate} -Version: 0.9.3 +Version: 0.9.4 Release: %autorelease Summary: Spin-based synchronization primitives diff --git a/sources b/sources index 2427161..7105ec2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (spin-0.9.3.crate) = 2779ff3a94865e4b7cdfe8f0c22c7460095bfb2c4dcaac3f879e740799a2e6835d8acaeb6b70db4351209ba33d20c7c1dc2ec203e33844c619d3c54ee462bf70 +SHA512 (spin-0.9.4.crate) = 156b1c471292e8cb874b59129454b56b5e84a0f10b5d064433e0abfc3384c1a594b12b095acd26da350d7f81e6849da9c07c9a506b4aa0ac4808ce3f70b5511c