From a17cf3c0f4bf10fbcedbbc187a86f7e58c096e8d Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Sat, 27 May 2023 08:43:12 +0300 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- python3.12.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/python3.12.spec b/python3.12.spec index c202746..6dca7a8 100644 --- a/python3.12.spec +++ b/python3.12.spec @@ -17,7 +17,7 @@ URL: https://www.python.org/ %global prerel b1 %global upstream_version %{general_version}%{?prerel} Version: %{general_version}%{?prerel:~%{prerel}} -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} License: Python-2.0.1 @@ -1058,8 +1058,16 @@ CheckPython() { # we don't ship it in the RPM package. LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \ - -wW --slowest %{_smp_mflags} --timeout=2700 \ + -wW --slowest %{_smp_mflags} \ + %ifnarch riscv64 + --timeout=2700 \ + %else + --timeout=27000 \ + %endif -i test_freeze_simple_script \ + %ifarch riscv64 + -x test_eintr \ + %endif %ifarch %{mips64} -x test_ctypes \ %endif @@ -1568,6 +1576,11 @@ CheckPython optimized # ====================================================== %changelog +* Sat May 27 2023 David Abdurachmanov - 3.12.0~b1-1.0.riscv64 +- Add support for riscv64: + - Increase tests timeout. + - Disable test_eintr test. + * Tue May 23 2023 Tomáš Hrnčiar - 3.12.0~b1-1 - Update to 3.12.0b1