From b00bee31bc6be63424ec90ca455ededc2b7c607d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 8 Oct 2022 20:19:57 +0200 Subject: [PATCH] Update to version 0.10.5; Fixes RHBZ#2127326 --- .gitignore | 1 + digest-fix-metadata.diff | 6 ++-- rust-digest.spec | 69 +++++++++++++++++++++++++++------------- sources | 2 +- 4 files changed, 52 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index e2a02b1..c99536f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /digest-0.8.1.crate /digest-0.9.0.crate /digest-0.10.3.crate +/digest-0.10.5.crate diff --git a/digest-fix-metadata.diff b/digest-fix-metadata.diff index a9771e8..003ea8b 100644 --- a/digest-fix-metadata.diff +++ b/digest-fix-metadata.diff @@ -1,6 +1,6 @@ ---- digest-0.10.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ digest-0.10.3/Cargo.toml 2022-02-16T15:49:23.908751+00:00 -@@ -36,7 +36,7 @@ +--- digest-0.10.5/Cargo.toml 2022-09-16T01:41:42+00:00 ++++ digest-0.10.5/Cargo.toml 2022-10-05T12:28:10.387041+00:00 +@@ -41,7 +41,7 @@ version = "0.1.3" [dependencies.subtle] diff --git a/rust-digest.spec b/rust-digest.spec index bd167bf..532547a 100644 --- a/rust-digest.spec +++ b/rust-digest.spec @@ -1,25 +1,24 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate digest -Name: rust-%{crate} -Version: 0.10.3 +Name: rust-digest +Version: 0.10.5 Release: %autorelease Summary: Traits for cryptographic hash functions -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/digest Source: %{crates_source} -# Initial patched metadata -# * relax subtle dependency -Patch0: digest-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * relax subtle dependency from =2.4 to ^2.4 +Patch: digest-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Traits for cryptographic hash functions.} @@ -36,9 +35,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.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,7 +51,7 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+alloc-devel Summary: %{summary} @@ -62,7 +63,7 @@ This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+blobby-devel Summary: %{summary} @@ -74,7 +75,7 @@ This package contains library source intended for building other packages which use the "blobby" feature of the "%{crate}" crate. %files -n %{name}+blobby-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+block-buffer-devel Summary: %{summary} @@ -86,7 +87,19 @@ This package contains library source intended for building other packages which use the "block-buffer" feature of the "%{crate}" crate. %files -n %{name}+block-buffer-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+const-oid-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+const-oid-devel %{_description} + +This package contains library source intended for building other packages which +use the "const-oid" feature of the "%{crate}" crate. + +%files -n %{name}+const-oid-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+core-api-devel Summary: %{summary} @@ -98,7 +111,7 @@ This package contains library source intended for building other packages which use the "core-api" feature of the "%{crate}" crate. %files -n %{name}+core-api-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dev-devel Summary: %{summary} @@ -110,7 +123,7 @@ This package contains library source intended for building other packages which use the "dev" feature of the "%{crate}" crate. %files -n %{name}+dev-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mac-devel Summary: %{summary} @@ -122,7 +135,19 @@ This package contains library source intended for building other packages which use the "mac" feature of the "%{crate}" crate. %files -n %{name}+mac-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+oid-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+oid-devel %{_description} + +This package contains library source intended for building other packages which +use the "oid" feature of the "%{crate}" crate. + +%files -n %{name}+oid-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand_core-devel Summary: %{summary} @@ -134,7 +159,7 @@ This package contains library source intended for building other packages which use the "rand_core" feature of the "%{crate}" crate. %files -n %{name}+rand_core-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -146,7 +171,7 @@ 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}+subtle-devel Summary: %{summary} @@ -158,7 +183,7 @@ This package contains library source intended for building other packages which use the "subtle" feature of the "%{crate}" crate. %files -n %{name}+subtle-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 93d67fb..463ab74 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (digest-0.10.3.crate) = bfc9b24e4a6e3df91669a36f8ddcdcfb643e22b3102a200d56bbe88d94e8f1f1e52f5ac29f06253913fbd977b149a3e775c95175b93950340946152f6525803e +SHA512 (digest-0.10.5.crate) = 3542fc0322a8b10dbc229ae83475a0df5f9beee4f879eacab1fda53a7b61136df2961265472ae66d896681bd17f8a68148b25827733bd782c6bae05d2f307951