diff --git a/.gitignore b/.gitignore index 50d9075..0e44035 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /termcolor-1.1.3.crate /termcolor-1.2.0.crate /termcolor-1.3.0.crate +/termcolor-1.4.0.crate diff --git a/rust-termcolor.spec b/rust-termcolor.spec index c4a5e17..94ef4fc 100644 --- a/rust-termcolor.spec +++ b/rust-termcolor.spec @@ -1,21 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate termcolor Name: rust-termcolor -Version: 1.3.0 +Version: 1.4.0 Release: %autorelease Summary: Simple cross platform library for writing colored text to a terminal License: Unlicense OR MIT URL: https://crates.io/crates/termcolor Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: termcolor-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A simple cross platform library for writing colored text to a terminal.} @@ -51,7 +51,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/sources b/sources index a02dfff..436520b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (termcolor-1.3.0.crate) = cb6639ece1f24a30ee4f28071f5f177e88dfc294c3b9aadbc4d539bb5e796a1f47a8d3db61e7e0798d271fa1e1cad9c23f3e56e166b8688c4fd4e81fab2a8942 +SHA512 (termcolor-1.4.0.crate) = 36c8550fe85cb90c4fdd1a6e3f60b42b6c71f65b6128da97d5ad6aac8350d907410899ad4a47bb4dc72ea6d00bc69e5a1ccc80ee9b0e80a1a27912e233f3e416 diff --git a/termcolor-fix-metadata-auto.diff b/termcolor-fix-metadata-auto.diff index e587d9d..185ffd8 100644 --- a/termcolor-fix-metadata-auto.diff +++ b/termcolor-fix-metadata-auto.diff @@ -1,5 +1,5 @@ ---- termcolor-1.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ termcolor-1.3.0/Cargo.toml 2023-09-19T10:38:02.867862+00:00 +--- termcolor-1.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ termcolor-1.4.0/Cargo.toml 2023-11-14T23:46:43.491515+00:00 @@ -36,5 +36,3 @@ [dev-dependencies]