From 0942df6576612a167df6ba3454bfd0290fd40f26 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 11 Jan 2024 20:54:56 +0100 Subject: [PATCH] Update to version 0.2.6; Fixes RHBZ#2254123 --- .gitignore | 1 + rust-ctor.spec | 8 ++++---- rust2rpm.toml | 7 +++++++ sources | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 4ecb9b3..f43eeeb 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /ctor-0.2.3.crate /ctor-0.2.4.crate /ctor-0.2.5.crate +/ctor-0.2.6.crate diff --git a/rust-ctor.spec b/rust-ctor.spec index 41595cc..bcbae8e 100644 --- a/rust-ctor.spec +++ b/rust-ctor.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 # * 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-ctor -Version: 0.2.5 +Version: 0.2.6 Release: %autorelease Summary: __attribute__((constructor)) for Rust @@ -15,7 +15,7 @@ License: Apache-2.0 OR MIT URL: https://crates.io/crates/ctor Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: __attribute__((constructor)) for Rust.} @@ -62,7 +62,7 @@ use the "used_linker" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..16af3a5 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,7 @@ +[tests] +run = ["none"] +comments = [ + "no tests are shipped with the published crates", + "example code adds an unnecessary dependency on libc-print (not packaged)", +] + diff --git a/sources b/sources index aa1e168..ff7f55f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ctor-0.2.5.crate) = d0c19df18ed58e669d08de233800739e30ca96bdc58c4e995c9b066631076e7a3ee4a754b0fb8b2b81075700529329b94ccea5cf357cf1b2953d3e6a544c5f6e +SHA512 (ctor-0.2.6.crate) = 2fc384ae21a7529fb4320ea3b242cb323cc90ab21b35ab85618e3e3767625e4736e8093bb7677fe018d33676c5591d159266fe2c03023ec130d8c17363d3d4cd