From efa1fb97419ff580a9b1a37599f7ff554bf43de6 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:52:00 +0300 Subject: [PATCH] import rust-rayon-1.10.0-2.el10 --- .gitignore | 1 + .rust-rayon.metadata | 1 + SOURCES/rayon-fix-metadata.diff | 21 +++ SOURCES/rust2rpm.toml | 5 + SPECS/rust-rayon.spec | 233 ++++++++++++++++++++++++++++++++ 5 files changed, 261 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-rayon.metadata create mode 100644 SOURCES/rayon-fix-metadata.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-rayon.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d0a8f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rayon-1.10.0.crate diff --git a/.rust-rayon.metadata b/.rust-rayon.metadata new file mode 100644 index 0000000..c983b3e --- /dev/null +++ b/.rust-rayon.metadata @@ -0,0 +1 @@ +3c5ae922af2a04b74aa4b68367c38aa9c17b719c SOURCES/rayon-1.10.0.crate diff --git a/SOURCES/rayon-fix-metadata.diff b/SOURCES/rayon-fix-metadata.diff new file mode 100644 index 0000000..8b74e4c --- /dev/null +++ b/SOURCES/rayon-fix-metadata.diff @@ -0,0 +1,21 @@ +--- rayon-1.10.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rayon-1.10.0/Cargo.toml 2024-04-13T07:23:36.241647+00:00 +@@ -44,18 +44,8 @@ + [dependencies.rayon-core] + version = "1.12.1" + +-[dependencies.wasm_sync] +-version = "0.1.0" +-optional = true +- + [dev-dependencies.rand] + version = "0.8" + + [dev-dependencies.rand_xorshift] + version = "0.3" +- +-[features] +-web_spin_lock = [ +- "dep:wasm_sync", +- "rayon-core/web_spin_lock", +-] diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..88483d1 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,5 @@ +[tests] +skip = ["par_bridge_recursion"] +skip-exact = true +comments = ["skip a test that tends to hang indefinitely: https://github.com/rayon-rs/rayon/issues/1142"] + diff --git a/SPECS/rust-rayon.spec b/SPECS/rust-rayon.spec new file mode 100644 index 0000000..b3936f1 --- /dev/null +++ b/SPECS/rust-rayon.spec @@ -0,0 +1,233 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 rayon + +Name: rust-rayon +Version: 1.10.0 +Release: %autorelease +Summary: Simple work-stealing parallelism for Rust + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/rayon +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * remove WASM-specific features and dependencies +Patch: rayon-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Simple work-stealing parallelism for Rust.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/FAQ.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/RELEASES.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 + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +# * skip a test that tends to hang indefinitely: +# https://github.com/rayon-rs/rayon/issues/1142 +%cargo_test -- -- --exact --skip par_bridge_recursion +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 1.10.0-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 1.10.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Apr 13 2024 Fabio Valentini - 1.10.0-1 +- Update to version 1.10.0; Fixes RHBZ#2271258 + +* Tue Mar 05 2024 Fabio Valentini - 1.9.0-2 +- Skip a test that tends to hang indefinitely + +* Tue Mar 05 2024 Fabio Valentini - 1.9.0-1 +- Update to version 1.9.0; Fixes RHBZ#2266513 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 25 2024 Fabio Valentini - 1.8.1-1 +- Update to version 1.8.1; Fixes RHBZ#2258859 + +* Mon Sep 25 2023 Fabio Valentini - 1.8.0-1 +- Update to version 1.8.0; Fixes RHBZ#2239945 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Mar 07 2023 Fabio Valentini - 1.7.0-1 +- Update to version 1.7.0; Fixes RHBZ#2175353 + +* Sat Jan 21 2023 Fedora Release Engineering - 1.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Dec 11 2022 Fabio Valentini - 1.6.1-1 +- Update to version 1.6.1; Fixes RHBZ#2144085 + +* Sat Jul 23 2022 Fedora Release Engineering - 1.5.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed May 25 2022 Fabio Valentini - 1.5.3-1 +- Update to version 1.5.3; Fixes RHBZ#2075357 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu May 20 2021 Fabio Valentini - 1.5.1-1 +- Update to version 1.5.1. +- Fixes RHBZ#1961863 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 12 2020 Fabio Valentini - 1.5.0-1 +- Update to version 1.5.0. +- Fixes RHBZ#1890351 + +* Thu Oct 01 2020 Fabio Valentini - 1.4.1-1 +- Update to version 1.4.1. + +* Tue Aug 25 2020 Josh Stone - 1.4.0-1 +- Update to 1.4.0 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 15 2020 Josh Stone - 1.3.1-1 +- Update to 1.3.1 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 07 2020 Josh Stone - 1.3.0-1 +- Update to 1.3.0 + +* Thu Nov 28 11:22:01 CET 2019 Igor Gnatenko - 1.2.1-1 +- Update to 1.2.1 + +* Sun Sep 01 17:11:25 CEST 2019 Igor Gnatenko - 1.2.0-1 +- Update to 1.2.0 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 20 00:19:01 CEST 2019 Igor Gnatenko - 1.1.0-2 +- Regenerate + +* Thu Jun 13 2019 Josh Stone - 1.1.0-1 +- Update to 1.1.0 + +* Sun Mar 10 2019 Igor Gnatenko - 1.0.3-3 +- Adapt to new packaging + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Nov 02 2018 Josh Stone - 1.0.3-1 +- Update to 1.0.3 + +* Sun Oct 28 2018 Igor Gnatenko - 1.0.2-2 +- Adapt to new packaging + +* Tue Jul 17 2018 Josh Stone - 1.0.2-1 +- Update to 1.0.2 + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 14 2018 Igor Gnatenko - 1.0.1-2 +- Bump docopt to 1 + +* Fri Mar 16 2018 Josh Stone - 1.0.1-1 +- Update to 1.0.1 + +* Tue Feb 20 2018 Josh Stone - 1.0.0-1 +- Update to 1.0.0 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.9.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.9.0-4 +- Rebuild for rust-packaging v5 + +* Sun Dec 31 2017 Igor Gnatenko - 0.9.0-3 +- Bump rand to 0.4 + +* Sun Dec 03 2017 Igor Gnatenko - 0.9.0-2 +- Exclude unneeded files + +* Tue Nov 14 2017 Igor Gnatenko - 0.9.0-1 +- Update to 0.9.0 + +* Sat Jul 01 2017 Igor Gnatenko - 0.8.2-1 +- Update to 0.8.2 + +* Thu Jun 15 2017 Igor Gnatenko - 0.8.1-1 +- Update to 0.8.1 + +* Wed Jun 14 2017 Igor Gnatenko - 0.6.0-2 +- Port to use rust-packaging + +* Sun Feb 26 2017 Igor Gnatenko - 0.6.0-1 +- Initial package + +## END: Generated by rpmautospec