diff --git a/.gitignore b/.gitignore index 834cb37..25f52af 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /streebog-0.9.2.crate /streebog-0.10.0.crate +/streebog-0.10.2.crate diff --git a/rust-streebog.spec b/rust-streebog.spec index 0f5cfed..9442fce 100644 --- a/rust-streebog.spec +++ b/rust-streebog.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate streebog -Name: rust-%{crate} -Version: 0.10.0 +Name: rust-streebog +Version: 0.10.2 Release: %autorelease Summary: Streebog (GOST R 34.11-2012) 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/streebog Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Streebog (GOST R 34.11-2012) hash function.} @@ -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,19 @@ 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}+oid-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+oid-devel %{_description} + +This package contains library source intended for building other packages which +use the "oid" feature of the "%{crate}" crate. + +%files -n %{name}+oid-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -59,7 +70,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 new file mode 100644 index 0000000..9348d58 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Streebog (GOST R 34.11-2012) hash function diff --git a/sources b/sources index aa8b043..5aed39a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (streebog-0.10.0.crate) = cd0962feebed2725f0c6ed3b10f0942a63e5448516d11528b7b7b4d334e678c8c6d88d98bf81b1e1e059aa110fde6fd4273a06f3f65c42602f616481582e28b9 +SHA512 (streebog-0.10.2.crate) = 4e81d357a9a75027e1707aa461c93a02b1092c18ff8a7f60f96bf7d2e408291467c7c88c201e0723ed6c7beb58a361b6b748e7566fc77b9a8e5c2d21b99dd102