diff --git a/.gitignore b/.gitignore index 78bb610..0fa35d7 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /open-1.6.0.crate /open-1.7.0.crate /open-1.7.1.crate +/open-2.0.1.crate diff --git a/open-fix-metadata.diff b/open-fix-metadata.diff index fa43208..e9daff8 100644 --- a/open-fix-metadata.diff +++ b/open-fix-metadata.diff @@ -1,7 +1,15 @@ ---- open-1.7.1/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ open-1.7.1/Cargo.toml 2021-07-18T09:29:03.542342+00:00 -@@ -28,6 +28,3 @@ - doc = false +--- open-2.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ open-2.0.1/Cargo.toml 2021-11-06T09:48:18.889074+00:00 +@@ -21,13 +21,7 @@ + keywords = ["open", "xdg-open", "start", "launch"] + license = "MIT" + repository = "https://github.com/Byron/open-rs" ++autobins = false + +-[[bin]] +-name = "open" +-test = false +-doc = false [target."cfg(all(unix, not(macos)))".dependencies.pathdiff] version = "0.2.0" -[target."cfg(windows)".dependencies.winapi] diff --git a/rust-open.spec b/rust-open.spec index 78d8ce5..b01da3c 100644 --- a/rust-open.spec +++ b/rust-open.spec @@ -2,13 +2,10 @@ %bcond_without check %global debug_package %{nil} -# Binary is useless -%global __cargo_is_bin() false - %global crate open Name: rust-%{crate} -Version: 1.7.1 +Version: 2.0.1 Release: %autorelease Summary: Open a path or URL using the program configured on the system @@ -18,6 +15,7 @@ URL: https://crates.io/crates/open Source: %{crates_source} # Initial patched metadata # * drop windows-specific dependencies +# * drop useless /usr/bin/open binary Patch0: open-fix-metadata.diff ExclusiveArch: %{rust_arches} diff --git a/sources b/sources index 1f6f3d0..455c5c7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (open-1.7.1.crate) = 97c064ade1c9e1329aef03cffc6dbf565a7a3c0acf41845236202b0003d4d709b769e22cef0190624c32b5b6e1506964028a4649e4bb79f1ced5ae9f954508b3 +SHA512 (open-2.0.1.crate) = 3d7834046e6ae61f61bc557983a255e7f3f466e27df153c26cc9fa014fc83cef043b2d892b158fc25b188263169437767258c2136679f2dc273fd08ed3dfd2ea