diff --git a/rust2rpm/generator.py b/rust2rpm/generator.py index 6fd72b6..2190b90 100644 --- a/rust2rpm/generator.py +++ b/rust2rpm/generator.py @@ -212,7 +212,7 @@ def spec_render_crate( is_cdylib = metadata.is_cdylib() cargo_install_lib = (tomlconf.package_cargo_install_lib is not False) and (vendor_tarball is None) - cargo_install_bin = (tomlconf.package_cargo_install_bin is not False) and (not compat) + cargo_install_bin = (tomlconf.package_cargo_install_bin is not False) and (not compat if is_bin else True) if tomlconf.package_bin_package_name is None: bin_name = "%{crate}"