diff --git a/.gitignore b/.gitignore index b6e6d47..325600f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /sha2-0.9.1.crate /sha2-0.9.2.crate /sha2-0.9.3.crate +/sha2-0.9.5.crate diff --git a/rust-sha2.spec b/rust-sha2.spec index b07c038..a9888dc 100644 --- a/rust-sha2.spec +++ b/rust-sha2.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 18 %bcond_without check %global debug_package %{nil} %global crate sha2 Name: rust-%{crate} -Version: 0.9.3 +Version: 0.9.5 Release: %autorelease Summary: Pure Rust implementation of the SHA-2 hash function family @@ -14,7 +14,7 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/sha2 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: sha2-fix-metadata.diff ExclusiveArch: %{rust_arches} diff --git a/sha2-fix-metadata.diff b/sha2-fix-metadata.diff index 1bf60d2..0f322ea 100644 --- a/sha2-fix-metadata.diff +++ b/sha2-fix-metadata.diff @@ -1,27 +1,21 @@ ---- sha2-0.9.3/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ sha2-0.9.3/Cargo.toml 2021-02-15T13:42:27.886545+00:00 -@@ -34,9 +34,6 @@ +--- sha2-0.9.5/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ sha2-0.9.5/Cargo.toml 2021-07-27T10:39:22.487593+00:00 +@@ -37,9 +37,6 @@ [dependencies.opaque-debug] version = "0.3" -[dependencies.sha2-asm] --version = "0.5" +-version = "0.6.1" -optional = true [dev-dependencies.digest] version = "0.9" features = ["dev"] -@@ -45,14 +42,9 @@ +@@ -48,8 +45,6 @@ version = "0.2" [features] --asm = ["sha2-asm", "libc"] +-asm = ["sha2-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.84" --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 b66dc33..c4f6d86 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sha2-0.9.3.crate) = 95c6c30b73bd3ee712b29be6ebb66f6fdf5256f37a6345e9412db74bc294260d6edf2ff0c21ac768e7cf0fb100f45f23489138e8ec1d4ca6f695028ac42806a5 +SHA512 (sha2-0.9.5.crate) = c4149abf96d9ba5bf18a29c45dbc0e7d44bb5eadbed26fe2915a7e3b9f253381d090d880a96e9d79eb6399bfdd9d27550961ae07a96d1cf8070ad77d09a1fe52