From f51c6f424d3be41be111c8dfd15f0c6a9d64391c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 2 Sep 2022 15:03:34 +0200 Subject: [PATCH] Update to version 4.3.0; Fixes RHBZ#2122895 --- .gitignore | 1 + rust-which.spec | 12 +++++------- sources | 2 +- which-fix-metadata-auto.diff | 8 ++++++++ which-fix-metadata.diff | 8 -------- 5 files changed, 15 insertions(+), 16 deletions(-) create mode 100644 which-fix-metadata-auto.diff delete mode 100644 which-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 322fa22..ff6809d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /which-4.2.2.crate /which-4.2.4.crate /which-4.2.5.crate +/which-4.3.0.crate diff --git a/rust-which.spec b/rust-which.spec index b810c3b..ca75de3 100644 --- a/rust-which.spec +++ b/rust-which.spec @@ -1,21 +1,19 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate which -Name: rust-%{crate} -Version: 4.2.5 +Name: rust-which +Version: 4.3.0 Release: %autorelease Summary: Rust equivalent of Unix command "which" -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/which Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies -Patch0: which-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: which-fix-metadata-auto.diff ExclusiveArch: %{rust_arches} diff --git a/sources b/sources index 0a46b09..ff7729e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (which-4.2.5.crate) = 2b2b44773b568946799035e5b90c1f0c304b399f4d330c1e063323f631f56ddc6c5d8a9d026d987cb39c801ccbfb614450064030fc19e1de34ab6a495f053395 +SHA512 (which-4.3.0.crate) = cad05bd43dfcf9e50fd6e3b9dcd5d9a987175a0f44adbf204079117b70d0b42e6483e635287924698c51d0452f168e48e041453f18ff5720c0e2ec4c734d2578 diff --git a/which-fix-metadata-auto.diff b/which-fix-metadata-auto.diff new file mode 100644 index 0000000..ca16e2a --- /dev/null +++ b/which-fix-metadata-auto.diff @@ -0,0 +1,8 @@ +--- which-4.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ which-4.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -46,5 +46,3 @@ + [dev-dependencies.tempfile] + version = "3.3.0" + +-[target."cfg(windows)".dependencies.once_cell] +-version = "1" diff --git a/which-fix-metadata.diff b/which-fix-metadata.diff deleted file mode 100644 index 80e31fe..0000000 --- a/which-fix-metadata.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- which-4.2.5/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ which-4.2.5/Cargo.toml 2022-03-29T12:23:24.476015+00:00 -@@ -34,5 +34,3 @@ - optional = true - [dev-dependencies.tempfile] - version = "3.3.0" --[target."cfg(windows)".dependencies.lazy_static] --version = "1.4.0"