From 2f42d749cf28d75b6e1fe3b51f36fb8ace101d79 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 26 Jan 2022 17:08:18 +0100 Subject: [PATCH] Update to version 4.2.4; Fixes RHBZ#2044192 --- .gitignore | 1 + rust-which.spec | 19 ++++++++----------- sources | 2 +- which-fix-metadata.diff | 6 +++--- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 13a3c8f..3afb47e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /which-4.0.2.crate /which-4.1.0.crate /which-4.2.2.crate +/which-4.2.4.crate diff --git a/rust-which.spec b/rust-which.spec index 82b7d1d..04d86c4 100644 --- a/rust-which.spec +++ b/rust-which.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate which Name: rust-%{crate} -Version: 4.2.2 +Version: 4.2.4 Release: %autorelease Summary: Rust equivalent of Unix command "which" @@ -18,9 +18,6 @@ Source: %{crates_source} Patch0: which-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -36,8 +33,8 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel %license LICENSE.txt @@ -50,8 +47,8 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -62,8 +59,8 @@ BuildArch: noarch %description -n %{name}+regex-devel %{_description} -This package contains library source intended for building other packages -which use "regex" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "regex" feature of the "%{crate}" crate. %files -n %{name}+regex-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml diff --git a/sources b/sources index 7bc3166..3643ac0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (which-4.2.2.crate) = 25fe54f3703d865bdda04a26720839d6cf52300558e1abdf339eec985cc085fc983ea44a3b36767ef56748c865d432b0105a9fbe677f4b4deee8ec0af9dda59c +SHA512 (which-4.2.4.crate) = 9ca2bbec727040197fc12efdc7cd70bc94bd1b4abd03bf86f6043fd960de73053b84c7d101d897563583b8d6d85377025e1e7213640987ebdfdd54fa629e3b80 diff --git a/which-fix-metadata.diff b/which-fix-metadata.diff index 29e7883..5cd2d21 100644 --- a/which-fix-metadata.diff +++ b/which-fix-metadata.diff @@ -1,6 +1,6 @@ ---- which-4.2.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ which-4.2.2/Cargo.toml 2021-07-31T12:08:23.025616+00:00 -@@ -33,5 +33,3 @@ +--- which-4.2.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ which-4.2.4/Cargo.toml 2022-01-26T16:07:08.721479+00:00 +@@ -34,5 +34,3 @@ optional = true [dev-dependencies.tempdir] version = "0.3.7"