From 6beda4bdc576d7d85db99fb2b207ec1a2a100c95 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 18 May 2023 16:23:52 -0500 Subject: [PATCH] Update to 0.14.0 Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + lscolors-fix-metadata.diff | 10 ++++++++++ rust-lscolors.spec | 15 +++++++++------ sources | 2 +- 4 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 lscolors-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 0f7891c..1b0451f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /lscolors-0.7.1.crate /lscolors-0.10.0.crate /lscolors-0.13.0.crate +/lscolors-0.14.0.crate diff --git a/lscolors-fix-metadata.diff b/lscolors-fix-metadata.diff new file mode 100644 index 0000000..90dcadd --- /dev/null +++ b/lscolors-fix-metadata.diff @@ -0,0 +1,10 @@ +--- lscolors-0.14.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ lscolors-0.14.0/Cargo.toml 2023-05-18T21:23:02.659862+00:00 +@@ -32,7 +32,6 @@ + [profile.release] + lto = true + codegen-units = 1 +-strip = true + + [[bin]] + name = "lscolors" diff --git a/rust-lscolors.spec b/rust-lscolors.spec index 0678804..4ad0b0f 100644 --- a/rust-lscolors.spec +++ b/rust-lscolors.spec @@ -1,10 +1,10 @@ -# Generated by rust2rpm 23 +# Generated by rust2rpm 24 %bcond_without check %global crate lscolors Name: rust-lscolors -Version: 0.13.0 +Version: 0.14.0 Release: %autorelease Summary: Colorize paths using the LS_COLORS environment variable @@ -12,6 +12,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 +# * turn on stripping, needed for debug packages +Patch: lscolors-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -99,17 +102,17 @@ use the "nu-ansi-term" feature of the "%{crate}" crate. %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires +%cargo_generate_buildrequires -f nu-ansi-term %build -%cargo_build +%cargo_build -f nu-ansi-term %install -%cargo_install +%cargo_install -f nu-ansi-term %if %{with check} %check -%cargo_test +%cargo_test -f nu-ansi-term %endif %changelog diff --git a/sources b/sources index 847f676..698f845 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lscolors-0.13.0.crate) = bce06cd4505a9efacee6302b536575e495720a3d051a8bdfac3904a8b0bba94aee6bb516702b79750711a57699e4e49ed3f354646ba22f3d3338693e20f80caa +SHA512 (lscolors-0.14.0.crate) = e94a0744ca1d0220a67a6771bccee5acbc4477a5fffb76c9c28859dcec1df8482775f86ff38890c85060c0885fd50c786ce3c0e37a706a0159659f4d5d2effd2