diff --git a/.gitignore b/.gitignore index 1bd3ef9..f62268a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,10 @@ /once_cell-1.7.1.crate /once_cell-1.7.2.crate /once_cell-1.8.0.crate +/once_cell-1.9.0.crate +/once_cell-1.10.0.crate +/once_cell-1.12.0.crate +/once_cell-1.13.0.crate +/once_cell-1.13.1.crate +/once_cell-1.14.0.crate +/once_cell-1.15.0.crate diff --git a/rust-once_cell.spec b/rust-once_cell.spec index 0c1b5ee..496ac7f 100644 --- a/rust-once_cell.spec +++ b/rust-once_cell.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate once_cell -Name: rust-%{crate} -Version: 1.8.0 +Name: rust-once_cell +Version: 1.15.0 Release: %autorelease Summary: Single assignment cells and lazy values -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/once_cell Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Single assignment cells and lazy values.} @@ -33,12 +29,14 @@ 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-APACHE LICENSE-MIT -%doc CHANGELOG.md 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} @@ -47,10 +45,10 @@ 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}+alloc-devel Summary: %{summary} @@ -59,10 +57,10 @@ BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which -use "the alloc" feature of the "%{crate}" crate. +use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+parking_lot-devel Summary: %{summary} @@ -71,10 +69,22 @@ BuildArch: noarch %description -n %{name}+parking_lot-devel %{_description} This package contains library source intended for building other packages which -use "the parking_lot" feature of the "%{crate}" crate. +use the "parking_lot" feature of the "%{crate}" crate. %files -n %{name}+parking_lot-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+parking_lot_core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+parking_lot_core-devel %{_description} + +This package contains library source intended for building other packages which +use the "parking_lot_core" feature of the "%{crate}" crate. + +%files -n %{name}+parking_lot_core-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+race-devel Summary: %{summary} @@ -83,10 +93,10 @@ BuildArch: noarch %description -n %{name}+race-devel %{_description} This package contains library source intended for building other packages which -use "the race" feature of the "%{crate}" crate. +use the "race" feature of the "%{crate}" crate. %files -n %{name}+race-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -95,10 +105,10 @@ 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. +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}+unstable-devel Summary: %{summary} @@ -107,10 +117,10 @@ BuildArch: noarch %description -n %{name}+unstable-devel %{_description} This package contains library source intended for building other packages which -use "the unstable" feature of the "%{crate}" crate. +use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..6593735 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + atomic-polyfill diff --git a/sources b/sources index 125c615..9faafbb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (once_cell-1.8.0.crate) = 88e55c9433225ce85a08353168c87fca2237615482160a5c28f3ac17f06d48c63e0c21b5f7ef81f82ca133436e371802ea099453844f1c111003bcb6ba89e827 +SHA512 (once_cell-1.15.0.crate) = 934a7c3631e9ca4fa78d9577b6672ca0b2f926a8d6c3be9542b906c5968033446f98f76ae6f368a1a5b92ab9064c31a57d74ab6d2097108029a7ea951541ff7e