diff --git a/.gitignore b/.gitignore index 09f6ab1..42a0f1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /trash-2.0.2.crate +/trash-2.0.3.crate diff --git a/rust-trash.spec b/rust-trash.spec index 018fe02..2c3a763 100644 --- a/rust-trash.spec +++ b/rust-trash.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 19 -# * Not really good idea to run tests as it messes with trash folder ☺ +# Generated by rust2rpm 20 +# * tests require an existing trash folder %bcond_with check %global debug_package %{nil} %global crate trash Name: rust-%{crate} -Version: 2.0.2 +Version: 2.0.3 Release: %autorelease Summary: Library for moving files and folders to the Recycle Bin @@ -15,12 +15,10 @@ License: MIT URL: https://crates.io/crates/trash Source: %{crates_source} # Initial patched metadata +# * drop windows- and mac OS-specific dependencies Patch0: trash-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -36,7 +34,7 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel %license LICENSE.txt @@ -50,7 +48,7 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which -use "the default" feature of the "%{crate}" crate. +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -62,7 +60,7 @@ BuildArch: noarch %description -n %{name}+coinit_apartmentthreaded-devel %{_description} This package contains library source intended for building other packages which -use "the coinit_apartmentthreaded" feature of the "%{crate}" crate. +use the "coinit_apartmentthreaded" feature of the "%{crate}" crate. %files -n %{name}+coinit_apartmentthreaded-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -74,7 +72,7 @@ BuildArch: noarch %description -n %{name}+coinit_disable_ole1dde-devel %{_description} This package contains library source intended for building other packages which -use "the coinit_disable_ole1dde" feature of the "%{crate}" crate. +use the "coinit_disable_ole1dde" feature of the "%{crate}" crate. %files -n %{name}+coinit_disable_ole1dde-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -86,7 +84,7 @@ BuildArch: noarch %description -n %{name}+coinit_multithreaded-devel %{_description} This package contains library source intended for building other packages which -use "the coinit_multithreaded" feature of the "%{crate}" crate. +use the "coinit_multithreaded" feature of the "%{crate}" crate. %files -n %{name}+coinit_multithreaded-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -98,7 +96,7 @@ BuildArch: noarch %description -n %{name}+coinit_speed_over_memory-devel %{_description} This package contains library source intended for building other packages which -use "the coinit_speed_over_memory" feature of the "%{crate}" crate. +use the "coinit_speed_over_memory" feature of the "%{crate}" crate. %files -n %{name}+coinit_speed_over_memory-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml diff --git a/sources b/sources index bd25a50..c3bd21f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (trash-2.0.2.crate) = 88d512a7caa8b9163908bc2dc9240134b642d1b7a94ad15715ce391f250c8b14d2df4010c7c3213af219b433185e20bfdfef2545ae030053901faa6a1926f1bc +SHA512 (trash-2.0.3.crate) = 2ab2367f2b94424c826060721b7b541e72b523edf1261bc37b1cc6d1367d55ac61c3f0c71a73d74fea48c759bead68d6463088a2211a07139d2c11c49c598eb6 diff --git a/trash-fix-metadata.diff b/trash-fix-metadata.diff index 314956a..df3abd2 100644 --- a/trash-fix-metadata.diff +++ b/trash-fix-metadata.diff @@ -1,6 +1,6 @@ ---- trash-2.0.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ trash-2.0.2/Cargo.toml 2021-11-28T13:11:04.103266+00:00 -@@ -33,8 +33,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 @@ [dev-dependencies.rand] version = "0.8.3" @@ -9,9 +9,9 @@ [features] coinit_apartmentthreaded = [] -@@ -53,10 +51,3 @@ +@@ -52,10 +50,3 @@ - [target."cfg(target_os = \"linux\")".dependencies.url] + [target."cfg(all(unix, not(target_os = \"macos\"), not(target_os = \"ios\"), not(target_os = \"android\")))".dependencies.url] version = "2.1.0" -[target."cfg(target_os = \"macos\")".dependencies.objc] -version = "0.2.7"