From 5b42b4c4d9534ac2e41b5b74ecca816b577a6711 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 12 Mar 2023 15:47:37 +0100 Subject: [PATCH] Update to version 0.1.6; Fixes RHBZ#2177507 --- .gitignore | 1 + rust-crypto-common.spec | 39 +++++++++++++++++++++++++-------------- sources | 2 +- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 6a5cd16..cd192c1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /crypto-common-0.1.3.crate +/crypto-common-0.1.6.crate diff --git a/rust-crypto-common.spec b/rust-crypto-common.spec index 0324837..08cc733 100644 --- a/rust-crypto-common.spec +++ b/rust-crypto-common.spec @@ -1,22 +1,19 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate crypto-common -Name: rust-%{crate} -Version: 0.1.3 +Name: rust-crypto-common +Version: 0.1.6 Release: %autorelease Summary: Common cryptographic traits -# 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/crypto-common Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Common cryptographic traits.} @@ -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}+getrandom-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+getrandom-devel %{_description} + +This package contains library source intended for building other packages which +use the "getrandom" feature of the "%{crate}" crate. + +%files -n %{name}+getrandom-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand_core-devel Summary: %{summary} @@ -59,7 +70,7 @@ This package contains library source intended for building other packages which use the "rand_core" feature of the "%{crate}" crate. %files -n %{name}+rand_core-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -71,7 +82,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 300bba4..ce21777 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (crypto-common-0.1.3.crate) = d32fa67b9baafc32ce6f4d97d54deb7f1b4453849bf549384689b0ce8d417407d11f405793e7765ea47dfa86c8d6df5661bd17793c145351731c39f8124d1a2f +SHA512 (crypto-common-0.1.6.crate) = 471dbc43f517089d2cfe0868e29510c6ca579875b3bb5d013c70796db969b609b6c4bb35c9a07b9a2917012dc5708b717d48e317a20038adbe7e7039bf3ada6f