From 4ced9a188ed0a0170a629db7ea5b473a37bbe993 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Sep 05 2017 09:43:32 +0000 Subject: 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. --- diff --git a/python3.spec b/python3.spec index 700d819..203015b 100644 --- a/python3.spec +++ b/python3.spec @@ -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