From 53742e1ab26c9193b209a4acf3c6fc1038ff6a1f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 14 Feb 2025 14:29:55 +0100 Subject: [PATCH] Update to version 0.2.1; Fixes RHBZ#2343525 --- .gitignore | 1 + rust-wait-timeout.spec | 19 +++++++++---------- rust2rpm.toml | 4 ++++ sources | 2 +- wait-timeout-fix-metadata.diff | 10 ---------- 5 files changed, 15 insertions(+), 21 deletions(-) create mode 100644 rust2rpm.toml delete mode 100644 wait-timeout-fix-metadata.diff diff --git a/.gitignore b/.gitignore index fdfd006..5eb1612 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /wait-timeout-0.1.5.crate /wait-timeout-0.2.0.crate +/wait-timeout-0.2.1.crate diff --git a/rust-wait-timeout.spec b/rust-wait-timeout.spec index 4767e08..cc9de85 100644 --- a/rust-wait-timeout.spec +++ b/rust-wait-timeout.spec @@ -1,24 +1,23 @@ -# Generated by rust2rpm 24 -# * running tests requires building unwanted executables -%bcond_with check +# Generated by rust2rpm 27 +%bcond check 1 %global debug_package %{nil} +# prevent executables from being installed +%global cargo_install_bin 0 + %global crate wait-timeout Name: rust-wait-timeout -Version: 0.2.0 +Version: 0.2.1 Release: %autorelease -Summary: Crate to wait on a child process with a timeout +Summary: Wait on a child process with a timeout # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/wait-timeout Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * drop executables that are only useful for tests -Patch: wait-timeout-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: A crate to wait on a child process with a timeout specified across Unix @@ -54,7 +53,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..f794567 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[package] +summary = "Wait on a child process with a timeout" +cargo-install-bin = false + diff --git a/sources b/sources index 2c49487..f1e13ab 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wait-timeout-0.2.0.crate) = db3b7aa2acfd44e64451042b8ba98eecab77a82aa5c58ed08dadb119ab36dee4e26d62baad7978ed56d5ad03019c96be5021455362290f56043981137bac8066 +SHA512 (wait-timeout-0.2.1.crate) = aa89eb76bd7abc8c12d0d372a74a3e838978d85939ae5bec97392031ba4c211c09fbc0a8719c668835dec325f94c6098a9a684ba180f9fa8352f8131754cd334 diff --git a/wait-timeout-fix-metadata.diff b/wait-timeout-fix-metadata.diff deleted file mode 100644 index 25dda81..0000000 --- a/wait-timeout-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- wait-timeout-0.2.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ wait-timeout-0.2.0/Cargo.toml 2023-04-12T18:24:03.969404+00:00 -@@ -21,6 +21,7 @@ - categories = ["os"] - license = "MIT/Apache-2.0" - repository = "https://github.com/alexcrichton/wait-timeout" -+autobins = false - [target."cfg(unix)".dependencies.libc] - version = "0.2" - [badges.appveyor]