diff --git a/crypto-mac-fix-metadata.diff b/crypto-mac-fix-metadata.diff index 9e8ee8c..5eb38a8 100644 --- a/crypto-mac-fix-metadata.diff +++ b/crypto-mac-fix-metadata.diff @@ -1,5 +1,5 @@ ---- crypto-mac-0.7.0/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ crypto-mac-0.7.0/Cargo.toml 2019-03-13T23:39:35.767228+01:00 +--- crypto-mac-0.7.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ crypto-mac-0.7.0/Cargo.toml 2019-06-22T14:21:08.855354+00:00 @@ -30,7 +30,7 @@ version = "0.12" diff --git a/rust-crypto-mac.spec b/rust-crypto-mac.spec index d9916cc..b6dbcc4 100644 --- a/rust-crypto-mac.spec +++ b/rust-crypto-mac.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate crypto-mac Name: rust-%{crate} Version: 0.7.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Trait for Message Authentication Code (MAC) algorithms # Upstream license specification: MIT OR Apache-2.0 @@ -18,13 +18,14 @@ Source: %{crates_source} Patch0: crypto-mac-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(generic-array/default) >= 0.12.0 with crate(generic-array/default) < 0.13.0) -BuildRequires: (crate(subtle) >= 2.0.0 with crate(subtle) < 3.0.0) -%global _description \ -Trait for Message Authentication Code (MAC) algorithms. +%global _description %{expand: +Trait for Message Authentication Code (MAC) algorithms.} %description %{_description} @@ -93,6 +94,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 @@ -105,5 +109,8 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 16:21:08 CEST 2019 Igor Gnatenko - 0.7.0-2 +- Regenerate + * Wed Mar 13 2019 Igor Gnatenko - 0.7.0-1 - Initial package