[packages/python3] adjust abi in python platform for armhf

atler atler at pld-linux.org
Sun Nov 29 12:51:07 CET 2020


commit 08df40decb41b337acc54601c3204cc4d18df211
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Nov 29 12:49:53 2020 +0100

    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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/08df40decb41b337acc54601c3204cc4d18df211



More information about the pld-cvs-commit mailing list