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.",