From 520d4b71f7fdaaa5a01d0835299740c57a53fdab Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 20 Feb 2022 15:29:50 +0100 Subject: [PATCH] Initial import (aes 0.7 compat package) --- .gitignore | 4 ++ README.md | 3 -- rust-aes0.7.spec | 132 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-aes0.7.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7323841 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/aes-0.7.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index 2d1c2f8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-aes0.7 - -The rust-aes0.7 package diff --git a/rust-aes0.7.spec b/rust-aes0.7.spec new file mode 100644 index 0000000..9275b4f --- /dev/null +++ b/rust-aes0.7.spec @@ -0,0 +1,132 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate aes + +Name: rust-%{crate}0.7 +Version: 0.7.5 +Release: %autorelease +Summary: Pure Rust implementation of the Advanced Encryption Standard + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/aes +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Pure Rust implementation of the Advanced Encryption Standard (a.k.a. Rijndael) +including support for AES in counter mode (a.k.a. AES-CTR).} + +%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 LICENSE-APACHE LICENSE-MIT +%doc CHANGELOG.md README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+armv8-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+armv8-devel %{_description} + +This package contains library source intended for building other packages which +use the "armv8" feature of the "%{crate}" crate. + +%files -n %{name}+armv8-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+compact-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+compact-devel %{_description} + +This package contains library source intended for building other packages which +use the "compact" feature of the "%{crate}" crate. + +%files -n %{name}+compact-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+ctr-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ctr-devel %{_description} + +This package contains library source intended for building other packages which +use the "ctr" feature of the "%{crate}" crate. + +%files -n %{name}+ctr-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..9181c40 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (aes-0.7.5.crate) = 1e1e6714af9131af6a7e9546339d729979719c9c6751e4e2274e9cc243803920a7317c01a6dc20e31d730ccd43fc65cc2e9a3a29a6bc4d0c9bc0a6a3b65fe5c7