From a9563d42b9d7e32327ed8c35156e8b45e22ebc42 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:09:48 +0300 Subject: [PATCH] import rust-keccak-0.1.5-3.el10 --- .gitignore | 1 + .rust-keccak.metadata | 1 + SOURCES/rust2rpm.toml | 3 + SPECS/rust-keccak.spec | 163 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 168 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-keccak.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-keccak.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e3d64ce --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/keccak-0.1.5.crate diff --git a/.rust-keccak.metadata b/.rust-keccak.metadata new file mode 100644 index 0000000..d7e145a --- /dev/null +++ b/.rust-keccak.metadata @@ -0,0 +1 @@ +4ecc445bd137dd323ad9a6f9f6cf5565d21c4397 SOURCES/keccak-0.1.5.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..087f0ff --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Pure Rust implementation of the Keccak sponge function" + diff --git a/SPECS/rust-keccak.spec b/SPECS/rust-keccak.spec new file mode 100644 index 0000000..7e414c1 --- /dev/null +++ b/SPECS/rust-keccak.spec @@ -0,0 +1,163 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate keccak + +Name: rust-keccak +Version: 0.1.5 +Release: %autorelease +Summary: Pure Rust implementation of the Keccak sponge function + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/keccak +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Pure Rust implementation of the Keccak sponge function including the +keccak-f and keccak-p variants.} + +%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}/CHANGELOG.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}+asm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+asm-devel %{_description} + +This package contains library source intended for building other packages which +use the "asm" feature of the "%{crate}" crate. + +%files -n %{name}+asm-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+no_unroll-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+no_unroll-devel %{_description} + +This package contains library source intended for building other packages which +use the "no_unroll" feature of the "%{crate}" crate. + +%files -n %{name}+no_unroll-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+simd-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simd-devel %{_description} + +This package contains library source intended for building other packages which +use the "simd" feature of the "%{crate}" crate. + +%files -n %{name}+simd-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.1.5-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.1.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 13 2024 Fabio Valentini - 0.1.5-1 +- Update to version 0.1.5; Fixes RHBZ#2258125 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon May 08 2023 Fabio Valentini - 0.1.4-1 +- Update to version 0.1.4; Fixes RHBZ#2193218 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Dec 10 2022 Fabio Valentini - 0.1.3-1 +- Update to version 0.1.3; Fixes RHBZ#2142669 + +* Sat Aug 06 2022 Fabio Valentini - 0.1.2-1 +- Update to version 0.1.2; Fixes RHBZ#2112536 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Jul 18 2020 Peter Robinson - 0.1.0-1 +- Initial package + +## END: Generated by rpmautospec