templates: fix some conditions for cargo_install_bin support

This commit is contained in:
Fabio Valentini 2024-03-08 19:50:08 +01:00
parent d1d25eb684
commit f0e65999a7
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -10,7 +10,7 @@
{% endif %} {% endif %}
%bcond_with check %bcond_with check
{% endif %} {% 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} %global debug_package %{nil}
{% endif %} {% endif %}
@ -267,7 +267,7 @@ echo {{ "%r" | format(req) }}
{% if conf_supported_arches %} {% if conf_supported_arches %}
%endif %endif
{% 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_summary{{ cargo_args }}}
%{cargo_license{{ cargo_args }}} > LICENSE.dependencies %{cargo_license{{ cargo_args }}} > LICENSE.dependencies
{% endif %} {% endif %}