parent
c18514544e
commit
4436a110cf
1 changed files with 12 additions and 10 deletions
|
@ -100,13 +100,15 @@ Requires: {{ req }}
|
||||||
|
|
||||||
%files -n %{crate}
|
%files -n %{crate}
|
||||||
{% if license_files|length > 0 %}
|
{% if license_files|length > 0 %}
|
||||||
%license {{ license_files|join(' ') }}
|
{% for file in license_files %}
|
||||||
|
%license {{ file }}
|
||||||
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
# FIXME: no license files detected
|
# FIXME: no license files detected
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if doc_files|length > 0 %}
|
{% for file in doc_files %}
|
||||||
%doc {{ doc_files|join(' ') }}
|
%doc {{ file }}
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
{% for bin in bins %}
|
{% for bin in bins %}
|
||||||
%{_bindir}/{{ bin.name }}
|
%{_bindir}/{{ bin.name }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -160,13 +162,13 @@ use {% if feature is not none %}the "{{ feature }}" feature of {% endif %}the "%
|
||||||
%files {{ pkg }}
|
%files {{ pkg }}
|
||||||
{% if feature is none %}
|
{% if feature is none %}
|
||||||
{% if license_files|length > 0 %}
|
{% if license_files|length > 0 %}
|
||||||
{% if relative_license_paths %}
|
{% for file in license_files %}
|
||||||
%license {{ license_files|join(' ') }}
|
{% if relative_license_paths %}
|
||||||
{% else %}
|
%license {{ file }}
|
||||||
{% for file in license_files %}
|
{% else %}
|
||||||
%license %{crate_instdir}/{{ file }}
|
%license %{crate_instdir}/{{ file }}
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
# FIXME: no license files detected
|
# FIXME: no license files detected
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue