diff --git a/contrib/packaging/bootc.spec b/contrib/packaging/bootc.spec index f99e2b6d8..8f8d3a67b 100644 --- a/contrib/packaging/bootc.spec +++ b/contrib/packaging/bootc.spec @@ -146,7 +146,8 @@ sed -i -e '/https:\/\//d' cargo-vendor.txt %endif %install -%make_install INSTALL="install -p -c" +# Pass CARGO_FEATURES explicitly to prevent auto-detection rebuild in install environment +%make_install INSTALL="install -p -c" CARGO_FEATURES="%{?with_rhsm:rhsm}" %if %{with ostree_ext} make install-ostree-hooks DESTDIR=%{?buildroot} %endif