diff --git a/.gitignore b/.gitignore index 69e3ec8..ed6a6eb 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ /open-3.4.0.crate /open-4.1.0.crate /open-4.2.0.crate +/open-5.0.1.crate diff --git a/open-fix-metadata.diff b/open-fix-metadata.diff index 92d0cfb..a2d515d 100644 --- a/open-fix-metadata.diff +++ b/open-fix-metadata.diff @@ -1,5 +1,5 @@ ---- open-4.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ open-4.2.0/Cargo.toml 2023-06-23T20:22:38.968969+00:00 +--- open-5.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ open-5.0.1/Cargo.toml 2024-01-18T18:23:46.889530+00:00 @@ -31,11 +31,7 @@ ] license = "MIT" diff --git a/rust-open.spec b/rust-open.spec index 5ff6e1a..de21407 100644 --- a/rust-open.spec +++ b/rust-open.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate open Name: rust-open -Version: 4.2.0 +Version: 5.0.1 Release: %autorelease Summary: Open a path or URL using the program configured on the system @@ -16,7 +16,7 @@ Source: %{crates_source} # * drop useless /usr/bin/open binary Patch: open-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Open a path or URL using the program configured on the system.} @@ -52,7 +52,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/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index 8a8b8e5..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,4 +0,0 @@ -[DEFAULT] -summary = Open a path or URL using the program configured on the system -lib.requires = - /usr/bin/xdg-open diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..0da9578 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,7 @@ +[package] +summary = "Open a path or URL using the program configured on the system" + +[requires] +lib = [ + "/usr/bin/xdg-open", +] diff --git a/sources b/sources index 834ce22..965c681 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (open-4.2.0.crate) = 6822fb3e15203e974d620770da7230985f4f79bb232d749d3320139a3a1c8c41b0e9d172cf97da9f2e1d9bc99b0321dc30b30bda32b1bc68c2bdc92d98a1e55c +SHA512 (open-5.0.1.crate) = 4e41ba16bf57def61a94e4c51356d284e6ad88cd18bde49dc96b53f1cf7ce0373280bfede48f22df871e8243b974c6122ac9a06aaa8ee2336910d21e876c6ba2