diff --git a/.gitignore b/.gitignore index af20227..8751817 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ /spin-0.4.10.crate /spin-0.5.0.crate /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 d3e0e60..f9a8cf6 100644 --- a/rust-spin.spec +++ b/rust-spin.spec @@ -1,13 +1,13 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate spin Name: rust-%{crate} -Version: 0.5.2 +Version: 0.9.4 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 +BuildRequires: rust-packaging >= 21 %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,12 +30,13 @@ 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 -%{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} @@ -48,10 +45,142 @@ 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 +%ghost %{crate_instdir}/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 %{crate_instdir}/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 %{crate_instdir}/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 %{crate_instdir}/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 %{crate_instdir}/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 %{crate_instdir}/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 %{crate_instdir}/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 %{crate_instdir}/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 %{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 + +%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 %{crate_instdir}/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 %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 19bf8c0..7105ec2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (spin-0.5.2.crate) = fc57f7906da2b7a298c5f89215e881e8827b4d9f934dbf138338e0ee30122d8459483be566268fa374b41d63d8dbf65d42e0b322535ba35c827d7edb2176f267 +SHA512 (spin-0.9.4.crate) = 156b1c471292e8cb874b59129454b56b5e84a0f10b5d064433e0abfc3384c1a594b12b095acd26da350d7f81e6849da9c07c9a506b4aa0ac4808ce3f70b5511c