diff --git a/rust2rpm/templates/crate.spec b/rust2rpm/templates/crate.spec index 128b3e4..ad77753 100644 --- a/rust2rpm/templates/crate.spec +++ b/rust2rpm/templates/crate.spec @@ -68,8 +68,8 @@ Source: %{crates_source} Source: {{ rpm_vendor_source }} {% endif %} {% for source in rpm_extra_sources %} -{% for comment in source.comment_lines %} -# {{ comment }} +{% for comment_line in source.comment_lines %} +{{ comment_line }} {% endfor %} Source{{ source.number }}:{{ source.whitespace }}{{ source.file }} {% endfor %} @@ -89,8 +89,8 @@ Patch: {{ rpm_patch_file_automatic }} Patch: {{ rpm_patch_file_manual }} {% endif %} {% for patch in rpm_extra_patches %} -{% for comment in patch.comment_lines %} -# {{ comment }} +{% for comment_line in patch.comment_lines %} +{{ comment_line }} {% endfor %} Patch{{ patch.number }}:{{ patch.whitespace }}{{ patch.file }} {% endfor %} diff --git a/rust2rpm/templates/project.spec b/rust2rpm/templates/project.spec index 053abb6..15195cb 100644 --- a/rust2rpm/templates/project.spec +++ b/rust2rpm/templates/project.spec @@ -55,8 +55,8 @@ Source: {{ rpm_source_url }} Source: {{ rpm_vendor_source }} {% endif %} {% for source in rpm_extra_sources %} -{% for comment in source.comment_lines %} -# {{ comment }} +{% for comment_line in source.comment_lines %} +{{ comment_line }} {% endfor %} Source{{ source.number }}:{{ source.whitespace }}{{ source.file }} {% endfor %} @@ -76,8 +76,8 @@ Patch: {{ rpm_patch_file_automatic }} Patch: {{ rpm_patch_file_manual }} {% endif %} {% for patch in rpm_extra_patches %} -{% for comment in patch.comment_lines %} -# {{ comment }} +{% for comment_line in patch.comment_lines %} +{{ comment_line }} {% endfor %} Patch{{ patch.number }}:{{ patch.whitespace }}{{ patch.file }} {% endfor %} diff --git a/rust2rpm/templates/workspace.spec b/rust2rpm/templates/workspace.spec index 9ff9070..c019900 100644 --- a/rust2rpm/templates/workspace.spec +++ b/rust2rpm/templates/workspace.spec @@ -46,14 +46,14 @@ Source: {{ rpm_source_url }} Source: {{ rpm_vendor_source }} {% endif %} {% for source in rpm_extra_sources %} -{% for comment in source.comment_lines %} -# {{ comment }} +{% for comment_line in source.comment_lines %} +{{ comment_line }} {% endfor %} Source{{ source.number }}:{{ source.whitespace }}{{ source.file }} {% endfor %} {% for patch in rpm_extra_patches %} -{% for comment in patch.comment_lines %} -# {{ comment }} +{% for comment_line in patch.comment_lines %} +{{ comment_line }} {% endfor %} Patch{{ patch.number }}:{{ patch.whitespace }}{{ patch.file }} {% endfor %}