From 130e86afe5e84f65704ebc7c72ede91a3e1479fa Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 24 Apr 2024 21:59:37 -0400 Subject: [PATCH] Let the spec file be unmodified rust2rpm output This is possible now that rust2rpm 26.1 can add static BuildRequires (which are available to be used in %prep). --- rust-libdeflater.spec | 3 --- rust2rpm.toml | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rust-libdeflater.spec b/rust-libdeflater.spec index c5f7068..a588725 100644 --- a/rust-libdeflater.spec +++ b/rust-libdeflater.spec @@ -14,9 +14,6 @@ URL: https://crates.io/crates/libdeflater Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 -# Do downstream crate metadata changes programmatically in %%prep. Since %%prep -# runs before %%generate_buildrequires, we must add the following manually -# rather than generating a dynamic BuildRequires via rust2rpm.toml. BuildRequires: tomcli %global _description %{expand: diff --git a/rust2rpm.toml b/rust2rpm.toml index 5eee6c1..a03bd66 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,8 @@ +[requires] +build = [ + "tomcli", +] + [scripts.prep] post = [ "# Do not depend on criterion; it is needed only for benchmarks.",