From 3f1534286cc9a909af0193d70e41512e5f9a3256 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:49:12 +0300 Subject: [PATCH] import rust-rand0.7-0.7.3-11.el10 --- .gitignore | 1 + .rust-rand0.7.metadata | 1 + SOURCES/rand-fix-metadata-auto.diff | 11 ++ SOURCES/rust2rpm.conf | 7 + SPECS/rust-rand0.7.spec | 227 ++++++++++++++++++++++++++++ 5 files changed, 247 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-rand0.7.metadata create mode 100644 SOURCES/rand-fix-metadata-auto.diff create mode 100644 SOURCES/rust2rpm.conf create mode 100644 SPECS/rust-rand0.7.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d4bc2b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rand-0.7.3.crate diff --git a/.rust-rand0.7.metadata b/.rust-rand0.7.metadata new file mode 100644 index 0000000..5bd5624 --- /dev/null +++ b/.rust-rand0.7.metadata @@ -0,0 +1 @@ +e548545a074e3a0688241f6ad3c6f1f8a192280f SOURCES/rand-0.7.3.crate diff --git a/SOURCES/rand-fix-metadata-auto.diff b/SOURCES/rand-fix-metadata-auto.diff new file mode 100644 index 0000000..2b4c701 --- /dev/null +++ b/SOURCES/rand-fix-metadata-auto.diff @@ -0,0 +1,11 @@ +--- rand-0.7.3/Cargo.toml 2020-01-10T21:46:19+00:00 ++++ rand-0.7.3/Cargo.toml 2023-05-21T12:52:28.593382+00:00 +@@ -67,8 +67,6 @@ + [target."cfg(not(target_os = \"emscripten\"))".dependencies.rand_chacha] + version = "0.2.1" + default-features = false +-[target."cfg(target_os = \"emscripten\")".dependencies.rand_hc] +-version = "0.2" + [target."cfg(unix)".dependencies.libc] + version = "0.2.22" + optional = true diff --git a/SOURCES/rust2rpm.conf b/SOURCES/rust2rpm.conf new file mode 100644 index 0000000..759930b --- /dev/null +++ b/SOURCES/rust2rpm.conf @@ -0,0 +1,7 @@ +[DEFAULT] +unwanted-features = + nightly + packed_simd + simd_support + stdweb + wasm-bindgen diff --git a/SPECS/rust-rand0.7.spec b/SPECS/rust-rand0.7.spec new file mode 100644 index 0000000..b0e70ca --- /dev/null +++ b/SPECS/rust-rand0.7.spec @@ -0,0 +1,227 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 11; + 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 +# * missing dev-dependency: rand_hc ^0.2 +%bcond_with check +%global debug_package %{nil} + +%global crate rand + +Name: rust-rand0.7 +Version: 0.7.3 +Release: %autorelease +Summary: Random number generators and other randomness functionality + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/rand +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: rand-fix-metadata-auto.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Random number generators and other randomness functionality.} + +%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}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/SECURITY.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}+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}+getrandom_package-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+getrandom_package-devel %{_description} + +This package contains library source intended for building other packages which +use the "getrandom_package" feature of the "%{crate}" crate. + +%files -n %{name}+getrandom_package-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 + +%description -n %{name}+log-devel %{_description} + +This package contains library source intended for building other packages which +use the "log" feature of the "%{crate}" crate. + +%files -n %{name}+log-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rand_pcg-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand_pcg-devel %{_description} + +This package contains library source intended for building other packages which +use the "rand_pcg" feature of the "%{crate}" crate. + +%files -n %{name}+rand_pcg-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 + +%description -n %{name}+small_rng-devel %{_description} + +This package contains library source intended for building other packages which +use the "small_rng" feature of the "%{crate}" crate. + +%files -n %{name}+small_rng-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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -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.3-11 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.7.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.7.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.7.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun May 21 2023 Fabio Valentini - 0.7.3-8 +- Regenerate with rust2rpm v24 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.7.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.7.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.7.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.7.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.7.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Jan 03 12:18:36 CET 2021 Igor Raits - 0.7.3-1 +- Initial package + +## END: Generated by rpmautospec