diff --git a/.gitignore b/.gitignore index b466be6..1a752c0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /ctor-0.1.18.crate /ctor-0.1.20.crate /ctor-0.1.21.crate +/ctor-0.1.22.crate diff --git a/rust-ctor.spec b/rust-ctor.spec index 6f4d50b..93e5fe9 100644 --- a/rust-ctor.spec +++ b/rust-ctor.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 # * no tests are shipped with the published crates # * example code adds an unnecessary dependency on libc-print (not packaged) %bcond_with check @@ -7,7 +7,7 @@ %global crate ctor Name: rust-%{crate} -Version: 0.1.21 +Version: 0.1.22 Release: %autorelease Summary: __attribute__((constructor)) for Rust @@ -17,11 +17,8 @@ URL: https://crates.io/crates/ctor Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: __attribute__((constructor)) for Rust.} @@ -34,12 +31,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-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +45,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 e97f6c6..d813e1b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ctor-0.1.21.crate) = 18a914f5bd55172e5ff199778babad9a20dd4214f36f24cc00531db5e169af66f77eacab425e8e64d053907366ebd3b448a0c3275ee1f8244822778b62c4cb71 +SHA512 (ctor-0.1.22.crate) = cd7c60dae8fb19c3b10e0bf1ffbcedac90cbbd147d564335e4da2d5483f64ea3dc10ad17d7573b00958db0a72cce45f8b7bc10c32864dd943fe64df8d22aaaab