From fcdaab1fce19423673739cd305684b4e9ed263ea Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 30 Jan 2023 00:12:51 +0100 Subject: [PATCH] Update to version 1.2.0; Fixes RHBZ#2161057 --- .gitignore | 1 + rust-termcolor.spec | 16 ++++++---------- sources | 2 +- termcolor-fix-metadata-auto.diff | 8 ++++++++ termcolor-fix-metadata.diff | 9 --------- 5 files changed, 16 insertions(+), 20 deletions(-) create mode 100644 termcolor-fix-metadata-auto.diff delete mode 100644 termcolor-fix-metadata.diff diff --git a/.gitignore b/.gitignore index d1789fd..c4f6719 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /termcolor-1.1.1.crate /termcolor-1.1.2.crate /termcolor-1.1.3.crate +/termcolor-1.2.0.crate diff --git a/rust-termcolor.spec b/rust-termcolor.spec index 7e695de..d2d345c 100644 --- a/rust-termcolor.spec +++ b/rust-termcolor.spec @@ -1,23 +1,19 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate termcolor -Name: rust-%{crate} -Version: 1.1.3 +Name: rust-termcolor +Version: 1.2.0 Release: %autorelease Summary: Simple cross platform library for writing colored text to a terminal -# Upstream license specification: Unlicense OR MIT -License: Unlicense or MIT +License: Unlicense OR MIT URL: https://crates.io/crates/termcolor Source: %{crates_source} -# Initial patched metadata -# * drop Windows-specific dependencies -Patch0: termcolor-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Automatically generated patch to strip foreign dependencies +Patch: termcolor-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 diff --git a/sources b/sources index 5b17e40..beb3376 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (termcolor-1.1.3.crate) = 5838fcbfd70f300cb4b62aab50565db52074c56b152ccc8ac1173e4676c0d5a636271bf5a645a77da6e1d4edbf0091af2cd4dd6d73b85c3d198c760898c06f3a +SHA512 (termcolor-1.2.0.crate) = cf1896523353390b2f90b2a8bf30f47da5fc7c2daa635bd0cd8059bdc73feb243e46e4279562fe45d5726f2840833b1e967c7de19ffc0c853592d9f86c0c1be7 diff --git a/termcolor-fix-metadata-auto.diff b/termcolor-fix-metadata-auto.diff new file mode 100644 index 0000000..d93b30f --- /dev/null +++ b/termcolor-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- termcolor-1.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ termcolor-1.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -36,5 +36,3 @@ + + [dev-dependencies] + +-[target."cfg(windows)".dependencies.winapi-util] +-version = "0.1.3" diff --git a/termcolor-fix-metadata.diff b/termcolor-fix-metadata.diff deleted file mode 100644 index ca9710f..0000000 --- a/termcolor-fix-metadata.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- termcolor-1.1.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ termcolor-1.1.3/Cargo.toml 2022-03-05T20:13:51.938496+00:00 -@@ -38,6 +38,3 @@ - [lib] - name = "termcolor" - bench = false -- --[target."cfg(windows)".dependencies.winapi-util] --version = "0.1.3"