<p>From Fedora documentation [1]: "<em>To include comments in the spec file, use a # character at the start of the line.</em>"<br>
So the text "# with foo" in line<br>
<code>%else # with foo</code><br>
is not a valid comment. If you need to use a comment near %else, you can write e.g.:</p>
<pre><code>%if %{with foo}
...
%else
# with foo
</code></pre>
<p>[1] <a href="https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Packagers_Guide/chap-Packagers_Guide-Spec_File_Reference-Comments.html" rel="nofollow">https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Packagers_Guide/chap-Packagers_Guide-Spec_File_Reference-Comments.html</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications&email_token=ADLPZU5Y65QWWE56LD7P5PTQH6DXDA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD53DENA#issuecomment-527839796">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU6BRQSYCR5DL6SJSQTQH6DXDANCNFSM4ITPUL2Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZ6BZGV34KWH5DC5NDQH6DXDA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD53DENA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications\u0026email_token=ADLPZU5Y65QWWE56LD7P5PTQH6DXDA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD53DENA#issuecomment-527839796",
"url": "https://github.com/rpm-software-management/rpm/issues/829?email_source=notifications\u0026email_token=ADLPZU5Y65QWWE56LD7P5PTQH6DXDA5CNFSM4ITPUL22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD53DENA#issuecomment-527839796",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>