diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9cbaf61 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lscolors-0.16.0.crate diff --git a/.rust-lscolors.metadata b/.rust-lscolors.metadata index e69de29..c5672a9 100644 --- a/.rust-lscolors.metadata +++ b/.rust-lscolors.metadata @@ -0,0 +1 @@ +a3a30954460afd35f9642a45e210d4ed12f3abd6 SOURCES/lscolors-0.16.0.crate diff --git a/SOURCES/lscolors-0.15.0.crate b/SOURCES/lscolors-0.15.0.crate deleted file mode 100644 index 63a512e..0000000 Binary files a/SOURCES/lscolors-0.15.0.crate and /dev/null differ diff --git a/SOURCES/lscolors-fix-metadata.diff b/SOURCES/lscolors-fix-metadata.diff deleted file mode 100644 index aa111fe..0000000 --- a/SOURCES/lscolors-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- lscolors-0.15.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ lscolors-0.15.0/Cargo.toml 2023-10-27T04:06:20.412916+00:00 -@@ -32,7 +32,6 @@ - [profile.release] - lto = true - codegen-units = 1 --strip = true - - [[bin]] - name = "lscolors" diff --git a/SPECS/rust-lscolors.spec b/SPECS/rust-lscolors.spec index cdca0c9..3a517c5 100644 --- a/SPECS/rust-lscolors.spec +++ b/SPECS/rust-lscolors.spec @@ -8,13 +8,13 @@ }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global crate lscolors Name: rust-lscolors -Version: 0.15.0 +Version: 0.16.0 Release: %autorelease Summary: Colorize paths using the LS_COLORS environment variable @@ -22,11 +22,8 @@ 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 -# * turn off stripping, needed for debug packages -Patch: lscolors-fix-metadata.diff -BuildRequires: rust-packaging >= 23 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Colorize paths using the LS_COLORS environment variable.} @@ -100,6 +97,18 @@ use the "crossterm" feature of the "%{crate}" crate. %files -n %{name}+crossterm-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+gnu_legacy-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+gnu_legacy-devel %{_description} + +This package contains library source intended for building other packages which +use the "gnu_legacy" feature of the "%{crate}" crate. + +%files -n %{name}+gnu_legacy-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+nu-ansi-term-devel Summary: %{summary} BuildArch: noarch @@ -113,29 +122,32 @@ use the "nu-ansi-term" 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 -%cargo_generate_buildrequires -f nu-ansi-term +%cargo_generate_buildrequires %build -%cargo_build -f nu-ansi-term -%{cargo_license_summary -f nu-ansi-term} -%{cargo_license -f nu-ansi-term} > LICENSE.dependencies +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies %install -%cargo_install -f nu-ansi-term +%cargo_install %if %{with check} %check -%cargo_test -f nu-ansi-term +%cargo_test %endif %changelog -* Mon Jan 15 2024 Arkady L. Shane - 0.15.0-1 +* Mon Jan 15 2024 Arkady L. Shane - 0.16.0-1 - Rebuilt for MSVSphere 9.3 +* Sat Jan 06 2024 Fabio Valentini - 0.16.0-1 +- Update to version 0.16.0; Fixes RHBZ#2252150 + * Fri Oct 27 2023 Michel Lind - 0.15.0-1 - Update to 0.15.0