From 667ecf79e1eb188cd3286116ff315b5183213351 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 22 Feb 2022 00:49:16 +0100 Subject: [PATCH] Update to version 0.5.0; Fixes RHBZ#1971105 --- .gitignore | 1 + opener-fix-metadata.diff | 13 ++++++------- rust-opener.spec | 21 +++++++++------------ sources | 2 +- 4 files changed, 17 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 9944602..b2fdd43 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /opener-0.3.0.crate /opener-0.3.2.crate /opener-0.4.1.crate +/opener-0.5.0.crate diff --git a/opener-fix-metadata.diff b/opener-fix-metadata.diff index 4cb52f9..6d39905 100644 --- a/opener-fix-metadata.diff +++ b/opener-fix-metadata.diff @@ -1,13 +1,12 @@ ---- opener-0.4.1/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ opener-0.4.1/Cargo.toml 2019-12-07T02:28:56.996240+00:00 -@@ -22,9 +22,7 @@ - repository = "https://github.com/Seeker14491/opener" - - [dependencies] +--- opener-0.5.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ opener-0.5.0/Cargo.toml 2022-02-21T23:06:31.709936+00:00 +@@ -25,9 +25,6 @@ + version = "0.9" + [target."cfg(target_os = \"linux\")".dependencies.bstr] + version = "0.2" -[target."cfg(windows)".dependencies.winapi] -version = "0.3" -features = ["shellapi"] -+ [badges.appveyor] branch = "master" repository = "Seeker14491/opener" diff --git a/rust-opener.spec b/rust-opener.spec index 0212da9..030d6d2 100644 --- a/rust-opener.spec +++ b/rust-opener.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate opener Name: rust-%{crate} -Version: 0.4.1 +Version: 0.5.0 Release: %autorelease Summary: Open a file or link using the system default program @@ -14,13 +14,10 @@ License: MIT or ASL 2.0 URL: https://crates.io/crates/opener Source: %{crates_source} # Initial patched metadata -# * No windows +# * drop windows-specific dependencies Patch0: opener-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -35,12 +32,12 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,11 +45,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 32dc509..202fe50 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (opener-0.4.1.crate) = 7200f4d21a0ba5e0dca5d58368c3d172a73db36d1ceb3cc978c46140e1594343c638d291685b86f0c503c970c9ce95ec2800d6840fe745005eecd32bf326d46f +SHA512 (opener-0.5.0.crate) = 4a9be4d280cc5039d080bfaa318b47a80dfa930f3e60068ca10346aeac421abc8575d7eef3649061847e24ad3a6262fb58ab183f6f2704f429e9674f392c30a7