diff --git a/polyval-fix-metadata.diff b/polyval-fix-metadata.diff deleted file mode 100644 index 51175c2..0000000 --- a/polyval-fix-metadata.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- polyval-0.5.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ polyval-0.5.3/Cargo.toml 2021-09-29T15:52:18.650609+00:00 -@@ -35,7 +35,7 @@ - default-features = false - - [dependencies.zeroize] --version = ">=1, <1.4" -+version = "1" - optional = true - default-features = false - [dev-dependencies.hex-literal] diff --git a/rust-polyval.spec b/rust-polyval.spec index 08eb0e9..8a052b3 100644 --- a/rust-polyval.spec +++ b/rust-polyval.spec @@ -1,32 +1,23 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate polyval -Name: rust-%{crate} -Version: 0.5.3 +Name: rust-polyval +Version: 0.6.0 Release: %autorelease Summary: GHASH-like universal hash over GF(2^128) -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-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} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -GHASH-like universal hash over GF(2^128) useful for constructing a Message -Authentication Code (MAC).} +POLYVAL is a GHASH-like universal hash over GF(2^128) useful for +constructing a Message Authentication Code (MAC).} %description %{_description} @@ -36,13 +27,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,35 +43,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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}+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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -86,11 +55,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zeroize-devel Summary: %{summary} @@ -98,11 +67,11 @@ BuildArch: noarch %description -n %{name}+zeroize-devel %{_description} -This package contains library source intended for building other packages -which use "zeroize" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "zeroize" feature of the "%{crate}" crate. %files -n %{name}+zeroize-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index c81b2b2..029320b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (polyval-0.5.3.crate) = 88a4f6c144836acbf99829d89a4bed4c02e7ee61d3cffc71604e6185f0bcb79270ddbbd67df6d1c4c586e54c846933234b8bedc1919c6720f664fe1f20291566 +SHA512 (polyval-0.6.0.crate) = 88c32735b19ae20615e0a278549bf8d5c57f9eb93675230d96bb5870e32a06c26fccac1808d347d06bd95a3c80ccdc6ad7385993e3fbbdd01a20d1073b8a361c