From cd6acfd8ba99779d352565beeb5b09a8f70e3781 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 17 Dec 2023 17:04:19 +0800 Subject: [PATCH] fix: ouch (#846) --- anda/langs/rust/ouch/ouch-fix-metadata-auto.diff | 8 ++++---- anda/langs/rust/ouch/rust-ouch.spec | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/anda/langs/rust/ouch/ouch-fix-metadata-auto.diff b/anda/langs/rust/ouch/ouch-fix-metadata-auto.diff index c0382340d9..4b23e58e2d 100644 --- a/anda/langs/rust/ouch/ouch-fix-metadata-auto.diff +++ b/anda/langs/rust/ouch/ouch-fix-metadata-auto.diff @@ -1,8 +1,8 @@ ---- ouch-0.4.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ ouch-0.4.2/Cargo.toml 2023-08-16T09:08:02.651053+00:00 -@@ -165,5 +165,3 @@ - "zstd/thin", +--- ouch-0.5.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ ouch-0.5.1/Cargo.toml 2023-12-10T09:36:31.446957+00:00 +@@ -176,5 +176,3 @@ ] + use_zstd_thin = ["zstd/thin"] -[target."cfg(not(unix))".dependencies.is_executable] -version = "1.0.1" diff --git a/anda/langs/rust/ouch/rust-ouch.spec b/anda/langs/rust/ouch/rust-ouch.spec index f189a7d885..b745ec90d9 100644 --- a/anda/langs/rust/ouch/rust-ouch.spec +++ b/anda/langs/rust/ouch/rust-ouch.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global crate ouch @@ -11,10 +11,10 @@ Summary: Command-line utility for easily compressing and decompressing fi License: MIT URL: https://crates.io/crates/ouch Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: ouch-fix-metadata-auto.diff -BuildRequires: anda-srpm-macros rust-packaging >= 21 +BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24 BuildRequires: gcc-c++ %global _description %{expand: @@ -36,7 +36,7 @@ Summary: %{summary} %{_bindir}/ouch %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep_online %build