From 719fd16980f95e5617f11ee67f121d88314fb323 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 20 Feb 2022 16:15:13 +0100 Subject: [PATCH] Initial import (hmac 0.11 compat package) --- .gitignore | 4 +++ README.md | 3 -- rust-hmac0.11.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 88 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-hmac0.11.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e10887 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/hmac-0.11.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 744adb5..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-hmac0.11 - -The rust-hmac0.11 package diff --git a/rust-hmac0.11.spec b/rust-hmac0.11.spec new file mode 100644 index 0000000..f6f24b4 --- /dev/null +++ b/rust-hmac0.11.spec @@ -0,0 +1,83 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate hmac + +Name: rust-%{crate}0.11 +Version: 0.11.0 +Release: %autorelease +Summary: Generic implementation of Hash-based Message Authentication Code (HMAC) + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/hmac +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Generic implementation of Hash-based Message Authentication Code (HMAC).} + +%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}+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 %{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..75af6fe --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hmac-0.11.0.crate) = 82d83071d1cea14603b1f1a85d564c78e28d982025a029779d8d83522fd5c56583303dd3a902d8023b5e9df2ddb5c5d9a5fc88000d41dba45dc026239ec81d0d