diff --git a/.gitignore b/.gitignore index 4d66d67..e1d3053 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /sha-1-0.9.4.crate /sha-1-0.9.7.crate /sha-1-0.9.8.crate +/sha-1-0.10.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..5f210cf --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,4 @@ +[DEFAULT] +unwanted-features = + asm + sha1-asm diff --git a/rust-sha-1.spec b/rust-sha-1.spec index 98521ba..2c236aa 100644 --- a/rust-sha-1.spec +++ b/rust-sha-1.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate sha-1 Name: rust-%{crate} -Version: 0.9.8 +Version: 0.10.0 Release: %autorelease Summary: SHA-1 hash function @@ -13,14 +13,8 @@ Summary: SHA-1 hash function License: MIT or ASL 2.0 URL: https://crates.io/crates/sha-1 Source: %{crates_source} -# Initial patched metadata -# * remove optional assembly features (only available for x86 and aarch64) -Patch0: sha-1-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -35,12 +29,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 @@ -49,8 +43,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 @@ -61,8 +55,8 @@ 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. +This package contains library source intended for building other packages which +use the "compress" feature of the "%{crate}" crate. %files -n %{name}+compress-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -73,8 +67,8 @@ BuildArch: noarch %description -n %{name}+force-soft-devel %{_description} -This package contains library source intended for building other packages -which use "force-soft" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "force-soft" feature of the "%{crate}" crate. %files -n %{name}+force-soft-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -85,8 +79,8 @@ 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 diff --git a/sha-1-fix-metadata.diff b/sha-1-fix-metadata.diff deleted file mode 100644 index e15af5a..0000000 --- a/sha-1-fix-metadata.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- sha-1-0.9.8/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ sha-1-0.9.8/Cargo.toml 2021-09-29T15:53:47.730917+00:00 -@@ -40,9 +40,6 @@ - [dependencies.opaque-debug] - version = "0.3" - --[dependencies.sha1-asm] --version = "0.5" --optional = true - [dev-dependencies.digest] - version = "0.9" - features = ["dev"] -@@ -51,8 +48,6 @@ - version = "0.2" - - [features] --asm = ["sha1-asm"] --asm-aarch64 = ["asm"] - compress = [] - default = ["std"] - force-soft = [] diff --git a/sources b/sources index d736f56..d1644b9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sha-1-0.9.8.crate) = d4708a762d5f3dfd902ed335f0383cf63b442f95b1aebbaca3643606ed2480060d2ed04f123d0c44496147ecbb06a093980b435f9d3ff9e0f5c908389736aa9f +SHA512 (sha-1-0.10.0.crate) = 5f202e74a5323ccd12bb2fa57f6357eb8d12d5702fe9fda745aaed70725a5c9c78dd6f8aa734b350948fe8155cb36d8bbfe16615f0335f0502827ad26ea387ac