From e66298bc70bd9fbfaba910f8a66a258da6c31276 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 25 Oct 2023 01:10:29 +0200 Subject: [PATCH] Update to version 0.5.2 --- .gitignore | 1 + opener-fix-metadata-auto.diff | 16 +++++++++++----- rust-opener.spec | 11 ++++++----- sources | 2 +- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index b2fdd43..d182eee 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /opener-0.3.2.crate /opener-0.4.1.crate /opener-0.5.0.crate +/opener-0.5.2.crate diff --git a/opener-fix-metadata-auto.diff b/opener-fix-metadata-auto.diff index 10fa566..022b2c2 100644 --- a/opener-fix-metadata-auto.diff +++ b/opener-fix-metadata-auto.diff @@ -1,12 +1,18 @@ ---- opener-0.5.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ opener-0.5.0/Cargo.toml 2023-08-05T22:37:47.635871+00:00 -@@ -25,9 +25,6 @@ - version = "0.9" +--- opener-0.5.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ opener-0.5.2/Cargo.toml 2023-10-24T23:07:06.013342+00:00 +@@ -32,10 +32,6 @@ [target."cfg(target_os = \"linux\")".dependencies.bstr] - version = "0.2" + version = "1" + -[target."cfg(windows)".dependencies.winapi] -version = "0.3" -features = ["shellapi"] +- [badges.appveyor] branch = "master" repository = "Seeker14491/opener" +@@ -47,3 +43,4 @@ + [badges.travis-ci] + branch = "master" + repository = "Seeker14491/opener" ++ diff --git a/rust-opener.spec b/rust-opener.spec index 603901c..8e5aee2 100644 --- a/rust-opener.spec +++ b/rust-opener.spec @@ -1,21 +1,21 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate opener Name: rust-opener -Version: 0.5.0 +Version: 0.5.2 Release: %autorelease Summary: Open a file or link using the system default program License: MIT OR Apache-2.0 URL: https://crates.io/crates/opener Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: opener-fix-metadata-auto.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Open a file or link using the system default program.} @@ -35,6 +35,7 @@ use the "%{crate}" crate. %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/LICENSE-THIRD-PARTY +%doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel @@ -50,7 +51,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index 202fe50..28ebbcf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (opener-0.5.0.crate) = 4a9be4d280cc5039d080bfaa318b47a80dfa930f3e60068ca10346aeac421abc8575d7eef3649061847e24ad3a6262fb58ab183f6f2704f429e9674f392c30a7 +SHA512 (opener-0.5.2.crate) = db741461b59ab6e252eb2a96b0b3ab2238595199ee396d9508532f7ab97280f27e478192a27d42a36423d34dd71f6f1d1c457a1854224c9361e47c5775c7a18a