[Rpm-maint] [rpm-software-management/rpm] RFE: %ifarch expression (Issue #3165)
Panu Matilainen
notifications at github.com
Fri Jun 14 05:51:25 UTC 2024
Well, %isarch() in all its glory is just:
`%isarch() %[ "%{_target_cpu}" == "%1" ? 1 : 0 ]`
And then:
> $ rpm --eval "%{isarch:x86_64}"
1
$ rpm --eval "%{isarch:s390}"
0
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3165#issuecomment-2167259635
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3165/2167259635 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240613/c2d07997/attachment.html>
More information about the Rpm-maint
mailing list