From eed3e0ff6e63b225c48faaee0770e626012c1e9f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 27 Jul 2021 23:28:38 +0200 Subject: [PATCH] Update to version 0.9.7; Fixes RHBZ#1957380 --- .gitignore | 1 + rust-sha-1.spec | 8 ++++---- sha-1-fix-metadata.diff | 16 +++++----------- sources | 2 +- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 33b4cac..cbe3435 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /sha-1-0.9.2.crate /sha-1-0.9.3.crate /sha-1-0.9.4.crate +/sha-1-0.9.7.crate diff --git a/rust-sha-1.spec b/rust-sha-1.spec index aa90410..2130c89 100644 --- a/rust-sha-1.spec +++ b/rust-sha-1.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate sha-1 Name: rust-%{crate} -Version: 0.9.4 +Version: 0.9.7 Release: %autorelease Summary: SHA-1 hash function @@ -14,7 +14,7 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/sha-1 Source: %{crates_source} # Initial patched metadata -# * remove non-default assembly features (only available for x86 and aarch64) +# * remove optional assembly features (only available for x86 and aarch64) Patch0: sha-1-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -39,7 +39,7 @@ This package contains library source intended for building other packages which use "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT +%license LICENSE-MIT LICENSE-APACHE %doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ diff --git a/sha-1-fix-metadata.diff b/sha-1-fix-metadata.diff index ca105fa..dc1cefa 100644 --- a/sha-1-fix-metadata.diff +++ b/sha-1-fix-metadata.diff @@ -1,27 +1,21 @@ ---- sha-1-0.9.4/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ sha-1-0.9.4/Cargo.toml 2021-02-27T18:30:21.499379+00:00 +--- sha-1-0.9.7/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ sha-1-0.9.7/Cargo.toml 2021-07-27T21:27:12.997846+00:00 @@ -40,9 +40,6 @@ [dependencies.opaque-debug] version = "0.3" -[dependencies.sha1-asm] --version = "0.4" +-version = "0.5" -optional = true [dev-dependencies.digest] version = "0.9" features = ["dev"] -@@ -51,14 +48,9 @@ +@@ -51,8 +48,6 @@ version = "0.2" [features] --asm = ["sha1-asm", "libc"] +-asm = ["sha1-asm"] -asm-aarch64 = ["asm"] compress = [] default = ["std"] force-soft = [] - std = ["digest/std"] --[target."cfg(all(target_arch = \"aarch64\", target_os = \"linux\"))".dependencies.libc] --version = "0.2.86" --optional = true - [target."cfg(any(target_arch = \"x86\", target_arch = \"x86_64\"))".dependencies.cpuid-bool] - version = "0.1" diff --git a/sources b/sources index 235b17f..ee48ba5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sha-1-0.9.4.crate) = f815f6a8f046cd51b33c0d91c7fe36997490e9ebf6e0c1fdf58efec18560d3aec665b4edaa9d2b702b2aab4667ac17891c620d17d24f8e26657d825ddef24ff4 +SHA512 (sha-1-0.9.7.crate) = d592f7ffa58dbc5aba3a5d6ac96aa27be01e0d54ae63ffb339bb17689f0023819044713b7cf386396fe71555a3da603a4419b36b6594629bd7e43f70d92a67f5