From 414d195cad68e4b0f6483b0fb9d2b6df9fb2c660 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 11 Jan 2024 21:20:36 +0100 Subject: [PATCH] Update to version 0.4.4; Fixes RHBZ#2253098 --- .gitignore | 1 + rust-termbg.spec | 12 ++++++------ sources | 2 +- termbg-fix-metadata-auto.diff | 6 +++--- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index fa003cc..bf563d6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /termbg-0.4.0.crate /termbg-0.4.1.crate /termbg-0.4.3.crate +/termbg-0.4.4.crate diff --git a/rust-termbg.spec b/rust-termbg.spec index fef5f88..8a2cef6 100644 --- a/rust-termbg.spec +++ b/rust-termbg.spec @@ -1,20 +1,20 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global crate termbg Name: rust-termbg -Version: 0.4.3 +Version: 0.4.4 Release: %autorelease Summary: Terminal background color detection License: MIT OR Apache-2.0 URL: https://crates.io/crates/termbg Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: termbg-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 23 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Terminal background color detection.} @@ -71,7 +71,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 @@ -79,7 +79,7 @@ use the "default" feature of the "%{crate}" crate. %build %cargo_build -%cargo_license_summary +%{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install diff --git a/sources b/sources index 310481c..bcd7537 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (termbg-0.4.3.crate) = 2f9e346a46c1b9da161cff22e042b105284c568523b94c13552dd85f07e576b28c7232d15e8a1efc84b2e77713c2e78192a807748e26b391e2ba137924a2f557 +SHA512 (termbg-0.4.4.crate) = 2ec9dfbc64de07cc6e99f3b3942994506baa28c443f38036671cd673c6cacd57db9418e8fef2e14f4dba4858d485c92007699dd69fc0b850fbc862abbfdf3127 diff --git a/termbg-fix-metadata-auto.diff b/termbg-fix-metadata-auto.diff index 1d46949..7ac30a0 100644 --- a/termbg-fix-metadata-auto.diff +++ b/termbg-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- termbg-0.4.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ termbg-0.4.3/Cargo.toml 2023-08-02T12:44:42.275331+00:00 -@@ -66,11 +66,3 @@ +--- termbg-0.4.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ termbg-0.4.4/Cargo.toml 2024-01-11T20:17:57.934037+00:00 +@@ -69,11 +69,3 @@ [dependencies.thiserror] version = "1"