From f0e65999a7a7ba7c175e1e35c3fc8c4e59ac2d2e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 8 Mar 2024 19:50:08 +0100 Subject: [PATCH] templates: fix some conditions for cargo_install_bin support --- rust2rpm/templates/crate.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %}