templates: do not generate devel subpackages when using a vendor tarball
This commit is contained in:
parent
0c274e9de7
commit
258b6f9526
1 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,11 @@
|
|||
%global debug_package %{nil}
|
||||
{% endif %}
|
||||
|
||||
{% if use_vendor_tarball %}
|
||||
# prevent library files from being installed
|
||||
%global __cargo_is_lib() 0
|
||||
|
||||
{% endif %}
|
||||
%global crate {{ crate_name }}
|
||||
{% if crate_version != rpm_version %}
|
||||
%global crate_version {{ crate_version }}
|
||||
|
@ -144,7 +149,7 @@ Requires: {{ req }}
|
|||
|
||||
{% endif -%}
|
||||
|
||||
{% if rpm_library_package %}
|
||||
{% if rpm_library_package and not use_vendor_tarball %}
|
||||
{% for feature in crate_features %}
|
||||
{% if feature is none %}
|
||||
{% set pkg = " devel" %}
|
||||
|
|
Loading…
Reference in a new issue