diff --git a/.gitignore b/.gitignore index 921ab51..102d94c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/rand-0.8.5.crate +SOURCES/rand-0.9.0.crate diff --git a/.rust-rand.metadata b/.rust-rand.metadata index a379659..ad85473 100644 --- a/.rust-rand.metadata +++ b/.rust-rand.metadata @@ -1 +1 @@ -3c00a84604f43002995fa318ff421bf15654c197 SOURCES/rand-0.8.5.crate +58226ea56952e7e51dcaf02e55f74340c693a832 SOURCES/rand-0.9.0.crate diff --git a/SOURCES/rust2rpm.conf b/SOURCES/rust2rpm.conf deleted file mode 100644 index 77f68b4..0000000 --- a/SOURCES/rust2rpm.conf +++ /dev/null @@ -1,5 +0,0 @@ -[DEFAULT] -unwanted-features = - nightly - packed_simd - simd_support diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..214168d --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,6 @@ +[features] +hide = [ + # These require a nightly Rust compiler: + "nightly", + "simd_support", +] diff --git a/SPECS/rust-rand.spec b/SPECS/rust-rand.spec index 394801d..f8ebfcb 100644 --- a/SPECS/rust-rand.spec +++ b/SPECS/rust-rand.spec @@ -1,21 +1,21 @@ ## START: Set by rpmautospec -## (rpmautospec version 0.7.1) +## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: - release_number = 7; + release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec -# Generated by rust2rpm 24 -%bcond_without check +# Generated by rust2rpm 27 +%bcond check 1 %global debug_package %{nil} %global crate rand Name: rust-rand -Version: 0.8.5 +Version: 0.9.0 Release: %autorelease Summary: Random number generators and other randomness functionality @@ -23,7 +23,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/rand Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Random number generators and other randomness functionality.} @@ -71,30 +71,6 @@ use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+getrandom-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+getrandom-devel %{_description} - -This package contains library source intended for building other packages which -use the "getrandom" feature of the "%{crate}" crate. - -%files -n %{name}+getrandom-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+libc-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+libc-devel %{_description} - -This package contains library source intended for building other packages which -use the "libc" feature of the "%{crate}" crate. - -%files -n %{name}+libc-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch @@ -107,28 +83,16 @@ use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+min_const_gen-devel +%package -n %{name}+os_rng-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+min_const_gen-devel %{_description} +%description -n %{name}+os_rng-devel %{_description} This package contains library source intended for building other packages which -use the "min_const_gen" feature of the "%{crate}" crate. +use the "os_rng" feature of the "%{crate}" crate. -%files -n %{name}+min_const_gen-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+rand_chacha-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+rand_chacha-devel %{_description} - -This package contains library source intended for building other packages which -use the "rand_chacha" feature of the "%{crate}" crate. - -%files -n %{name}+rand_chacha-devel +%files -n %{name}+os_rng-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel @@ -143,18 +107,6 @@ use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+serde1-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+serde1-devel %{_description} - -This package contains library source intended for building other packages which -use the "serde1" feature of the "%{crate}" crate. - -%files -n %{name}+serde1-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+small_rng-devel Summary: %{summary} BuildArch: noarch @@ -191,8 +143,32 @@ use the "std_rng" feature of the "%{crate}" crate. %files -n %{name}+std_rng-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+thread_rng-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+thread_rng-devel %{_description} + +This package contains library source intended for building other packages which +use the "thread_rng" feature of the "%{crate}" crate. + +%files -n %{name}+thread_rng-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unbiased-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unbiased-devel %{_description} + +This package contains library source intended for building other packages which +use the "unbiased" feature of the "%{crate}" crate. + +%files -n %{name}+unbiased-devel +%ghost %{crate_instdir}/Cargo.toml + %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires @@ -210,10 +186,16 @@ use the "std_rng" feature of the "%{crate}" crate. %endif %changelog +## START: Generated by rpmautospec +* Wed Jan 29 2025 Benjamin A. Beasley - 0.9.0-1 +- Update to version 0.9.0; Fixes RHBZ#2342267 + +* Sun Jan 19 2025 Fedora Release Engineering - 0.8.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Fri Dec 20 2024 MSVSphere Packaging Team - 0.8.5-7 - Rebuilt for MSVSphere 10 -## START: Generated by rpmautospec * Sat Jul 20 2024 Fedora Release Engineering - 0.8.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild