From 084c5a924a0107296c1496859ac43fb4f67e05bd Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 21 Mar 2022 12:38:27 +0100 Subject: [PATCH 2/4] Update to version 0.1.22; Fixes RHBZ#2065514 --- .gitignore | 1 + rust-ctor.spec | 24 +++++++++++------------- sources | 2 +- 3 files changed, 13 insertions(+), 14 deletions(-) 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 From 5b15cb2b98ce9d7f1aa423c34362721de26cf4fc Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 29 Jul 2022 22:49:53 +0200 Subject: [PATCH 4/4] Update to version 0.1.23; Fixes RHBZ#2112149 --- .gitignore | 1 + rust-ctor.spec | 10 +++++----- sources | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 1a752c0..fb0ea4f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /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 93e5fe9..a6edff4 100644 --- a/rust-ctor.spec +++ b/rust-ctor.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 21 +# 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,13 +6,12 @@ %global crate ctor -Name: rust-%{crate} -Version: 0.1.22 +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} @@ -37,6 +36,7 @@ use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel diff --git a/sources b/sources index d813e1b..7770bbf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ctor-0.1.22.crate) = cd7c60dae8fb19c3b10e0bf1ffbcedac90cbbd147d564335e4da2d5483f64ea3dc10ad17d7573b00958db0a72cce45f8b7bc10c32864dd943fe64df8d22aaaab +SHA512 (ctor-0.1.23.crate) = fdbf3e6300d8a0cd33d1938804bea8b7eebfa8226767a7ebc9a824127aa3c0ce469913a63843b8d2043de3705b8e1fb5f4dc1db4ec387356b0a2b38f07cec224