diff --git a/.gitignore b/.gitignore index 1e5effd..caaa621 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /dyn-clone-1.0.4.crate +/dyn-clone-1.0.5.crate diff --git a/rust-dyn-clone.spec b/rust-dyn-clone.spec index d941fea..34b0081 100644 --- a/rust-dyn-clone.spec +++ b/rust-dyn-clone.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate dyn-clone Name: rust-%{crate} -Version: 1.0.4 +Version: 1.0.5 Release: %autorelease Summary: Clone trait that is object-safe @@ -15,11 +15,8 @@ URL: https://crates.io/crates/dyn-clone Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Clone trait that is object-safe.} @@ -32,13 +29,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-APACHE LICENSE-MIT -%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 +44,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 61d2549..e8f8b8a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (dyn-clone-1.0.4.crate) = 5d2f65ab4cadb16c877e9adf762f95826e07aaaab77ef64d52c888a8c7b362559fb108f3a5eb887a771dce89fd8d05d9d07fb50328474620e0cf303349c56f6a +SHA512 (dyn-clone-1.0.5.crate) = 76175579757272286a5141a320675636695b14fb400bfd0d19dd66d525fa8f0ca199a0ea9405e92e971a87f5f972d8c5528f5f1b36a9d84bc6950e4071ebd044