diff --git a/.gitignore b/.gitignore index 7ef8887..9ef3126 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /const-random-0.1.10.crate /const-random-0.1.11.crate /const-random-0.1.13.crate +/const-random-0.1.15.crate diff --git a/rust-const-random.spec b/rust-const-random.spec index ece3a0a..b3133bf 100644 --- a/rust-const-random.spec +++ b/rust-const-random.spec @@ -1,25 +1,19 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate const-random -Name: rust-%{crate} -Version: 0.1.13 +Name: rust-const-random +Version: 0.1.15 Release: %autorelease Summary: Provides compile time random number generation -# 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/const-random Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Provides compile time random number generation.} @@ -32,13 +26,14 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +41,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 1c45ad1..2815e89 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (const-random-0.1.13.crate) = 23f285deac9a41d7b24b93e94b161017ed4e2f388b3d67120f884ff67676f83228de4d56dd160d6d115391e92857d3ee0b8824f358b07bc28ef5017f7e974508 +SHA512 (const-random-0.1.15.crate) = efda06434f62ad74eca1a8768de065367a6e2466b98fade93a6714834b71092c9009219f92969da233b329bc4bcf630944fbf666bc5fb852aacd4dfddc881c40