<p>Supports the same expressions as spec %if conditions because, only this returns the result as a string instead of a boolean.</p>
<p>This obviously <em>screams</em> to be wired into macro conditional syntax, but that's left as an exercise for later.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/rpm-software-management/rpm/pull/817'>https://github.com/rpm-software-management/rpm/pull/817</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Resurrect parseExpressionString()</li>
<li>Export the expression parsing functions and move to librpmio</li>
<li>Add %{expr:...} macro for parsing expressions</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-0">build/Makefile.am</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-1">build/parseSpec.c</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-2">build/rpmbuild_internal.h</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-3">doc/manual/macros</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-4">rpmio/Makefile.am</a>
(2)
</li>
<li>
<strong>R</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-5">rpmio/expression.c</a>
(48)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-6">rpmio/macro.c</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-7">rpmio/rpmmacro.h</a>
(15)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/rpm-software-management/rpm/pull/817/files#diff-8">tests/rpmmacro.at</a>
(21)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/rpm-software-management/rpm/pull/817.patch'>https://github.com/rpm-software-management/rpm/pull/817.patch</a></li>
<li><a href='https://github.com/rpm-software-management/rpm/pull/817.diff'>https://github.com/rpm-software-management/rpm/pull/817.diff</a></li>
</ul>
<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/pull/817?email_source=notifications&email_token=ADLPZUZ55HNGKUQAMFM7IF3QEUFGPA5CNFSM4IL4A7U2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFMDUWA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYGX2JPZPDLVUMXMTDQEUFGPANCNFSM4IL4A7UQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUYVHUHE4FZZL27BYHTQEUFGPA5CNFSM4IL4A7U2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFMDUWA.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/pull/817?email_source=notifications\u0026email_token=ADLPZUZ55HNGKUQAMFM7IF3QEUFGPA5CNFSM4IL4A7U2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFMDUWA",
"url": "https://github.com/rpm-software-management/rpm/pull/817?email_source=notifications\u0026email_token=ADLPZUZ55HNGKUQAMFM7IF3QEUFGPA5CNFSM4IL4A7U2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HFMDUWA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>