From ef5ed38c932bb36f98d0a11a837c0dd7acf4c59e Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 7 Jan 2020 10:08:31 -0800 Subject: [PATCH] Update to 0.8.2 --- .gitignore | 1 + rust-sha-1.spec | 40 ++++++++++------------------------------ sha-1-fix-metadata.diff | 27 +++++++++++++++++++++++---- sources | 2 +- 4 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index 43b4003..f5709f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /sha-1-0.8.1.crate +/sha-1-0.8.2.crate diff --git a/rust-sha-1.spec b/rust-sha-1.spec index 307e570..9f4195f 100644 --- a/rust-sha-1.spec +++ b/rust-sha-1.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate sha-1 Name: rust-%{crate} -Version: 0.8.1 -Release: 4%{?dist} +Version: 0.8.2 +Release: 1%{?dist} Summary: SHA-1 hash function # Upstream license specification: MIT OR Apache-2.0 @@ -15,6 +15,7 @@ URL: https://crates.io/crates/sha-1 Source: %{crates_source} # Initial patched metadata # * Update hex-literal to 0.2, https://github.com/RustCrypto/hashes/pull/85 +# * Remove unstable asm features Patch0: sha-1-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -40,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -52,31 +53,7 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+asm-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+asm-devel %{_description} - -This package contains library source intended for building other packages -which use "asm" feature of "%{crate}" crate. - -%files -n %{name}+asm-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml - -%package -n %{name}+sha1-asm-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+sha1-asm-devel %{_description} - -This package contains library source intended for building other packages -which use "sha1-asm" feature of "%{crate}" crate. - -%files -n %{name}+sha1-asm-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -88,7 +65,7 @@ This package contains library source intended for building other packages which use "std" feature of "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -109,6 +86,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Tue Jan 07 2020 Josh Stone - 0.8.2-1 +- Update to 0.8.2 + * Fri Jul 26 2019 Fedora Release Engineering - 0.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sha-1-fix-metadata.diff b/sha-1-fix-metadata.diff index 6fe95d1..0794256 100644 --- a/sha-1-fix-metadata.diff +++ b/sha-1-fix-metadata.diff @@ -1,6 +1,21 @@ ---- sha-1-0.8.1/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ sha-1-0.8.1/Cargo.toml 2019-06-23T08:30:56.452978+00:00 -@@ -43,7 +43,7 @@ +--- sha-1-0.8.2/Cargo.toml 2020-01-06T02:54:55+00:00 ++++ sha-1-0.8.2/Cargo.toml 2020-01-07T18:04:23.871480+00:00 +@@ -32,26 +32,17 @@ + [dependencies.fake-simd] + version = "0.1" + +-[dependencies.libc] +-version = "0.2" +-optional = true +- + [dependencies.opaque-debug] + version = "0.2" + +-[dependencies.sha1-asm] +-version = "0.4" +-optional = true + [dev-dependencies.digest] + version = "0.8" features = ["dev"] [dev-dependencies.hex-literal] @@ -8,4 +23,8 @@ +version = "0.2" [features] - asm = ["sha1-asm"] +-asm = ["sha1-asm"] +-asm-aarch64 = ["asm", "libc"] + default = ["std"] + std = ["digest/std"] + [badges.travis-ci] diff --git a/sources b/sources index a7dd02c..6fbcda4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sha-1-0.8.1.crate) = 7446e7564b5903e588911008f9367f9d9b0d96ae883d299ee4f10ec3d7a30abf1af1bc9c4f2172226f09071413116c12a8a67419246f7a7de95e9fdeec3aacb1 +SHA512 (sha-1-0.8.2.crate) = 65ddb7bd8f0157d134e70f7c6d6abf7aea198cb97da17b418a265642c5930b8cbd9c8e0b97b557102787cc842cddc93213d669345c2aaac6a1e7146765b2d5cd