diff --git a/python39.changes b/python39.changes index 693a2d9..151bf78 100644 --- a/python39.changes +++ b/python39.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 9 16:05:50 UTC 2020 - Dominique Leuenberger + +- Fix build with RPM 4.16: error: bare words are no longer + supported, please use "...": x86 == ppc. + ------------------------------------------------------------------- Tue Oct 6 07:30:56 UTC 2020 - Matej Cepl diff --git a/python39.spec b/python39.spec index b900232..cd2e035 100644 --- a/python39.spec +++ b/python39.spec @@ -67,13 +67,13 @@ %define so_minor 0 %define so_version %{python_version_soname}%{abi_kind}-%{so_major}_%{so_minor} # rpm and python have different ideas about what is an arch-dependent name, so: -%if %{__isa_name} == ppc +%if "%{__isa_name}" == "ppc" %define archname %(echo %{_arch} | sed s/ppc/powerpc/) %else %define archname %{_arch} %endif # our arm has Hardware-Floatingpoint -%if %{_arch} == arm +%if "%{_arch}" == "arm" %define armsuffix hf %endif # pyexpat.cpython-35m-x86_64-linux-gnu