From 76bbaa3b204100a2318db8e5e53acc02f6ecbf80 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 10 Nov 2024 23:19:36 -0500 Subject: [PATCH] Migrate from rust2rpm.conf to rust2rpm.toml --- rust-relative-path.spec | 6 +++--- rust2rpm.conf | 2 -- rust2rpm.toml | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 rust2rpm.conf create mode 100644 rust2rpm.toml diff --git a/rust-relative-path.spec b/rust-relative-path.spec index e60138a..c57c592 100644 --- a/rust-relative-path.spec +++ b/rust-relative-path.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -14,7 +14,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/relative-path Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Portable, relative paths for Rust.} @@ -62,7 +62,7 @@ use the "serde" 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 f626714..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,2 +0,0 @@ -[DEFAULT] -all-features = true diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..fe6a1b8 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[features] +enable-all = true