commit 6b7df1a5dbe93bc45147c19eba8c83691b0b53ed Author: MSVSphere Packaging Team Date: Fri Dec 20 14:40:59 2024 +0300 import rust-aes-0.8.4-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..47b9165 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/aes-0.8.4.crate diff --git a/.rust-aes.metadata b/.rust-aes.metadata new file mode 100644 index 0000000..58fa3d6 --- /dev/null +++ b/.rust-aes.metadata @@ -0,0 +1 @@ +93284dc73c24f02be8528bdda9fdd68fd7af5f20 SOURCES/aes-0.8.4.crate diff --git a/SOURCES/aes-fix-metadata-auto.diff b/SOURCES/aes-fix-metadata-auto.diff new file mode 100644 index 0000000..cfb3e1c --- /dev/null +++ b/SOURCES/aes-fix-metadata-auto.diff @@ -0,0 +1,20 @@ +--- aes-0.8.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ aes-0.8.4/Cargo.toml 2024-02-14T15:50:20.257542+00:00 +@@ -55,12 +55,6 @@ + [features] + hazmat = [] + +-[target."cfg(all(aes_armv8, target_arch = \"aarch64\"))".dependencies.zeroize] +-version = "1.5.6" +-features = ["aarch64"] +-optional = true +-default_features = false +- + [target."cfg(any(target_arch = \"aarch64\", target_arch = \"x86_64\", target_arch = \"x86\"))".dependencies.cpufeatures] + version = "0.2" + +@@ -68,3 +62,4 @@ + version = "1.6.0" + optional = true + default_features = false ++ diff --git a/SPECS/rust-aes.spec b/SPECS/rust-aes.spec new file mode 100644 index 0000000..cc3571f --- /dev/null +++ b/SPECS/rust-aes.spec @@ -0,0 +1,171 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate aes + +Name: rust-aes +Version: 0.8.4 +Release: %autorelease +Summary: Pure Rust implementation of the Advanced Encryption Standard + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/aes +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: aes-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Pure Rust implementation of the Advanced Encryption Standard (a.k.a. +Rijndael).} + +%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}+hazmat-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+hazmat-devel %{_description} + +This package contains library source intended for building other packages which +use the "hazmat" feature of the "%{crate}" crate. + +%files -n %{name}+hazmat-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+zeroize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+zeroize-devel %{_description} + +This package contains library source intended for building other packages which +use the "zeroize" feature of the "%{crate}" crate. + +%files -n %{name}+zeroize-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.8.4-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.8.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Feb 14 2024 Fabio Valentini - 0.8.4-1 +- Update to version 0.8.4; Fixes RHBZ#2264059 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.8.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.8.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 23 2023 Fabio Valentini - 0.8.3-1 +- Update to version 0.8.3; Fixes RHBZ#2215722 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Dec 10 2022 Fabio Valentini - 0.8.2-1 +- Update to version 0.8.2; Fixes RHBZ#2138063 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Feb 18 2022 Fabio Valentini - 0.8.1-1 +- Update to version 0.8.1; Fixes RHBZ#2052899 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.7.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Sep 29 2021 Fabio Valentini - 0.7.5-1 +- Update to version 0.7.5; Fixes RHBZ#1955132 + +* Tue Aug 24 2021 Fabio Valentini - 0.7.4-1 +- Update to version 0.7.4; Fixes RHBZ#1955132 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Nov 06 2020 Fabio Valentini - 0.6.0-1 +- Update to version 0.6.0. + +* Wed Jul 29 2020 Fedora Release Engineering - 0.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 12:46:50 CEST 2020 Igor Raits - 0.4.0-1 +- Update to 0.4.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun May 05 15:10:59 CEST 2019 Igor Gnatenko - 0.3.2-1 +- Initial package + +## END: Generated by rpmautospec