From 2754b612e9db7954112ee23f3bc94e44dc1abdf8 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:11:59 +0300 Subject: [PATCH] import rust-crc32fast-1.4.2-3.el10 --- .gitignore | 1 + .rust-crc32fast.metadata | 1 + SOURCES/_constraints | 14 +++ SOURCES/crc32fast-fix-metadata.diff | 12 ++ SOURCES/rust2rpm.toml | 3 + SPECS/rust-crc32fast.spec | 186 ++++++++++++++++++++++++++++ 6 files changed, 217 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-crc32fast.metadata create mode 100644 SOURCES/_constraints create mode 100644 SOURCES/crc32fast-fix-metadata.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-crc32fast.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c7d4ecb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/crc32fast-1.4.2.crate diff --git a/.rust-crc32fast.metadata b/.rust-crc32fast.metadata new file mode 100644 index 0000000..a1a09b2 --- /dev/null +++ b/.rust-crc32fast.metadata @@ -0,0 +1 @@ +d29dab9c13ab5952298b2a836bc82b62b9c8fcf3 SOURCES/crc32fast-1.4.2.crate diff --git a/SOURCES/_constraints b/SOURCES/_constraints new file mode 100644 index 0000000..e01d525 --- /dev/null +++ b/SOURCES/_constraints @@ -0,0 +1,14 @@ + + + + + x86_64 + + + + pclmulqdq + sse4_1 + + + + diff --git a/SOURCES/crc32fast-fix-metadata.diff b/SOURCES/crc32fast-fix-metadata.diff new file mode 100644 index 0000000..ae5652d --- /dev/null +++ b/SOURCES/crc32fast-fix-metadata.diff @@ -0,0 +1,12 @@ +--- crc32fast-1.4.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ crc32fast-1.4.2/Cargo.toml 2024-08-29T13:27:26.403265+00:00 +@@ -35,9 +35,6 @@ + [dependencies.cfg-if] + version = "1.0" + +-[dev-dependencies.bencher] +-version = "0.1" +- + [dev-dependencies.quickcheck] + version = "1.0" + default-features = false diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..e283779 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +cargo-toml-patch-comments = ["drop unused, benchmark-only bencher dev-dependency"] + diff --git a/SPECS/rust-crc32fast.spec b/SPECS/rust-crc32fast.spec new file mode 100644 index 0000000..4f63a4b --- /dev/null +++ b/SPECS/rust-crc32fast.spec @@ -0,0 +1,186 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 crc32fast + +Name: rust-crc32fast +Version: 1.4.2 +Release: %autorelease +Summary: Fast, SIMD-accelerated CRC32 (IEEE) checksum computation + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/crc32fast +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only bencher dev-dependency +Patch: crc32fast-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Fast, SIMD-accelerated CRC32 (IEEE) checksum computation.} + +%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}/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}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly" feature of the "%{crate}" crate. + +%files -n %{name}+nightly-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 + +%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 - 1.4.2-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Thu Aug 29 2024 Fabio Valentini - 1.4.2-3 +- Drop unused, benchmark-only bencher dev-dependency + +* Fri Jul 19 2024 Fedora Release Engineering - 1.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jun 11 2024 Fabio Valentini - 1.4.2-1 +- Update to version 1.4.2; Fixes RHBZ#2281750 + +* Sun Feb 18 2024 Fabio Valentini - 1.4.0-1 +- Update to version 1.4.0; Fixes RHBZ#2263910 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.3.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.3.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 23 2023 Fabio Valentini - 1.3.2-4 +- Regenerate with rust2rpm v24 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Feb 09 2022 Fabio Valentini - 1.3.2-1 +- Update to version 1.3.2; Fixes RHBZ#2051751 + +* Wed Jan 26 2022 Fabio Valentini - 1.3.1-1 +- Update to version 1.3.1; Fixes RHBZ#2043529 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Dec 21 2021 Fabio Valentini - 1.3.0-1 +- Update to version 1.3.0; Fixes RHBZ#2027847 + +* Thu Nov 25 2021 Fabio Valentini - 1.2.2-1 +- Update to version 1.2.2; Fixes RHBZ#2026027 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 12 2020 Fabio Valentini - 1.2.1-1 +- Update to version 1.2.1. +- Fixes RHBZ#1890296 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 1.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 09:47:22 CEST 2019 Igor Gnatenko - 1.2.0-2 +- Regenerate + +* Tue Mar 05 2019 Igor Gnatenko - 1.2.0-1 +- Update to 1.2.0 + +* Sat Feb 02 2019 Fedora Release Engineering - 1.1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Dec 18 2018 Igor Gnatenko - 1.1.2-2 +- Run tests in infrastructure + +* Mon Dec 03 2018 Josh Stone - 1.1.2-1 +- Initial package + +## END: Generated by rpmautospec