From 60056202ee8002c5990575999ad4fe1c49ec1eee Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 10 Nov 2023 17:50:12 +0100 Subject: [PATCH] Update to version 3.4.1; Fixes RHBZ#2237076 --- .gitignore | 1 + ctrlc-fix-metadata-auto.diff | 10 +++++++--- rust-ctrlc.spec | 10 +++++----- sources | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 753a825..015d0d8 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /ctrlc-3.2.5.crate /ctrlc-3.3.0.crate /ctrlc-3.4.0.crate +/ctrlc-3.4.1.crate diff --git a/ctrlc-fix-metadata-auto.diff b/ctrlc-fix-metadata-auto.diff index 2f001f7..6e0f913 100644 --- a/ctrlc-fix-metadata-auto.diff +++ b/ctrlc-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- ctrlc-3.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ ctrlc-3.4.0/Cargo.toml 2023-06-04T15:47:45.252656+00:00 -@@ -55,20 +55,3 @@ +--- ctrlc-3.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ctrlc-3.4.1/Cargo.toml 2023-11-10T16:48:35.991957+00:00 +@@ -56,23 +56,6 @@ ] default-features = false @@ -21,3 +21,7 @@ - "Win32_System_IO", - "Win32_System_Console", -] +- + [badges.maintenance] + status = "passively-maintained" ++ diff --git a/rust-ctrlc.spec b/rust-ctrlc.spec index f10d998..abaf24d 100644 --- a/rust-ctrlc.spec +++ b/rust-ctrlc.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate ctrlc Name: rust-ctrlc -Version: 3.4.0 +Version: 3.4.1 Release: %autorelease Summary: Easy Ctrl-C handler for Rust projects @@ -13,10 +13,10 @@ Summary: Easy Ctrl-C handler for Rust projects License: MIT OR Apache-2.0 URL: https://crates.io/crates/ctrlc Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: ctrlc-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Easy Ctrl-C handler for Rust projects.} @@ -63,7 +63,7 @@ use the "termination" 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/sources b/sources index bc9af8b..d6cd36a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ctrlc-3.4.0.crate) = 94e2f5580ab178c50d56a6b40490e3a61d121c9de681f54f56c1e50596709835eee0b26df0436d1313af77cec1c4422051f1959221ea82536b8a709ef84c18fd +SHA512 (ctrlc-3.4.1.crate) = 7a42302274ce2b4a361b0ca80f0d4ad5d14e0936ca50679b5655bec40d9815d4e2e634322dfb2d652f7de0b0d04f8548915d7af9e13685f1a63415a078f849d9