diff --git a/hkdf-fix-metadata.diff b/hkdf-fix-metadata.diff index 312db63..7eb0f3d 100644 --- a/hkdf-fix-metadata.diff +++ b/hkdf-fix-metadata.diff @@ -1,5 +1,5 @@ ---- hkdf-0.7.0/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ hkdf-0.7.0/Cargo.toml 2019-03-13T23:34:42.285411+01:00 +--- hkdf-0.7.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ hkdf-0.7.0/Cargo.toml 2019-06-22T10:44:08.534026+00:00 @@ -37,16 +37,16 @@ version = "0.1" diff --git a/rust-hkdf.spec b/rust-hkdf.spec index 0d7d60b..789506a 100644 --- a/rust-hkdf.spec +++ b/rust-hkdf.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm +# Generated by rust2rpm 10 # * crypto-tests is not packaged %bcond_with check %global debug_package %{nil} @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.7.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: HMAC-based Extract-and-Expand Key Derivation Function (HKDF) # Upstream license specification: MIT/Apache-2.0 @@ -19,20 +19,14 @@ Source: %{crates_source} Patch0: hkdf-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(digest/default) >= 0.8.0 with crate(digest/default) < 0.9.0) -BuildRequires: (crate(hmac/default) >= 0.7.0 with crate(hmac/default) < 0.8.0) -%if %{with check} -BuildRequires: (crate(bencher/default) >= 0.1.0 with crate(bencher/default) < 0.2.0) -BuildRequires: (crate(crypto-tests/default) >= 0.5.0 with crate(crypto-tests/default) < 0.6.0) -BuildRequires: (crate(hex/default) >= 0.3.0 with crate(hex/default) < 0.4.0) -BuildRequires: (crate(sha-1/default) >= 0.8.0 with crate(sha-1/default) < 0.9.0) -BuildRequires: (crate(sha2/default) >= 0.8.0 with crate(sha2/default) < 0.9.0) -%endif -%global _description \ -HMAC-based Extract-and-Expand Key Derivation Function (HKDF). +%global _description %{expand: +HMAC-based Extract-and-Expand Key Derivation Function (HKDF).} %description %{_description} @@ -78,6 +72,9 @@ which use "std" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -90,5 +87,8 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 12:44:08 CEST 2019 Igor Gnatenko - 0.7.0-2 +- Regenerate + * Wed Mar 13 2019 Igor Gnatenko - 0.7.0-1 - Initial package