From ab41faa30321f7755e3459e0b71f02e6d54486a6 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 29 Jan 2025 09:40:37 -0500 Subject: [PATCH] Update to version 0.9.0; Fixes RHBZ#2342267 --- .gitignore | 1 + rust-rand.spec | 90 ++++++++++++++++++-------------------------------- rust2rpm.conf | 5 --- rust2rpm.toml | 6 ++++ sources | 2 +- 5 files changed, 41 insertions(+), 63 deletions(-) delete mode 100644 rust2rpm.conf create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 907aedb..7b6457d 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /rand-0.8.3.crate /rand-0.8.4.crate /rand-0.8.5.crate +/rand-0.9.0.crate diff --git a/rust-rand.spec b/rust-rand.spec index bc1294e..d258a60 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -1,11 +1,11 @@ -# 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 @@ -13,7 +13,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.} @@ -61,30 +61,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 @@ -97,28 +73,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 -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+min_const_gen-devel %{_description} - -This package contains library source intended for building other packages which -use the "min_const_gen" feature of the "%{crate}" crate. - -%files -n %{name}+min_const_gen-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+rand_chacha-devel +%package -n %{name}+os_rng-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+rand_chacha-devel %{_description} +%description -n %{name}+os_rng-devel %{_description} This package contains library source intended for building other packages which -use the "rand_chacha" feature of the "%{crate}" crate. +use the "os_rng" 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 @@ -133,18 +97,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 @@ -181,8 +133,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 diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index 77f68b4..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,5 +0,0 @@ -[DEFAULT] -unwanted-features = - nightly - packed_simd - simd_support diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..214168d --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,6 @@ +[features] +hide = [ + # These require a nightly Rust compiler: + "nightly", + "simd_support", +] diff --git a/sources b/sources index d460029..b7f72df 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rand-0.8.5.crate) = 8b33a8988906ba5e2057a9a84bdd11f867a5536c22f5056eec59ed4ec4e3a6da2fd773da4c0510d343762e5a4ea0f007db4c4a7cef87a47f90e36c1a84d86fb2 +SHA512 (rand-0.9.0.crate) = e07c9650dda7f9686b4f604990bb7f948667bc820322f464302fac3b2a8136a2a5d48ae6399f104e47bc1ebfda105f99ad8b031ce090cdb71840afb85f6a3032