From 568ea64e82870a7a46b1288c5d7e0e65257a91d3 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 20 Feb 2022 13:34:38 +0100 Subject: [PATCH] Update to version 0.10.3; Fixes RHBZ#2030012 --- .gitignore | 1 + digest-fix-metadata.diff | 11 +++++ rust-digest.spec | 98 ++++++++++++++++++++++++++++++++-------- sources | 2 +- 4 files changed, 92 insertions(+), 20 deletions(-) create mode 100644 digest-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 8dfeeb9..e2a02b1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /digest-0.8.0.crate /digest-0.8.1.crate /digest-0.9.0.crate +/digest-0.10.3.crate diff --git a/digest-fix-metadata.diff b/digest-fix-metadata.diff new file mode 100644 index 0000000..a9771e8 --- /dev/null +++ b/digest-fix-metadata.diff @@ -0,0 +1,11 @@ +--- 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 @@ + version = "0.1.3" + + [dependencies.subtle] +-version = "=2.4" ++version = "2.4" + optional = true + default-features = false + diff --git a/rust-digest.spec b/rust-digest.spec index d93ad6f..bd167bf 100644 --- a/rust-digest.spec +++ b/rust-digest.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 15 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate digest Name: rust-%{crate} -Version: 0.9.0 +Version: 0.10.3 Release: %autorelease Summary: Traits for cryptographic hash functions @@ -13,11 +13,11 @@ Summary: Traits for cryptographic hash functions License: MIT or ASL 2.0 URL: https://crates.io/crates/digest Source: %{crates_source} +# Initial patched metadata +# * relax subtle dependency +Patch0: digest-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -32,12 +32,12 @@ 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-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md +%license LICENSE-APACHE LICENSE-MIT +%doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -46,8 +46,8 @@ 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 @@ -58,8 +58,8 @@ BuildArch: noarch %description -n %{name}+alloc-devel %{_description} -This package contains library source intended for building other packages -which use "alloc" feature of "%{crate}" crate. +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 @@ -70,36 +70,96 @@ BuildArch: noarch %description -n %{name}+blobby-devel %{_description} -This package contains library source intended for building other packages -which use "blobby" feature of "%{crate}" crate. +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 +%package -n %{name}+block-buffer-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+block-buffer-devel %{_description} + +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 + +%package -n %{name}+core-api-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+core-api-devel %{_description} + +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 + %package -n %{name}+dev-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dev-devel %{_description} -This package contains library source intended for building other packages -which use "dev" feature of "%{crate}" crate. +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 +%package -n %{name}+mac-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mac-devel %{_description} + +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 + +%package -n %{name}+rand_core-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand_core-devel %{_description} + +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 + %package -n %{name}+std-devel Summary: %{summary} 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 +%package -n %{name}+subtle-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+subtle-devel %{_description} + +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 + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 8d2d09e..93d67fb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (digest-0.9.0.crate) = 8637a322c429f51ecb0fa4c3b58fabef01368c1a093492fad65f48eeeec2366fd1b7876e6e47723e089ec5ce11f881bfe4dcebdc605811252b797db027746a45 +SHA512 (digest-0.10.3.crate) = bfc9b24e4a6e3df91669a36f8ddcdcfb643e22b3102a200d56bbe88d94e8f1f1e52f5ac29f06253913fbd977b149a3e775c95175b93950340946152f6525803e