From 1f629bb32f1b9d21e482ee22392d191e60d7166d Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 19 Aug 2022 09:25:51 +0300 Subject: [PATCH] Enable riscv64 Signed-off-by: David Abdurachmanov --- python3.10.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/python3.10.spec b/python3.10.spec index 3d175a9..18f36aa 100644 --- a/python3.10.spec +++ b/python3.10.spec @@ -17,7 +17,7 @@ URL: https://www.python.org/ #global prerel ... %global upstream_version %{general_version}%{?prerel} Version: %{general_version}%{?prerel:~%{prerel}} -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} License: Python @@ -1084,13 +1084,22 @@ CheckPython() { # distutils.tests.test_bdist_rpm tests fail when bootstraping the Python # package: rpmbuild requires /usr/bin/pythonX.Y to be installed LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \ - -wW --slowest -j0 --timeout=1800 \ + -wW --slowest -j0 \ + %ifnarch riscv64 + --timeout=1800 \ + %else + --timeout=18000 \ + %endif %if %{with bootstrap} -x test_distutils \ %endif %ifarch %{mips64} -x test_ctypes \ %endif + %ifarch riscv64 + -x test_gdb \ + -x test_venv \ + %endif echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName @@ -1588,6 +1597,9 @@ CheckPython optimized # ====================================================== %changelog +* Fri Aug 19 2022 David Abdurachmanov - 3.10.6-1.0.riscv64 +- Enable riscv64 + * Tue Aug 02 2022 Tomáš Hrnčiar - 3.10.6-1 - Update to 3.10.6