RPM macros cheatsheet
Architecture macros
Basic filtering
%ifarch
%ifnarch
Macros applicable to Fedora
%ix86 i386 i486 i586 i686 pentium3 pentium4 athlon geode
%x86_64 x86_64 x86_64_v2 x86_64_v3 x86_64_v4 amd64 em64t
%arm64 aarch64
%power64 ppc64 ppc64p7 ppc64le
%riscv %{riscv32} %{riscv64} %{riscv128}
s390x doesn't have a macro, use the string.
Note: %{java_arches}
is there if needed.