diff --git a/.gitignore b/.gitignore index 0436f9a..3a79b20 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /try-lock-0.2.2.crate /try-lock-0.2.3.crate +/try-lock-0.2.4.crate diff --git a/rust-try-lock.spec b/rust-try-lock.spec index c1cf740..1090e99 100644 --- a/rust-try-lock.spec +++ b/rust-try-lock.spec @@ -1,25 +1,19 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate try-lock -Name: rust-%{crate} -Version: 0.2.3 +Name: rust-try-lock +Version: 0.2.4 Release: %autorelease Summary: Lightweight atomic lock -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/try-lock Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Lightweight atomic lock.} @@ -32,13 +26,13 @@ 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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +40,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 102b8ef..b748721 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (try-lock-0.2.3.crate) = ebae7ba9227e6fc20499b48ab85169943765342d4790bb4a31ac33a2be0af9401e2854c8e00b9d3b7e225d16875c90700b1c3fa99af07833d3b7a91b7a414fc3 +SHA512 (try-lock-0.2.4.crate) = fbd989589eb0a1fb226de65537d51eceab632603e69710b37708d6109ed09c07333189675d5e560e35cc836e5cd211c726d8ce247186b5ea4529328d46c22632