diff --git a/0001-add-loongarch64-support-for-python-3.10.12.patch b/0001-add-loongarch64-support-for-python-3.10.12.patch new file mode 100644 index 0000000000000000000000000000000000000000..bbe6ee930b9d625c19b3229a393e49e19c4587e8 --- /dev/null +++ b/0001-add-loongarch64-support-for-python-3.10.12.patch @@ -0,0 +1,25 @@ +From e8ff679f7384fa282d38817adcd0ee505c835f93 Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Fri, 4 Aug 2023 15:52:51 +0800 +Subject: [PATCH] add loongarch64 support for python-3.10.12 + +--- + configure.ac | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/configure.ac b/configure.ac +index ac3be38..d7d7744 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -769,6 +769,8 @@ cat >> conftest.c <=6) && defined(_MIPSEL) +-- +2.33.0 + diff --git a/python3.spec b/python3.spec index ff05e230cef7115061ffbca19c4dec3e8c521372..d7f0e8761b2ac84f1e9f476ebc00d3fbb2172e82 100644 --- a/python3.spec +++ b/python3.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global pybasever 3.10 # pybasever without the dot: @@ -238,6 +238,8 @@ Source0: %{url}ftp/python/%{general_version}/Python-%{upstream_version}.tar.xz Patch1001: python3-3.10.10-fix-linkage.patch # Force link C modules with libpython Patch1002: python3-3.10.10-link-C-modules-with-libpython.patch +# add loongarch64 support +Patch1003: 0001-add-loongarch64-support-for-python-3.10.12.patch # ========================================== # Descriptions, and metadata for subpackages @@ -1490,6 +1492,9 @@ CheckPython optimized # ====================================================== %changelog +* Fri Aug 4 2023 Wenlong Zhang - 3.10.12-2 +- add loongarch64 support + * Wed Jun 07 2023 Funda Wang - 3.10.12-1 - New version 3.10.12 - Fix upgrade path from anolis 8