diff --git a/.gitignore b/.gitignore index 8cb974d..152acc8 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /open-2.1.1.crate /open-2.1.2.crate /open-3.0.2.crate +/open-3.0.3.crate diff --git a/open-fix-metadata-auto.diff b/open-fix-metadata-auto.diff new file mode 100644 index 0000000..973a135 --- /dev/null +++ b/open-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- open-3.0.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ open-3.0.3/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -39,9 +39,3 @@ + [target."cfg(all(unix, not(macos)))".dependencies.pathdiff] + version = "0.2.0" + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.36" +-features = [ +- "Win32_UI_Shell", +- "Win32_Foundation", +-] diff --git a/open-fix-metadata.diff b/open-fix-metadata.diff index e1809e7..93fac54 100644 --- a/open-fix-metadata.diff +++ b/open-fix-metadata.diff @@ -1,6 +1,6 @@ ---- open-3.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ open-3.0.2/Cargo.toml 2022-07-22T11:38:11.909083+00:00 -@@ -30,18 +30,7 @@ +--- open-3.0.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ open-3.0.3/Cargo.toml 2022-10-05T12:26:06.307480+00:00 +@@ -30,11 +30,7 @@ ] license = "MIT" repository = "https://github.com/Byron/open-rs" @@ -13,10 +13,3 @@ [target."cfg(all(unix, not(macos)))".dependencies.pathdiff] version = "0.2.0" -- --[target."cfg(windows)".dependencies.windows-sys] --version = "0.36" --features = [ -- "Win32_UI_Shell", -- "Win32_Foundation", --] diff --git a/rust-open.spec b/rust-open.spec index 920de17..7b1ca8f 100644 --- a/rust-open.spec +++ b/rust-open.spec @@ -1,22 +1,22 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate open -Name: rust-%{crate} -Version: 3.0.2 +Name: rust-open +Version: 3.0.3 Release: %autorelease Summary: Open a path or URL using the program configured on the system -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/open Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies +# Automatically generated patch to strip foreign dependencies +Patch: open-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes # * drop useless /usr/bin/open binary -Patch0: open-fix-metadata.diff +Patch: open-fix-metadata.diff ExclusiveArch: %{rust_arches} diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf diff --git a/sources b/sources index 9998b1e..1e5de37 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (open-3.0.2.crate) = 4b5b94a34e80e9f329a8064347dd6b6580dd49a7d9555092ae8697af00ac71fedc49cf5604d973cf2b50c8ab009018001a7dc382e89c4726ffc08e3a56251336 +SHA512 (open-3.0.3.crate) = 9d1aadd0d5e935fcba6b754c6401e5f40703a73b3bfb24db35b638ce558fc893b17e63f8b797b95095cd1a8b74576fbae55d4705f9b45790d89b5bbf2d9cb9a2