From 7362306f40ad8b62de97fc775b37dc0340c3dc6b Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 6 Aug 2023 00:39:02 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- ...data.diff => opener-fix-metadata-auto.diff | 2 +- rust-opener.spec | 24 +++++++++---------- 3 files changed, 12 insertions(+), 17 deletions(-) delete mode 100644 README.md rename opener-fix-metadata.diff => opener-fix-metadata-auto.diff (84%) diff --git a/README.md b/README.md deleted file mode 100644 index 5c711dc..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-opener - -The rust-opener package \ No newline at end of file diff --git a/opener-fix-metadata.diff b/opener-fix-metadata-auto.diff similarity index 84% rename from opener-fix-metadata.diff rename to opener-fix-metadata-auto.diff index 6d39905..10fa566 100644 --- a/opener-fix-metadata.diff +++ b/opener-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- 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 ++++ opener-0.5.0/Cargo.toml 2023-08-05T22:37:47.635871+00:00 @@ -25,9 +25,6 @@ version = "0.9" [target."cfg(target_os = \"linux\")".dependencies.bstr] diff --git a/rust-opener.spec b/rust-opener.spec index 030d6d2..603901c 100644 --- a/rust-opener.spec +++ b/rust-opener.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate opener -Name: rust-%{crate} +Name: rust-opener Version: 0.5.0 Release: %autorelease Summary: Open a file or link using the system default program -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/opener Source: %{crates_source} -# Initial patched metadata -# * drop windows-specific dependencies -Patch0: opener-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: opener-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Open a file or link using the system default program.} @@ -36,8 +32,10 @@ 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_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/LICENSE-THIRD-PARTY +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,7 +47,7 @@ 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_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1