diff --git a/rust-primal-check.spec b/rust-primal-check.spec index acd02e7..08497bb 100644 --- a/rust-primal-check.spec +++ b/rust-primal-check.spec @@ -1,5 +1,5 @@ # Generated by rust2rpm 26 -%bcond_without check +%bcond_with check %global debug_package %{nil} %global crate primal-check @@ -61,6 +61,9 @@ use the "unstable" feature of the "%{crate}" crate. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep +%if %{without check} +sed -i -e '/dev-dependencies.primal/{N;d;}' Cargo.toml +%endif %generate_buildrequires %cargo_generate_buildrequires