From bf397113588c98b84b4d90310a64f700ddeefc65 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 14:41:21 +0300 Subject: [PATCH] import rust-ahash-0.8.11-2.el10 --- .gitignore | 1 + .rust-ahash.metadata | 1 + SOURCES/ahash-fix-metadata.diff | 30 ++++ SPECS/rust-ahash.spec | 300 ++++++++++++++++++++++++++++++++ 4 files changed, 332 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-ahash.metadata create mode 100644 SOURCES/ahash-fix-metadata.diff create mode 100644 SPECS/rust-ahash.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1dd037b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ahash-0.8.11.crate diff --git a/.rust-ahash.metadata b/.rust-ahash.metadata new file mode 100644 index 0000000..829a300 --- /dev/null +++ b/.rust-ahash.metadata @@ -0,0 +1 @@ +d8a09bd862940bcd7c9813e47eab8e69266e105b SOURCES/ahash-0.8.11.crate diff --git a/SOURCES/ahash-fix-metadata.diff b/SOURCES/ahash-fix-metadata.diff new file mode 100644 index 0000000..3f02e45 --- /dev/null +++ b/SOURCES/ahash-fix-metadata.diff @@ -0,0 +1,30 @@ +--- ahash-0.8.11/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ahash-0.8.11/Cargo.toml 2024-03-31T21:46:41.442254+00:00 +@@ -75,16 +75,6 @@ + bench = true + doc = true + +-[[bench]] +-name = "ahash" +-path = "tests/bench.rs" +-harness = false +- +-[[bench]] +-name = "map" +-path = "tests/map_tests.rs" +-harness = false +- + [dependencies.atomic-polyfill] + version = "1.0.1" + optional = true +@@ -108,10 +98,6 @@ + version = "0.7.31" + features = ["simd"] + default-features = false +- +-[dev-dependencies.criterion] +-version = "0.3.2" +-features = ["html_reports"] + + [dev-dependencies.fnv] + version = "1.0.5" diff --git a/SPECS/rust-ahash.spec b/SPECS/rust-ahash.spec new file mode 100644 index 0000000..5324a7a --- /dev/null +++ b/SPECS/rust-ahash.spec @@ -0,0 +1,300 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## 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 ahash + +Name: rust-ahash +Version: 0.8.11 +Release: %autorelease +Summary: Non-cryptographic hash function using AES-NI for high performance + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/ahash +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused benchmarks and benchmark-only criterion dev-dependency +Patch: ahash-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A non-cryptographic hash function using AES-NI for high performance.} + +%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 +%{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}+atomic-polyfill-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+atomic-polyfill-devel %{_description} + +This package contains library source intended for building other packages which +use the "atomic-polyfill" feature of the "%{crate}" crate. + +%files -n %{name}+atomic-polyfill-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+compile-time-rng-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+compile-time-rng-devel %{_description} + +This package contains library source intended for building other packages which +use the "compile-time-rng" feature of the "%{crate}" crate. + +%files -n %{name}+compile-time-rng-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+const-random-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+const-random-devel %{_description} + +This package contains library source intended for building other packages which +use the "const-random" feature of the "%{crate}" crate. + +%files -n %{name}+const-random-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}+nightly-arm-aes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-arm-aes-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly-arm-aes" feature of the "%{crate}" crate. + +%files -n %{name}+nightly-arm-aes-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+no-rng-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+no-rng-devel %{_description} + +This package contains library source intended for building other packages which +use the "no-rng" feature of the "%{crate}" crate. + +%files -n %{name}+no-rng-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+runtime-rng-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+runtime-rng-devel %{_description} + +This package contains library source intended for building other packages which +use the "runtime-rng" feature of the "%{crate}" crate. + +%files -n %{name}+runtime-rng-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-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} -p1 +%cargo_prep +# remove benchmark sources from non-standard path in tests/ +rm tests/{bench.rs,map_tests.rs} + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%ifarch x86_64 aarch64 ppc64le +%cargo_test +%endif +%ifarch %{ix86} +# * skip tests that cannot allocate enough memory +%cargo_test -- -- --skip hash_quality_test::fallback_tests::fallback_test_no_full_collisions +%endif +%ifarch s390x +# * one test fails only on s390x: +# https://github.com/tkaitchuck/aHash/issues/152 +%cargo_test -- -- --skip operations::test::test_add_length +%endif +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.8.11-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.8.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Apr 05 2024 blinxen - 0.8.11-1 +- Update to version 0.8.11; Fixes RHBZ#2265030 + +* Wed Feb 14 2024 Fabio Valentini - 0.8.8-2 +- Ignore one harmless test failure on s390x and one OOM issue on i686 + +* Wed Feb 14 2024 Fabio Valentini - 0.8.8-1 +- Update to version 0.8.8; Fixes RHBZ#2263708 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.8.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 04 2024 Fabio Valentini - 0.8.7-1 +- Update to version 0.8.7; Fixes RHBZ#2256230 + +* Fri Oct 27 2023 Fabio Valentini - 0.8.6-1 +- Update to version 0.8.6; Fixes RHBZ#2245597 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.8.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Feb 21 2023 Fabio Valentini - 0.8.3-1 +- Update to version 0.8.3; Fixes RHBZ#2164234 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Dec 15 2022 Fabio Valentini - 0.8.2-1 +- Update to version 0.8.2; Fixes RHBZ#2117147 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.7.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.7.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Nov 05 2021 Fabio Valentini - 0.7.6-2 +- Disable tests to around compilation issues on some architectures + +* Fri Nov 05 2021 Fabio Valentini - 0.7.6-1 +- Update to version 0.7.6; Fixes RHBZ#2012743 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.7.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 17 2021 Fabio Valentini - 0.7.4-1 +- Update to version 0.7.4. +- Fixes RHBZ#1964256 + +* Sat May 22 2021 Fabio Valentini - 0.7.3-1 +- Update to version 0.7.3. +- Fixes RHBZ#1963306 + +* Sat May 01 2021 Fabio Valentini - 0.7.2-2 +- Temporarily disable tests due to architecture-specific issues. + +* Wed Apr 28 2021 Fabio Valentini - 0.7.2-1 +- Update to version 0.7.2. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.4.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Sep 28 2020 Fabio Valentini - 0.4.5-1 +- Update to version 0.4.5. + +* Wed Jul 29 2020 Fedora Release Engineering - 0.3.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jun 10 2020 Josh Stone - 0.3.8-1 +- Update to 0.3.8 + +* Sat May 16 19:38:42 CEST 2020 Igor Raits - 0.3.5-1 +- Update to 0.3.5 + +* Wed May 06 2020 Josh Stone - 0.3.4-1 +- Update to 0.3.4 + +* Wed Apr 29 2020 Josh Stone - 0.3.3-1 +- Update to 0.3.3 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 28 2020 Josh Stone - 0.3.2-1 +- Update to 0.3.2 + +* Fri Dec 20 20:04:40 CET 2019 Igor Gnatenko - 0.2.18-1 +- Initial package + +## END: Generated by rpmautospec