From 3e8f295733292ac7665352e53440a0bab3d15899 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 12 Dec 2022 19:24:26 +0100 Subject: [PATCH] Update to version 1.2.0; Fixes RHBZ#2152441 --- .gitignore | 1 + rust-ansi_colours.spec | 47 ++++++++++++++++++++++++++++++------------ sources | 2 +- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 6e54667..09fe846 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /ansi_colours-1.0.3.crate /ansi_colours-1.0.4.crate /ansi_colours-1.1.1.crate +/ansi_colours-1.2.0.crate diff --git a/rust-ansi_colours.spec b/rust-ansi_colours.spec index 4eb2fae..048c030 100644 --- a/rust-ansi_colours.spec +++ b/rust-ansi_colours.spec @@ -1,23 +1,20 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 23 # * missing dev-dependency: empfindung %bcond_with check %global debug_package %{nil} %global crate ansi_colours -Name: rust-%{crate} -Version: 1.1.1 +Name: rust-ansi_colours +Version: 1.2.0 Release: %autorelease Summary: True-colour ↔ ANSI terminal palette converter -# Upstream license specification: LGPL-3.0-or-later -License: LGPLv3+ +License: LGPL-3.0-or-later URL: https://crates.io/crates/ansi_colours Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: True-colour ↔ ANSI terminal palette converter.} @@ -34,9 +31,9 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,7 +45,19 @@ This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+ansi_term-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ansi_term-devel %{_description} + +This package contains library source intended for building other packages which +use the "ansi_term" feature of the "%{crate}" crate. + +%files -n %{name}+ansi_term-devel +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rgb-devel Summary: %{summary} @@ -60,7 +69,19 @@ This package contains library source intended for building other packages which use the "rgb" feature of the "%{crate}" crate. %files -n %{name}+rgb-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+termcolor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+termcolor-devel %{_description} + +This package contains library source intended for building other packages which +use the "termcolor" feature of the "%{crate}" crate. + +%files -n %{name}+termcolor-devel +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 395b392..bd11834 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ansi_colours-1.1.1.crate) = eee698867adee7e4fe5d14885f91f9d71aa58db06d795dd0f03a8d4c99f6f39dcb11d3871dd2b8f019c443fbdd880888df1e0869202cbb8bde79fe20d60c1c57 +SHA512 (ansi_colours-1.2.0.crate) = 43c555c159d51263f660636ea91338d79571278fc8ba9413ffbff4aa793b842f5a9547dc97d9268dc6d829bca200641c582e325e97f6193aa46911b8a453ad6d