From 81ab1e14f2ece51d756a9e79387941a0fae9fc10 Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Aug 07 2019 13:25:52 +0000 Subject: build on armhfp --- diff --git a/SPECS/python3.spec b/SPECS/python3.spec index 02cd331..e62acb6 100644 --- a/SPECS/python3.spec +++ b/SPECS/python3.spec @@ -205,7 +205,13 @@ BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: sqlite-devel BuildRequires: gdb - +%ifarch %{arm} +BuildRequires: devtoolset-7-build +BuildRequires: devtoolset-7-binutils +BuildRequires: devtoolset-7-gcc +BuildRequires: devtoolset-7-gcc-c++ +BuildRequires: devtoolset-7-gdb +%endif BuildRequires: openssl-devel BuildRequires: tar @@ -720,6 +726,10 @@ rm configure pyconfig.h.in %build +%ifarch %{arm} +%{?enable_devtoolset7:%{enable_devtoolset7}} +%endif + # Regenerate the configure script and pyconfig.h.in autoconf autoheader @@ -1039,6 +1049,10 @@ mv %{buildroot}%{_bindir}/2to3 %{buildroot}%{_bindir}/2to3-3 %check +%ifarch %{arm} +%{?enable_devtoolset7:%{enable_devtoolset7}} +%endif + # first of all, check timestamps of bytecode files find %{buildroot} -type f -a -name "*.py" -print0 | \ LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \