diff --git a/.gitignore b/.gitignore index 1e21fc2..dd1d0da 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /sha1-0.6.0.crate /sha1-0.10.0.crate /sha1-0.10.1.crate +/sha1-0.10.2.crate diff --git a/rust-sha1.spec b/rust-sha1.spec index c9a11f5..382138d 100644 --- a/rust-sha1.spec +++ b/rust-sha1.spec @@ -1,22 +1,21 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate sha1 -Name: rust-%{crate} -Version: 0.10.1 +Name: rust-sha1 +Version: 0.10.2 Release: %autorelease Summary: SHA-1 hash function -# 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/sha1 Source: %{crates_source} ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: SHA-1 hash function.} @@ -33,9 +32,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 +48,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} @@ -59,7 +60,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} @@ -71,7 +72,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} @@ -83,7 +84,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 4e06b9c..b69a883 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sha1-0.10.1.crate) = 5f32cfff707d08dfcf0c826ddd723fbdb7e1e29614f6b303c2707dd75ef3b599a5e2b48ebdd570e2e731b02dbcbe2557e91f2d1c5cb44d0afb3d8a46c38c89a4 +SHA512 (sha1-0.10.2.crate) = a889914c3960abcf0c423b60890474daeb257f343313349ba3b9376d72c9bf466171a04d91daba452b5bc36106e484ebdbbb819a303f920b58fdcd42b692d7e4