commit e0e43129b5daf892976468ef64af902e0c53d3e3 Author: tigro Date: Mon Jan 15 22:39:17 2024 +0300 import rust-sha2_0.9-0.9.9-5.el9 diff --git a/.rust-sha2_0.9.metadata b/.rust-sha2_0.9.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/sha2-0.9.9.crate b/SOURCES/sha2-0.9.9.crate new file mode 100644 index 0000000..5ba1659 Binary files /dev/null and b/SOURCES/sha2-0.9.9.crate differ diff --git a/SPECS/rust-sha2_0.9.spec b/SPECS/rust-sha2_0.9.spec new file mode 100644 index 0000000..a854328 --- /dev/null +++ b/SPECS/rust-sha2_0.9.spec @@ -0,0 +1,169 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 5; + 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 sha2 + +Name: rust-sha2_0.9 +Version: 0.9.9 +Release: %autorelease +Summary: Pure Rust implementation of the SHA-2 hash function family + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/sha2 +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Pure Rust implementation of the SHA-2 hash function family including +SHA-224, SHA-256, SHA-384, and SHA-512.} + +%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}+asm-aarch64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+asm-aarch64-devel %{_description} + +This package contains library source intended for building other packages which +use the "asm-aarch64" feature of the "%{crate}" crate. + +%files -n %{name}+asm-aarch64-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+compress-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+compress-devel %{_description} + +This package contains library source intended for building other packages which +use the "compress" feature of the "%{crate}" crate. + +%files -n %{name}+compress-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+force-soft-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+force-soft-devel %{_description} + +This package contains library source intended for building other packages which +use the "force-soft" feature of the "%{crate}" crate. + +%files -n %{name}+force-soft-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+sha2-asm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sha2-asm-devel %{_description} + +This package contains library source intended for building other packages which +use the "sha2-asm" feature of the "%{crate}" crate. + +%files -n %{name}+sha2-asm-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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.9.9-5 +- Rebuilt for MSVSphere 9.3 + +* Fri Jul 21 2023 Fabio Valentini - 0.9.9-5 +- Enable feature for using optimized assembly implementations + +* Wed Jun 14 2023 Fabio Valentini - 0.9.9-4 +- Regenerate with rust2rpm v24 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.9.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.9.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sun Feb 20 2022 Fabio Valentini - 0.9.9-1 +- Initial import (sha2 0.9 compat package)