From 945a4fe184462e75359b6a20ba1c73367d9ff37b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 26 Jan 2022 17:41:05 +0100 Subject: [PATCH] Update to version 2.0.4; Fixes RHBZ#2043976 --- .gitignore | 1 + rust-trash.spec | 4 ++-- sources | 2 +- trash-fix-metadata.diff | 10 ++++++---- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 42a0f1b..9228586 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /trash-2.0.2.crate /trash-2.0.3.crate +/trash-2.0.4.crate diff --git a/rust-trash.spec b/rust-trash.spec index 2c3a763..41cb3c4 100644 --- a/rust-trash.spec +++ b/rust-trash.spec @@ -6,7 +6,7 @@ %global crate trash Name: rust-%{crate} -Version: 2.0.3 +Version: 2.0.4 Release: %autorelease Summary: Library for moving files and folders to the Recycle Bin @@ -15,7 +15,7 @@ License: MIT URL: https://crates.io/crates/trash Source: %{crates_source} # Initial patched metadata -# * drop windows- and mac OS-specific dependencies +# * drop non-linux dependencies Patch0: trash-fix-metadata.diff ExclusiveArch: %{rust_arches} diff --git a/sources b/sources index c3bd21f..e4a1426 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (trash-2.0.3.crate) = 2ab2367f2b94424c826060721b7b541e72b523edf1261bc37b1cc6d1367d55ac61c3f0c71a73d74fea48c759bead68d6463088a2211a07139d2c11c49c598eb6 +SHA512 (trash-2.0.4.crate) = 17746b98f43045ff105d38a049e6d60a878b25686e6ecb3cc22c9b1ca876ec608e1fa7f0b4af9df68635b71ea00d0cac5d07606662c9bd2b6295ddc2c4972b61 diff --git a/trash-fix-metadata.diff b/trash-fix-metadata.diff index df3abd2..1ae64ed 100644 --- a/trash-fix-metadata.diff +++ b/trash-fix-metadata.diff @@ -1,6 +1,6 @@ ---- trash-2.0.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ trash-2.0.3/Cargo.toml 2022-01-07T21:47:23.324112+00:00 -@@ -32,8 +32,6 @@ +--- trash-2.0.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ trash-2.0.4/Cargo.toml 2022-01-26T16:39:38.975266+00:00 +@@ -33,8 +33,6 @@ [dev-dependencies.rand] version = "0.8.3" @@ -9,10 +9,12 @@ [features] coinit_apartmentthreaded = [] -@@ -52,10 +50,3 @@ +@@ -56,12 +54,3 @@ [target."cfg(all(unix, not(target_os = \"macos\"), not(target_os = \"ios\"), not(target_os = \"android\")))".dependencies.url] version = "2.1.0" +-[target."cfg(any(target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies.once_cell] +-version = "1.7.2" -[target."cfg(target_os = \"macos\")".dependencies.objc] -version = "0.2.7" -[target."cfg(windows)".dependencies.scopeguard]