[Rpm-maint] [rpm-software-management/rpm] Is there a schortcut for `%ifarch`? (Discussion #3141)
Vít Ondruch
notifications at github.com
Tue Jun 4 08:40:55 UTC 2024
Currently, I have this block:
~~~
%ifarch x86_64 i686
%define arch_fortification_checks fortified="11" fortify-able="28"
%elifarch aarch64
%define arch_fortification_checks fortified="10" fortify-able="26"
%elifarch ppc64le
%define arch_fortification_checks fortified="7" fortify-able="24"
%elifarch s390x
%define arch_fortification_checks fortified="10" fortify-able="24"
%endif
~~~
Is there a trick to make this ^^ shorter and more readable? E.g. something like this:
~~~
%define arch_fortification_checks fortified="11" fortify-able="28" %ifarch x86_64 i686
%define arch_fortification_checks fortified="10" fortify-able="26" %ifarch aarch64
%define arch_fortification_checks fortified="7" fortify-able="24" %ifarch ppc64le
%define arch_fortification_checks fortified="10" fortify-able="24" %ifarch s390x
~~~
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3141
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/3141 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240604/452c0b3b/attachment.html>
More information about the Rpm-maint
mailing list