Improve template - %doc nad %license are optional

This commit is contained in:
Karolina Surma
2021-09-09 12:16:17 +02:00
parent 2069fa03ad
commit a56993c468
+9 -2
View File
@@ -45,10 +45,17 @@ Summary: %{summary}
%files -n python3-{{name}} -f %{pyproject_files}
{% if doc_files -%}
%doc {{doc_files}}
{% endif -%}
{% if license_files -%}
%license {{license_files}}
{% for bf in binary_files %}%{_bindir}/{{bf}}
{% endfor %}
{% endif -%}
{% if binary_files -%}
{% for bf in binary_files -%}
%{_bindir}/{{bf}}
{% endfor -%}
{% endif %}
%changelog
* {{changelog_head}} - {{version}}-{{release}}