diff --git a/ghash-fix-metadata.diff b/ghash-fix-metadata.diff deleted file mode 100644 index 68e7172..0000000 --- a/ghash-fix-metadata.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- ghash-0.4.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ ghash-0.4.4/Cargo.toml 2021-09-29T16:02:31.940725+00:00 -@@ -29,7 +29,7 @@ - version = "0.5.1" - - [dependencies.zeroize] --version = ">=1, <1.4" -+version = "1" - optional = true - default-features = false - [dev-dependencies.hex-literal] diff --git a/rust-ghash.spec b/rust-ghash.spec index cb96de4..f195dc4 100644 --- a/rust-ghash.spec +++ b/rust-ghash.spec @@ -1,32 +1,24 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate ghash -Name: rust-%{crate} -Version: 0.4.4 +Name: rust-ghash +Version: 0.5.0 Release: %autorelease Summary: Universal hash over GF(2^128) useful for the AES-GCM cipher -# 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/ghash Source: %{crates_source} -# Initial patched metadata -# * relax zeroize dependency -Patch0: ghash-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Universal hash over GF(2^128) useful for constructing a Message Authentication -Code (MAC), as in the AES-GCM authenticated encryption cipher.} +Universal hash over GF(2^128) useful for constructing a Message +Authentication Code (MAC), as in the AES-GCM authenticated encryption +cipher.} %description %{_description} @@ -36,13 +28,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 +44,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 +56,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 +68,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 ea19a21..5163b64 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ghash-0.4.4.crate) = b18c8a1e4ad2aeaac586381fb14746f7556a44985b64f00e8ac82ad586a91487b1b3ac37f910b7cffb8ccc65e2b05fa589025d855a63c78bfc39157bef7a2d18 +SHA512 (ghash-0.5.0.crate) = 82a380882e051ba574a8159133a4c9e9f5e229780075f4dcdfa38acf47a5632831a08f9cf35b78d8f73d6d7381b8be9454b2f069171849795170844fe67458dd