diff --git a/.gitignore b/.gitignore index 9df2bc8..5b99e81 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /sha2-0.9.8.crate /sha2-0.10.1.crate /sha2-0.10.2.crate +/sha2-0.10.3.crate diff --git a/rust-sha2.spec b/rust-sha2.spec index 77fbcd3..9bfc93c 100644 --- a/rust-sha2.spec +++ b/rust-sha2.spec @@ -1,22 +1,21 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate sha2 -Name: rust-%{crate} -Version: 0.10.2 +Name: rust-sha2 +Version: 0.10.3 Release: %autorelease Summary: Pure Rust implementation of the SHA-2 hash function family -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/sha2 Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Pure Rust implementation of the SHA-2 hash function family including SHA-224, @@ -34,9 +33,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,7 +49,7 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compress-devel Summary: %{summary} @@ -60,7 +61,7 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+force-soft-devel Summary: %{summary} @@ -72,7 +73,7 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -84,7 +85,7 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index b77cca5..b13022b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sha2-0.10.2.crate) = 20b8217ce9b56fb5f2c1d71d3555889bcfcf5e40fb7fe0eec23479d384dfcd504f1046d6a12dcbb5072813792992b45261e664e9e8e14eb90a641e94336eb4d2 +SHA512 (sha2-0.10.3.crate) = ba7abf178cd5af0ab8d5ebf94ae7277ee365234ad69ea8233407a5f7f7a04c0822da5eb2ddc8d75cba16b44ab36c22a6d68301145825df1a35da3f5500c0037d