Check %{_lib} rather than hardcode all 64-bit arches

Checking %{lib} isn't guaranteed to determine the word size
correctly, but it works for current arches and is more likely
to stay correct when a new arch are added.
This commit is contained in:
Petr Viktorin 2017-09-05 11:40:37 +02:00
parent 4f6b427d2e
commit 4ced9a188e

View File

@ -151,7 +151,9 @@ License: Python
# For multilib support, files that are different between 32- and 64-bit arches
# need different filenames. Use "64" or "32" according to the word size.
%ifarch %{power64} s390x x86_64 ia64 alpha sparc64 aarch64 %{mips64} riscv64
# Currently, the best way to determine an architecture's word size happens to
# be checking %%{_lib}.
%if "%{_lib}" == "lib64"
%global wordsize 64
%else
%global wordsize 32