From 709de90cbf77b3de7e0e71eb054210f12dbe1fa6 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Feb 24 2020 14:25:55 +0000 Subject: Use __isa_bits instead of crafted value This is easier to read and the appropriate macro to use here Signed-off-by: Nicolas Chauvet --- diff --git a/python37.spec b/python37.spec index 77105db..ad738fc 100644 --- a/python37.spec +++ b/python37.spec @@ -132,16 +132,6 @@ License: Python # Tracked at https://bugzilla.redhat.com/show_bug.cgi?id=1724753 %global source_date_epoch_from_changelog 0 -# 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 @@ -786,7 +776,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() {