From 2daf4dfbe39523e6305c6994d5b6aaaf59f40a04 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 24 Aug 2021 20:39:17 +0200 Subject: [PATCH] Update to version 0.5.2; Fixes RHBZ#1986353 --- polyval-fix-metadata.diff | 18 +++++++++--------- rust-polyval.spec | 35 ++++++++++++++++++++++++++++++----- sources | 2 +- 3 files changed, 40 insertions(+), 15 deletions(-) diff --git a/polyval-fix-metadata.diff b/polyval-fix-metadata.diff index b294502..b1813a9 100644 --- a/polyval-fix-metadata.diff +++ b/polyval-fix-metadata.diff @@ -1,11 +1,11 @@ ---- polyval-0.4.0/Cargo.toml 2020-06-06T15:27:27+00:00 -+++ polyval-0.4.0/Cargo.toml 2020-09-11T17:14:32.880375+00:00 -@@ -44,7 +44,7 @@ - version = "0.1.1" +--- polyval-0.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ polyval-0.5.2/Cargo.toml 2021-08-24T18:37:13.118808+00:00 +@@ -36,7 +36,7 @@ + default-features = false + [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 = ["universal-hash/std"] diff --git a/rust-polyval.spec b/rust-polyval.spec index 2b33bba..ea13b70 100644 --- a/rust-polyval.spec +++ b/rust-polyval.spec @@ -1,19 +1,20 @@ -# Generated by rust2rpm 13 -%bcond_with check +# Generated by rust2rpm 18 +%bcond_without check %global debug_package %{nil} %global crate polyval Name: rust-%{crate} -Version: 0.4.0 +Version: 0.5.2 Release: %autorelease -Summary: GHASH-like universal hash over GF(2^128) useful for constructing a Message Authentication Code (MAC) +Summary: GHASH-like universal hash over GF(2^128) # Upstream license specification: Apache-2.0 OR MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/polyval Source: %{crates_source} # Initial patched metadata +# * relax zeroize dependency Patch0: polyval-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 c5bcd23..bdfadae 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (polyval-0.4.0.crate) = 4cb331e46d899686475af45dca79e5e14263f987d3ddce0936799220c6c0852611b11b86b143c1eb053901578a5e70be6dde12f349b437e1500989d72eb82a45 +SHA512 (polyval-0.5.2.crate) = c691d1b58718f93f49993789ffe3620c79e64e9de2595c57d48bb0ccdb23e229f130fb21605e6906812c6f28f30ab709b8f0f1ca321d31338aa2cb182c9df394