From eac9e624885980ed7e28f55b6bfd326224e9a6be Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 18 Jun 2024 15:10:41 +0200 Subject: [PATCH] Update to version 0.13.7; Fixes RHBZ#2255656 --- .gitignore | 1 + duct-fix-metadata.diff | 10 ---------- rust-duct.spec | 17 ++++++++--------- rust2rpm.toml | 3 +++ sources | 2 +- 5 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 duct-fix-metadata.diff create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index a800b85..b1bf4ec 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /duct-0.13.4.crate /duct-0.13.5.crate /duct-0.13.6.crate +/duct-0.13.7.crate diff --git a/duct-fix-metadata.diff b/duct-fix-metadata.diff deleted file mode 100644 index ad8a2c7..0000000 --- a/duct-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- duct-0.13.6/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ duct-0.13.6/Cargo.toml 2023-05-17T11:06:45.960536+00:00 -@@ -26,6 +26,7 @@ - ] - license = "MIT" - repository = "https://github.com/oconnor663/duct.rs" -+autobins = false - - [dependencies.once_cell] - version = "1.0.1" diff --git a/rust-duct.spec b/rust-duct.spec index be5de48..a53fed5 100644 --- a/rust-duct.spec +++ b/rust-duct.spec @@ -1,23 +1,22 @@ -# Generated by rust2rpm 24 -# * helper binaries for tests are not built -%bcond_with check +# Generated by rust2rpm 26 +%bcond_without check %global debug_package %{nil} +# prevent executables from being installed +%global cargo_install_bin 0 + %global crate duct Name: rust-duct -Version: 0.13.6 +Version: 0.13.7 Release: %autorelease Summary: Library for running child processes License: MIT URL: https://crates.io/crates/duct Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * prevent test binaries from being built and shipped -Patch: duct-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: A library for running child processes.} @@ -51,7 +50,7 @@ use the "default" 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..de63bf5 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +cargo-install-bin = false + diff --git a/sources b/sources index 6c9d14c..b0160fe 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (duct-0.13.6.crate) = bf6a69fc2eda5dbf79dd785eea131d5c9ee38ffa3c99e7ffb9fcd47ef0beae8b3e5e75ef78172e54ef076531a38c4598880694a7b93573ffeffd3861e7776369 +SHA512 (duct-0.13.7.crate) = b6e524144360b61b5c134d40aec409664388e88ada241443d152c5f7ef8795535ba243cc792c881557412bf75c2ba73c84e2f620eaf7d4668a15ba6bc274b1e7