diff --git a/ghash-fix-metadata.diff b/ghash-fix-metadata.diff index 277c8f6..bb6c040 100644 --- a/ghash-fix-metadata.diff +++ b/ghash-fix-metadata.diff @@ -1,11 +1,11 @@ ---- ghash-0.3.0/Cargo.toml 2020-06-06T15:35:29+00:00 -+++ ghash-0.3.0/Cargo.toml 2020-09-11T17:18:29.268457+00:00 -@@ -30,7 +30,7 @@ +--- ghash-0.4.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ghash-0.4.3/Cargo.toml 2021-08-24T18:32:15.982674+00:00 +@@ -29,7 +29,7 @@ + version = "0.5.1" + + [dependencies.zeroize] +-version = "=1.3" ++version = "1.3" optional = true default-features = false [dev-dependencies.hex-literal] --version = "0.1" -+version = "0.2.1" - - [features] - std = ["polyval/std"] diff --git a/rust-ghash.spec b/rust-ghash.spec index f76c433..5779d58 100644 --- a/rust-ghash.spec +++ b/rust-ghash.spec @@ -1,19 +1,20 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate ghash Name: rust-%{crate} -Version: 0.3.0 +Version: 0.4.3 Release: %autorelease -Summary: Universal hash over GF(2^128) useful for constructing a Message Authentication Code (MAC), as in the AES-GCM authenticated encryption cipher +Summary: Universal hash over GF(2^128) useful for the AES-GCM cipher -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +# Upstream license specification: Apache-2.0 OR MIT +License: ASL 2.0 or MIT URL: https://crates.io/crates/ghash Source: %{crates_source} # Initial patched metadata +# * relax zeroize dependency Patch0: ghash-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -40,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT -%doc README.md +%doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -55,6 +56,30 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+armv8-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+armv8-devel %{_description} + +This package contains library source intended for building other packages +which use "armv8" feature of "%{crate}" crate. + +%files -n %{name}+armv8-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+force-soft-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+force-soft-devel %{_description} + +This package contains library source intended for building other packages +which use "force-soft" feature of "%{crate}" crate. + +%files -n %{name}+force-soft-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index 91fa140..8c097c6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ghash-0.3.0.crate) = 3cb162b0b1ee4723e32045d7834b6c8f951bf7e3a1c87df23499f00deb765f2d246d83fe29a5017c011fc4be82dd7b236f12b54fc7eb5df43bfd90eeb8fbda0d +SHA512 (ghash-0.4.3.crate) = 6ecd7fd755bdade1dfd3ebfa13218a9ccb168d280d02f60b1d848b53949c573f636d89cac9644e54de564628a43372a33b527b4baf2f0758b5115895f977c592