From eecc383e09130e48e5640d663b055a7e981ef79d Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mon, 24 Feb 2020 10:23:04 +0100 Subject: [PATCH] Use __isa_bits instead of crafted value This is easier to read and the appropriate macro to use here Signed-off-by: Nicolas Chauvet --- python39.spec | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/python39.spec b/python39.spec index e883e98..d820883 100644 --- a/python39.spec +++ b/python39.spec @@ -144,16 +144,6 @@ License: Python # on files that test invalid syntax. %undefine py_auto_byte_compile -# 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. -# 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 -%endif - # ======================= # Build-time requirements @@ -803,7 +793,7 @@ mkdir -p %{buildroot}$DirHoldingGdbPy # Filanames are defined here: %global _pyconfig32_h pyconfig-32.h %global _pyconfig64_h pyconfig-64.h -%global _pyconfig_h pyconfig-%{wordsize}.h +%global _pyconfig_h pyconfig-%{__isa_bits}.h # Use a common function to do an install for all our configurations: InstallPython() {