diff --git a/rust2rpm/templates/crate.spec b/rust2rpm/templates/crate.spec index 5de80cb..8f984ca 100644 --- a/rust2rpm/templates/crate.spec +++ b/rust2rpm/templates/crate.spec @@ -10,7 +10,7 @@ {% endif %} %bcond_with check {% endif %} -{% if not (rpm_binary_package or rpm_cdylib_package) %} +{% if not (rpm_binary_package or rpm_cdylib_package) or not cargo_install_bin %} %global debug_package %{nil} {% endif %} @@ -267,7 +267,7 @@ echo {{ "%r" | format(req) }} {% if conf_supported_arches %} %endif {% endif %} -{% if rpm_binary_package or rpm_cdylib_package %} +{% if (rpm_binary_package or rpm_cdylib_package) and cargo_install_bin %} %{cargo_license_summary{{ cargo_args }}} %{cargo_license{{ cargo_args }}} > LICENSE.dependencies {% endif %}