Drop binary, as this is a compat crate

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9 imports/e9/rust-lscolors0.13-0.13.0-2.el9
Michel Alexandre Salim 2 years ago
parent 5d561a1e04
commit b85f65a464
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

@ -0,0 +1,17 @@
--- lscolors-0.13.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ lscolors-0.13.0/Cargo.toml 2023-05-19T16:24:20.627112+00:00
@@ -28,14 +28,6 @@
license = "MIT/Apache-2.0"
repository = "https://github.com/sharkdp/lscolors"
-[[bin]]
-name = "lscolors"
-path = "src/bin.rs"
-required-features = [
- "ansi_term",
- "nu-ansi-term",
-]
-
[dependencies.ansi_term]
version = "0.12"
optional = true

@ -1,5 +1,6 @@
# Generated by rust2rpm 24 # Generated by rust2rpm 24
%bcond_without check %bcond_without check
%global debug_package %{nil}
%global crate lscolors %global crate lscolors
@ -12,6 +13,9 @@ Summary: Colorize paths using the LS_COLORS environment variable
License: MIT OR Apache-2.0 License: MIT OR Apache-2.0
URL: https://crates.io/crates/lscolors URL: https://crates.io/crates/lscolors
Source: %{crates_source} Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop binary, this is a compat crate
Patch: lscolors-fix-metadata.diff
BuildRequires: rust-packaging >= 21 BuildRequires: rust-packaging >= 21
@ -20,17 +24,6 @@ Colorize paths using the LS_COLORS environment variable.}
%description %{_description} %description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE-APACHE
%license LICENSE-MIT
%doc README.md
%{_bindir}/lscolors
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
@ -99,17 +92,17 @@ use the "nu-ansi-term" feature of the "%{crate}" crate.
%cargo_prep %cargo_prep
%generate_buildrequires %generate_buildrequires
%cargo_generate_buildrequires -f ansi_term,nu-ansi-term %cargo_generate_buildrequires
%build %build
%cargo_build -f ansi_term,nu-ansi-term %cargo_build
%install %install
%cargo_install -f ansi_term,nu-ansi-term %cargo_install
%if %{with check} %if %{with check}
%check %check
%cargo_test -f ansi_term,nu-ansi-term %cargo_test
%endif %endif
%changelog %changelog

Loading…
Cancel
Save