diff --git a/.gitignore b/.gitignore index d5fb034..8036508 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /pbkdf2-0.9.0.crate +/pbkdf2-0.10.1.crate diff --git a/rust-pbkdf2.spec b/rust-pbkdf2.spec index de1b055..380abff 100644 --- a/rust-pbkdf2.spec +++ b/rust-pbkdf2.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate pbkdf2 -Name: rust-%{crate} -Version: 0.9.0 +Name: rust-pbkdf2 +Version: 0.10.1 Release: %autorelease Summary: Generic implementation of PBKDF2 -# 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/pbkdf2 Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Generic implementation of PBKDF2.} @@ -33,9 +30,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} @@ -47,7 +46,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}+hmac-devel Summary: %{summary} @@ -59,7 +58,7 @@ This package contains library source intended for building other packages which use the "hmac" feature of the "%{crate}" crate. %files -n %{name}+hmac-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+parallel-devel Summary: %{summary} @@ -71,7 +70,7 @@ This package contains library source intended for building other packages which use the "parallel" feature of the "%{crate}" crate. %files -n %{name}+parallel-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+password-hash-devel Summary: %{summary} @@ -83,7 +82,7 @@ This package contains library source intended for building other packages which use the "password-hash" feature of the "%{crate}" crate. %files -n %{name}+password-hash-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} @@ -95,7 +94,7 @@ This package contains library source intended for building other packages which use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sha1-devel Summary: %{summary} @@ -107,7 +106,7 @@ This package contains library source intended for building other packages which use the "sha1" feature of the "%{crate}" crate. %files -n %{name}+sha1-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sha2-devel Summary: %{summary} @@ -119,7 +118,7 @@ This package contains library source intended for building other packages which use the "sha2" feature of the "%{crate}" crate. %files -n %{name}+sha2-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+simple-devel Summary: %{summary} @@ -131,7 +130,7 @@ This package contains library source intended for building other packages which use the "simple" feature of the "%{crate}" crate. %files -n %{name}+simple-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -143,7 +142,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/sources b/sources index a7c3fef..d47a669 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pbkdf2-0.9.0.crate) = 94c663de9718f883b1b47251f1741e91af8d6d67c387c8e368020aac8a5a20c04e8cbdc51a06828b0ec41dc62ba572b5a6826848940a3abe957348ae72c6d92e +SHA512 (pbkdf2-0.10.1.crate) = 534f8e78f807321185205166a887c3f9aeb7c88ca15f0354d7772bee64620aff116cbc7a80ed1a5ddaddd5ba8648da8d2b27b110c87daecfd57ba173473938ca