From f5e11c881d17f3e87ea31d91235694b984c1123c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 30 Nov 2020 17:00:20 +0100 Subject: [PATCH] initial import (#1897796) --- .gitignore | 4 ++ README.md | 3 -- rust-aes-gcm.spec | 125 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 130 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-aes-gcm.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..573d1ce --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/aes-gcm-0.8.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index da74177..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-aes-gcm - -The rust-aes-gcm package diff --git a/rust-aes-gcm.spec b/rust-aes-gcm.spec new file mode 100644 index 0000000..c49757e --- /dev/null +++ b/rust-aes-gcm.spec @@ -0,0 +1,125 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate aes-gcm + +Name: rust-%{crate} +Version: 0.8.0 +Release: 1%{?dist} +Summary: AES-GCM (Galois/Counter Mode) AEAD Cipher implementation + +# Upstream license specification: Apache-2.0 OR MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/aes-gcm +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Pure Rust implementation of the AES-GCM (Galois/Counter Mode) Authenticated +Encryption with Associated Data (AEAD) Cipher with optional architecture- +specific hardware acceleration.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc README.md CHANGELOG.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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+aes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+aes-devel %{_description} + +This package contains library source intended for building other packages +which use "aes" feature of "%{crate}" crate. + +%files -n %{name}+aes-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages +which use "alloc" feature of "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "zeroize" feature of "%{crate}" crate. + +%files -n %{name}+zeroize-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 +* Fri Nov 06 2020 Fabio Valentini - 0.8.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..20b00bc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (aes-gcm-0.8.0.crate) = 7ee59aa0d08bdd8627a471a57ab6bbc14686290e808b0909749cc08592ca6be76d1b83b5bbf16dbca34192be182f14d930729654b7a485bb448b0eb36a32f7e9