<blockquote>
<p>Another thing is that this syntax makes it impossible to have colons (':') in the output (eg '%{!?foo::}'), which is a limitation the original syntax doesn't have'. It obviously has it's own set of limitations and quirks...</p>
</blockquote>
<p>Not impossible, but not straightforward. For ':' in the output you can use %define / %global:<br>
rpm --define "text1 :" --eval '%{!?{foo}:%{text1}:%{text2}}'<br>
or you can use %expand:<br>
rpm --eval '%{!?{foo}:%{expand::}:%{expand::}}</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/115?email_source=notifications&email_token=ADLPZU3XSELQHFW4X45QPWLQEU4GXA5CNFSM4C3MFNBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LR54Q#issuecomment-521608946">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYE3NYKDYQML2LJZ4LQEU4GXANCNFSM4C3MFNBA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU7ZFY5RTR7U6LFUV2TQEU4GXA5CNFSM4C3MFNBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LR54Q.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/115?email_source=notifications\u0026email_token=ADLPZU3XSELQHFW4X45QPWLQEU4GXA5CNFSM4C3MFNBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LR54Q#issuecomment-521608946",
"url": "https://github.com/rpm-software-management/rpm/issues/115?email_source=notifications\u0026email_token=ADLPZU3XSELQHFW4X45QPWLQEU4GXA5CNFSM4C3MFNBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4LR54Q#issuecomment-521608946",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>