From dbca600ac178b1a6928934a4e3f255da16b763b5 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Thu, 9 Sep 2021 12:16:52 +0200 Subject: [PATCH] Improve template formatting --- template.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/template.spec b/template.spec index 9464505..98106da 100644 --- a/template.spec +++ b/template.spec @@ -13,8 +13,11 @@ BuildRequires: python3-devel %global _description %{expand: {{description}}} -{% for br in manual_build_requires %}BuildRequires: {{br}} -{% endfor %} +{% if manual_build_requires -%} +{% for br in manual_build_requires -%} +BuildRequires: {{br}} +{% endfor -%} +{% endif %} %description %_description %package -n python3-{{name}}