diff --git a/lscolors-fix-metadata.diff b/lscolors-fix-metadata.diff new file mode 100644 index 0000000..c7440ec --- /dev/null +++ b/lscolors-fix-metadata.diff @@ -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 diff --git a/rust-lscolors0.13.spec b/rust-lscolors0.13.spec index 784667c..ee22c0f 100644 --- a/rust-lscolors0.13.spec +++ b/rust-lscolors0.13.spec @@ -1,5 +1,6 @@ # Generated by rust2rpm 24 %bcond_without check +%global debug_package %{nil} %global crate lscolors @@ -12,6 +13,9 @@ 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 +# * drop binary, this is a compat crate +Patch: lscolors-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -20,17 +24,6 @@ Colorize paths using the LS_COLORS environment variable.} %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 Summary: %{summary} BuildArch: noarch @@ -99,17 +92,17 @@ use the "nu-ansi-term" feature of the "%{crate}" crate. %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires -f ansi_term,nu-ansi-term +%cargo_generate_buildrequires %build -%cargo_build -f ansi_term,nu-ansi-term +%cargo_build %install -%cargo_install -f ansi_term,nu-ansi-term +%cargo_install %if %{with check} %check -%cargo_test -f ansi_term,nu-ansi-term +%cargo_test %endif %changelog