From 00a305afa569239be5c4364c545deb3ecbb012ac Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:23:27 +0300 Subject: [PATCH] import rust-nanorand-0.7.0-6.el10 --- .gitignore | 1 + .rust-nanorand.metadata | 1 + SOURCES/README.md | 3 + SOURCES/nanorand-fix-metadata.diff | 11 ++ SPECS/rust-nanorand.spec | 210 +++++++++++++++++++++++++++++ 5 files changed, 226 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-nanorand.metadata create mode 100644 SOURCES/README.md create mode 100644 SOURCES/nanorand-fix-metadata.diff create mode 100644 SPECS/rust-nanorand.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c41fa93 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/nanorand-0.7.0.crate diff --git a/.rust-nanorand.metadata b/.rust-nanorand.metadata new file mode 100644 index 0000000..03a63dc --- /dev/null +++ b/.rust-nanorand.metadata @@ -0,0 +1 @@ +e571282e1112e9364d22f3de5ded4dd3fe7b5893 SOURCES/nanorand-0.7.0.crate diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..cb63e1c --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# rust-nanorand + +The rust-nanorand package diff --git a/SOURCES/nanorand-fix-metadata.diff b/SOURCES/nanorand-fix-metadata.diff new file mode 100644 index 0000000..5a6cd9e --- /dev/null +++ b/SOURCES/nanorand-fix-metadata.diff @@ -0,0 +1,11 @@ +--- nanorand-0.7.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ nanorand-0.7.0/Cargo.toml 2024-06-10T15:30:28.575387+00:00 +@@ -29,7 +29,7 @@ + lto = "thin" + [dependencies.getrandom] + version = "0.2.5" +-features = ["rdrand", "js"] ++features = ["rdrand"] + optional = true + + [dependencies.zeroize] diff --git a/SPECS/rust-nanorand.spec b/SPECS/rust-nanorand.spec new file mode 100644 index 0000000..a57208f --- /dev/null +++ b/SPECS/rust-nanorand.spec @@ -0,0 +1,210 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 6; + 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate nanorand + +Name: rust-nanorand +Version: 0.7.0 +Release: %autorelease +Summary: Tiny, fast, zero-dep library for random number generation + +License: Zlib +URL: https://crates.io/crates/nanorand +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop WASM-specific getrandom/js feature +Patch: nanorand-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A tiny, fast, zero-dep library for random number generation.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +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. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +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. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+chacha-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+chacha-devel %{_description} + +This package contains library source intended for building other packages which +use the "chacha" feature of the "%{crate}" crate. + +%files -n %{name}+chacha-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}+pcg64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pcg64-devel %{_description} + +This package contains library source intended for building other packages which +use the "pcg64" feature of the "%{crate}" crate. + +%files -n %{name}+pcg64-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rdseed-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rdseed-devel %{_description} + +This package contains library source intended for building other packages which +use the "rdseed" feature of the "%{crate}" crate. + +%files -n %{name}+rdseed-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}+tls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tls-devel %{_description} + +This package contains library source intended for building other packages which +use the "tls" feature of the "%{crate}" crate. + +%files -n %{name}+tls-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+wyrand-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+wyrand-devel %{_description} + +This package contains library source intended for building other packages which +use the "wyrand" feature of the "%{crate}" crate. + +%files -n %{name}+wyrand-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zeroize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zeroize-devel %{_description} + +This package contains library source intended for building other packages which +use the "zeroize" feature of the "%{crate}" crate. + +%files -n %{name}+zeroize-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.7.0-6 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.7.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 10 2024 Fabio Valentini - 0.7.0-5 +- Regenerate with rust2rpm v26 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.7.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.7.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 0.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Aug 30 2022 Orion Poplawski - 0.7.0-1 +- Initial import +## END: Generated by rpmautospec