diff --git a/.gitignore b/.gitignore index b466be6..fb0ea4f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ /ctor-0.1.18.crate /ctor-0.1.20.crate /ctor-0.1.21.crate +/ctor-0.1.22.crate +/ctor-0.1.23.crate diff --git a/rust-ctor.spec b/rust-ctor.spec index 6f4d50b..a6edff4 100644 --- a/rust-ctor.spec +++ b/rust-ctor.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 22 # * no tests are shipped with the published crates # * example code adds an unnecessary dependency on libc-print (not packaged) %bcond_with check @@ -6,22 +6,18 @@ %global crate ctor -Name: rust-%{crate} -Version: 0.1.21 +Name: rust-ctor +Version: 0.1.23 Release: %autorelease Summary: __attribute__((constructor)) for Rust -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT 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 +30,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 -%{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} @@ -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..7770bbf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ctor-0.1.21.crate) = 18a914f5bd55172e5ff199778babad9a20dd4214f36f24cc00531db5e169af66f77eacab425e8e64d053907366ebd3b448a0c3275ee1f8244822778b62c4cb71 +SHA512 (ctor-0.1.23.crate) = fdbf3e6300d8a0cd33d1938804bea8b7eebfa8226767a7ebc9a824127aa3c0ce469913a63843b8d2043de3705b8e1fb5f4dc1db4ec387356b0a2b38f07cec224