diff --git a/.gitignore b/.gitignore index 37b2fb6..d44a86a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /sha2-0.8.0.crate /sha2-0.8.1.crate +/sha2-0.8.2.crate diff --git a/rust-sha2.spec b/rust-sha2.spec index 7c37eb4..b7427ce 100644 --- a/rust-sha2.spec +++ b/rust-sha2.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 15 %bcond_without check %global debug_package %{nil} %global crate sha2 Name: rust-%{crate} -Version: 0.8.1 -Release: 2%{?dist} +Version: 0.8.2 +Release: 1%{?dist} Summary: SHA-2 hash functions # Upstream license specification: MIT OR Apache-2.0 @@ -15,7 +15,6 @@ URL: https://crates.io/crates/sha2 Source: %{crates_source} # Initial patched metadata # * Update hex-literal to 0.2, https://github.com/RustCrypto/hashes/pull/85 -# * Remove unstable asm features Patch0: sha2-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -26,7 +25,8 @@ BuildArch: noarch BuildRequires: rust-packaging %global _description %{expand: -SHA-2 hash functions.} +Pure Rust implementation of the SHA-2 hash function family including SHA-224, +SHA-256, SHA-384, and SHA-512.} %description %{_description} @@ -55,6 +55,66 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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_no_tilde}/Cargo.toml + +%package -n %{name}+asm-aarch64-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+asm-aarch64-devel %{_description} + +This package contains library source intended for building other packages +which use "asm-aarch64" feature of "%{crate}" crate. + +%files -n %{name}+asm-aarch64-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+compress-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+compress-devel %{_description} + +This package contains library source intended for building other packages +which use "compress" feature of "%{crate}" crate. + +%files -n %{name}+compress-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+libc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+libc-devel %{_description} + +This package contains library source intended for building other packages +which use "libc" feature of "%{crate}" crate. + +%files -n %{name}+libc-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+sha2-asm-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sha2-asm-devel %{_description} + +This package contains library source intended for building other packages +which use "sha2-asm" feature of "%{crate}" crate. + +%files -n %{name}+sha2-asm-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -86,6 +146,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Sun May 24 12:28:18 CEST 2020 Igor Raits - 0.8.2-1 +- Update to 0.8.2 + * Thu Jan 30 2020 Fedora Release Engineering - 0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sha2-fix-metadata.diff b/sha2-fix-metadata.diff index 0e2c36d..c57ca48 100644 --- a/sha2-fix-metadata.diff +++ b/sha2-fix-metadata.diff @@ -1,21 +1,6 @@ ---- sha2-0.8.1/Cargo.toml 2020-01-06T02:55:40+00:00 -+++ sha2-0.8.1/Cargo.toml 2020-01-07T18:11:28.488572+00:00 -@@ -29,26 +29,17 @@ - [dependencies.fake-simd] - version = "0.1" - --[dependencies.libc] --version = "0.2" --optional = true -- - [dependencies.opaque-debug] - version = "0.2" - --[dependencies.sha2-asm] --version = "0.5" --optional = true - [dev-dependencies.digest] - version = "0.8" +--- sha2-0.8.2/Cargo.toml 2020-05-24T00:14:45+00:00 ++++ sha2-0.8.2/Cargo.toml 2020-05-24T10:28:18.806695+00:00 +@@ -44,7 +44,7 @@ features = ["dev"] [dev-dependencies.hex-literal] @@ -23,8 +8,4 @@ +version = "0.2" [features] --asm = ["sha2-asm"] --asm-aarch64 = ["asm", "libc"] - default = ["std"] - std = ["digest/std"] - [badges.travis-ci] + asm = ["sha2-asm"] diff --git a/sources b/sources index 89a0114..e42150a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sha2-0.8.1.crate) = b2de5cd8476b7c709fad0996c2e0c7bf577e077e7d5f70c47b780fb41c7cf8e75d156958a5519a7cac9f390d91b4c044590ecc9be0953e0632f54e7c063109ad +SHA512 (sha2-0.8.2.crate) = a9c2c9ccc846fd73d12fe9120ad1fb224bc35475c7332379a9cc67a7889677ddb1c577489d3a1aeae24e98b397b321823010c20ab3aca172839b2ea1fdc89da8