From 5dc1de8a2940990abf4ffa12b7e5a4948fed7227 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 17:52:48 +0300 Subject: [PATCH] import rust-tiny-keccak-2.0.2-11.el10 --- .gitignore | 1 + .rust-tiny-keccak.metadata | 1 + SOURCES/rust2rpm.conf | 2 + SPECS/rust-tiny-keccak.spec | 232 ++++++++++++++++++++++++++++++++++++ 4 files changed, 236 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-tiny-keccak.metadata create mode 100644 SOURCES/rust2rpm.conf create mode 100644 SPECS/rust-tiny-keccak.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..449142b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tiny-keccak-2.0.2.crate diff --git a/.rust-tiny-keccak.metadata b/.rust-tiny-keccak.metadata new file mode 100644 index 0000000..11e371d --- /dev/null +++ b/.rust-tiny-keccak.metadata @@ -0,0 +1 @@ +9cf25c47adfa45d0f35df2c5b5cff26243c5339c SOURCES/tiny-keccak-2.0.2.crate diff --git a/SOURCES/rust2rpm.conf b/SOURCES/rust2rpm.conf new file mode 100644 index 0000000..f626714 --- /dev/null +++ b/SOURCES/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +all-features = true diff --git a/SPECS/rust-tiny-keccak.spec b/SPECS/rust-tiny-keccak.spec new file mode 100644 index 0000000..65be29d --- /dev/null +++ b/SPECS/rust-tiny-keccak.spec @@ -0,0 +1,232 @@ +## 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 +%bcond_without check +%global debug_package %{nil} + +%global crate tiny-keccak + +Name: rust-tiny-keccak +Version: 2.0.2 +Release: %autorelease +Summary: Implementation of Keccak derived functions + +License: CC0-1.0 +URL: https://crates.io/crates/tiny-keccak +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +An implementation of Keccak derived functions.} + +%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 +%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}+cshake-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+cshake-devel %{_description} + +This package contains library source intended for building other packages which +use the "cshake" feature of the "%{crate}" crate. + +%files -n %{name}+cshake-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+fips202-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fips202-devel %{_description} + +This package contains library source intended for building other packages which +use the "fips202" feature of the "%{crate}" crate. + +%files -n %{name}+fips202-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+k12-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+k12-devel %{_description} + +This package contains library source intended for building other packages which +use the "k12" feature of the "%{crate}" crate. + +%files -n %{name}+k12-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+keccak-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+keccak-devel %{_description} + +This package contains library source intended for building other packages which +use the "keccak" feature of the "%{crate}" crate. + +%files -n %{name}+keccak-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+kmac-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+kmac-devel %{_description} + +This package contains library source intended for building other packages which +use the "kmac" feature of the "%{crate}" crate. + +%files -n %{name}+kmac-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+parallel_hash-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+parallel_hash-devel %{_description} + +This package contains library source intended for building other packages which +use the "parallel_hash" feature of the "%{crate}" crate. + +%files -n %{name}+parallel_hash-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+sha3-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sha3-devel %{_description} + +This package contains library source intended for building other packages which +use the "sha3" feature of the "%{crate}" crate. + +%files -n %{name}+sha3-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+shake-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+shake-devel %{_description} + +This package contains library source intended for building other packages which +use the "shake" feature of the "%{crate}" crate. + +%files -n %{name}+shake-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+sp800-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sp800-devel %{_description} + +This package contains library source intended for building other packages which +use the "sp800" feature of the "%{crate}" crate. + +%files -n %{name}+sp800-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+tuple_hash-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tuple_hash-devel %{_description} + +This package contains library source intended for building other packages which +use the "tuple_hash" feature of the "%{crate}" crate. + +%files -n %{name}+tuple_hash-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires -a + +%build +%cargo_build -a + +%install +%cargo_install -a + +%if %{with check} +%check +%cargo_test -a +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 2.0.2-11 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 2.0.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 2.0.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 2.0.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu May 25 2023 Fabio Valentini - 2.0.2-8 +- Regenerate with rust2rpm v24 + +* Sat Jan 21 2023 Fedora Release Engineering - 2.0.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 2.0.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.0.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Nov 28 2021 Igor Raits - 2.0.2-4 +- Regenerate + +* Fri Jul 23 2021 Fedora Release Engineering - 2.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sat Feb 27 2021 Fabio Valentini - 2.0.2-1 +- Initial package + +## END: Generated by rpmautospec