templates: do not generate devel subpackages when using a vendor tarball

This commit is contained in:
Fabio Valentini 2023-10-09 15:34:47 +02:00
parent 0c274e9de7
commit 258b6f9526
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -14,6 +14,11 @@
%global debug_package %{nil} %global debug_package %{nil}
{% endif %} {% endif %}
{% if use_vendor_tarball %}
# prevent library files from being installed
%global __cargo_is_lib() 0
{% endif %}
%global crate {{ crate_name }} %global crate {{ crate_name }}
{% if crate_version != rpm_version %} {% if crate_version != rpm_version %}
%global crate_version {{ crate_version }} %global crate_version {{ crate_version }}
@ -144,7 +149,7 @@ Requires: {{ req }}
{% endif -%} {% endif -%}
{% if rpm_library_package %} {% if rpm_library_package and not use_vendor_tarball %}
{% for feature in crate_features %} {% for feature in crate_features %}
{% if feature is none %} {% if feature is none %}
{% set pkg = " devel" %} {% set pkg = " devel" %}