The package rpms/rust-hkdf0.11.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/rust-hkdf0.11.git/commit/?id=7e0d982....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit 7e0d9827ba6838fd052c7c1f816c8087fe6f925b Author: Fabio Valentini decathorpe@gmail.com Date: Sun Feb 20 16:16:56 2022 +0100
Initial import (hkdf 0.11 compat package)
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b6578b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/hkdf-0.11.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 7e4e0d7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-hkdf0.11 - -The rust-hkdf0.11 package diff --git a/rust-hkdf0.11.spec b/rust-hkdf0.11.spec new file mode 100644 index 0000000..8245d6d --- /dev/null +++ b/rust-hkdf0.11.spec @@ -0,0 +1,84 @@ +# Generated by rust2rpm 20 +# * crypto-tests dev-dependency is really old and not packaged +%bcond_with check +%global debug_package %{nil} + +%global crate hkdf + +Name: rust-%{crate}0.11 +Version: 0.11.0 +Release: %autorelease +Summary: HMAC-based Extract-and-Expand Key Derivation Function (HKDF) + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/hkdf +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +HMAC-based Extract-and-Expand Key Derivation Function (HKDF).} + +%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..430b653 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hkdf-0.11.0.crate) = 54255df9d478422d090103b6d66a31280a4c99025834e7930c21bfc7772f713015304f288de16ba3b91628714cde94b552eb1086724bc45e163c74fefa1393bf