diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c053ca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/aead-*.crate diff --git a/rust-aead.spec b/rust-aead.spec new file mode 100644 index 0000000..e7a4c8a --- /dev/null +++ b/rust-aead.spec @@ -0,0 +1,135 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate aead + +Name: rust-%{crate} +Version: 0.3.2 +Release: 1%{?dist} +Summary: Traits for Authenticated Encryption with Associated Data (AEAD) algorithms + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/aead +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Traits for Authenticated Encryption with Associated Data (AEAD) algorithms.} + +%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 +%{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}+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}+blobby-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+blobby-devel %{_description} + +This package contains library source intended for building other packages +which use "blobby" feature of "%{crate}" crate. + +%files -n %{name}+blobby-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+dev-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dev-devel %{_description} + +This package contains library source intended for building other packages +which use "dev" feature of "%{crate}" crate. + +%files -n %{name}+dev-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+heapless-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+heapless-devel %{_description} + +This package contains library source intended for building other packages +which use "heapless" feature of "%{crate}" crate. + +%files -n %{name}+heapless-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 + +%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 Sep 11 16:05:31 BST 2020 Peter Robinson - 0.3.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..83a5860 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (aead-0.3.2.crate) = 803829ea12f3fe11c1e1f4d33610c361a11b33811ab28185ad4b54d9026384b8778c3e57cdc6feff8ffc56792b482fc64a8cb7daa14805edbbcd988c2d3256ea