From 08df40decb41b337acc54601c3204cc4d18df211 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Sun, 29 Nov 2020 12:49:53 +0100 Subject: [PATCH] adjust abi in python platform for armhf --- python3.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python3.spec b/python3.spec index ac746e6..28b9464 100644 --- a/python3.spec +++ b/python3.spec @@ -23,9 +23,15 @@ %endif %define broken_tests -x test_embed -x test_nntplib -x test_gdb -x test_site -x test_distutils -x test_bdist_rpm -x test_ssl %{?broken_tests_x32} +%ifarch armv6hl armv7hl armv7hnl +%define _python_target_abi %{?_gnu}hf +%else +%define _python_target_abi %{?_gnu} +%endif + %define py_ver 3.9 %define py_abi %{py_ver} -%define py_platform %{py_abi}-%{_target_base_arch}-%{_target_os}%{?_gnu} +%define py_platform %{py_abi}-%{_target_base_arch}-%{_target_os}%{?_python_target_abi} %define py_prefix %{_prefix} %define py_libdir %{py_prefix}/%{_lib}/python%{py_ver} %define py_incdir %{_includedir}/python%{py_abi} -- 2.44.0