diff --git a/.gitignore b/.gitignore index cdeb177..2de00b4 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /trash-2.1.1.crate /trash-2.1.3.crate /trash-2.1.5.crate +/trash-3.0.6.crate diff --git a/README.md b/README.md deleted file mode 100644 index 77431dc..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-trash - -The rust-trash package diff --git a/rust-trash.spec b/rust-trash.spec index 0b797e1..b3e0e4e 100644 --- a/rust-trash.spec +++ b/rust-trash.spec @@ -1,29 +1,25 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 # * tests require an existing trash folder %bcond_with check %global debug_package %{nil} %global crate trash -Name: rust-%{crate} -Version: 2.1.5 +Name: rust-trash +Version: 3.0.6 Release: %autorelease Summary: Library for moving files and folders to the Recycle Bin -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/trash Source: %{crates_source} -# Initial patched metadata -# * drop non-linux dependencies -Patch0: trash-fix-metadata.diff - -ExclusiveArch: %{rust_arches} +# Automatically generated patch to strip foreign dependencies +Patch: trash-fix-metadata-auto.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: -Library for moving files and folders to the Recycle Bin.} +A library for moving files and folders to the Recycle Bin.} %description %{_description} diff --git a/sources b/sources index 8732e9b..b1b3400 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (trash-2.1.5.crate) = 895cdd8a1d070d7716ba9647dbfda35fa9641744f905d10c11b41e7553cc88d66961019a4a5167565a71a696cec05ed55deeea8439cddbece97582c0b73a475d +SHA512 (trash-3.0.6.crate) = 2e3558ddc267939f039acb91ed322e9bc2fcc34424c23a034a9044a49e8e823a921538cd80adca36d12f9f5e1a73f4fd5aa4b1389a590e95bf1bd860b5250859 diff --git a/trash-fix-metadata.diff b/trash-fix-metadata-auto.diff similarity index 78% rename from trash-fix-metadata.diff rename to trash-fix-metadata-auto.diff index 4377b1d..906fb4f 100644 --- a/trash-fix-metadata.diff +++ b/trash-fix-metadata-auto.diff @@ -1,10 +1,9 @@ ---- trash-2.1.5/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ trash-2.1.5/Cargo.toml 2022-07-13T13:10:51.505021+00:00 -@@ -76,21 +76,3 @@ - +--- trash-3.0.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ trash-3.0.6/Cargo.toml 2023-07-21T18:45:29.212025+00:00 +@@ -85,19 +85,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" - @@ -15,9 +14,8 @@ -version = "1.0.0" - -[target."cfg(windows)".dependencies.windows] --version = "0.37.0" +-version = "0.44.0" -features = [ -- "alloc", - "Win32_Foundation", - "Win32_System_Com_StructuredStorage", - "Win32_UI_Shell_PropertiesSystem",