diff --git a/.gitignore b/.gitignore index 2cd990e..0f7891c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /lscolors-0.7.0.crate /lscolors-0.7.1.crate /lscolors-0.10.0.crate +/lscolors-0.13.0.crate diff --git a/lscolors-fix-metadata.diff b/lscolors-fix-metadata.diff deleted file mode 100644 index b712997..0000000 --- a/lscolors-fix-metadata.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- lscolors-0.10.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ lscolors-0.10.0/Cargo.toml 2022-07-26T15:23:33.519910+00:00 -@@ -39,7 +39,7 @@ - optional = true - - [dependencies.crossterm] --version = "0.23" -+version = "0.22" - optional = true - - [dev-dependencies.tempfile] diff --git a/rust-lscolors.spec b/rust-lscolors.spec index 57b5e82..0678804 100644 --- a/rust-lscolors.spec +++ b/rust-lscolors.spec @@ -1,10 +1,10 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 23 %bcond_without check %global crate lscolors Name: rust-lscolors -Version: 0.10.0 +Version: 0.13.0 Release: %autorelease Summary: Colorize paths using the LS_COLORS environment variable @@ -12,11 +12,6 @@ Summary: Colorize paths using the LS_COLORS environment variable License: MIT OR Apache-2.0 URL: https://crates.io/crates/lscolors Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * temporarily downgrade crossterm from 0.23 to 0.22 -Patch: lscolors-fix-metadata.diff - -ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 @@ -27,9 +22,6 @@ Colorize paths using the LS_COLORS environment variable.} %package -n %{crate} Summary: %{summary} -# MIT OR Apache-2.0: lscolors 0.10.0 -# MIT: ansi_term 0.12.1 -License: MIT %description -n %{crate} %{_description} @@ -90,6 +82,18 @@ use the "crossterm" feature of the "%{crate}" crate. %files -n %{name}+crossterm-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+nu-ansi-term-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nu-ansi-term-devel %{_description} + +This package contains library source intended for building other packages which +use the "nu-ansi-term" feature of the "%{crate}" crate. + +%files -n %{name}+nu-ansi-term-devel +%ghost %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 8c1c301..847f676 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lscolors-0.10.0.crate) = 2ff4b1234cb42128f9eb53e3a35484ccde51621292c61ca6ff5442e6f5a343a3dfebafa9f2ba45f7bc3e2211f152e629e6812b786f53d277791555b67a4e3cd8 +SHA512 (lscolors-0.13.0.crate) = bce06cd4505a9efacee6302b536575e495720a3d051a8bdfac3904a8b0bba94aee6bb516702b79750711a57699e4e49ed3f354646ba22f3d3338693e20f80caa