From b9550775b30ca4c8a38dd8b43781fd2b81260a96 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 24 Feb 2024 19:00:07 +0100 Subject: [PATCH] generator: fix condition for setting cargo_install_bin for compat packages --- rust2rpm/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"