diff --git a/0001-add-loongarch64-architecture-support.patch b/0001-add-loongarch64-architecture-support.patch deleted file mode 100644 index bc2222f994bfa8d0c319ecaf868874da34687723..0000000000000000000000000000000000000000 --- a/0001-add-loongarch64-architecture-support.patch +++ /dev/null @@ -1,65 +0,0 @@ -From ca4845920d6587c5568d3ad294d17bbd9d9aa486 Mon Sep 17 00:00:00 2001 -From: wang--ge -Date: Thu, 1 Jun 2023 09:47:40 +0800 -Subject: [PATCH] add loongarch64 architecture support - ---- - .../platform/switch_loongarch64_linux.h | 31 +++++++++++++++++++ - src/greenlet/slp_platformselect.h | 2 ++ - 2 files changed, 33 insertions(+) - create mode 100644 src/greenlet/platform/switch_loongarch64_linux.h - -diff --git a/src/greenlet/platform/switch_loongarch64_linux.h b/src/greenlet/platform/switch_loongarch64_linux.h -new file mode 100644 -index 0000000..4252561 ---- /dev/null -+++ b/src/greenlet/platform/switch_loongarch64_linux.h -@@ -0,0 +1,31 @@ -+#define STACK_REFPLUS 1 -+ -+#ifdef SLP_EVAL -+#define STACK_MAGIC 0 -+ -+#define REGS_TO_SAVE "s0", "s1", "s2", "s3", "s4", "s5", \ -+ "s6", "s7", "s8", "fp", \ -+ "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31" -+ -+static int -+slp_switch(void) -+{ -+ register int ret; -+ register long *stackref, stsizediff; -+ __asm__ volatile ("" : : : REGS_TO_SAVE); -+ __asm__ volatile ("move %0, $sp" : "=r" (stackref) : ); -+ { -+ SLP_SAVE_STATE(stackref, stsizediff); -+ __asm__ volatile ( -+ "add.d $sp, $sp, %0\n\t" -+ : /* no outputs */ -+ : "r" (stsizediff) -+ ); -+ SLP_RESTORE_STATE(); -+ } -+ __asm__ volatile ("" : : : REGS_TO_SAVE); -+ __asm__ volatile ("move %0, $zero" : "=r" (ret) : ); -+ return ret; -+} -+ -+#endif -\ No newline at end of file -diff --git a/src/greenlet/slp_platformselect.h b/src/greenlet/slp_platformselect.h -index b6a3e70..d71db10 100644 ---- a/src/greenlet/slp_platformselect.h -+++ b/src/greenlet/slp_platformselect.h -@@ -49,6 +49,8 @@ extern "C" { - #endif - #elif defined(__GNUC__) && defined(__mips__) && defined(__linux__) - #include "platform/switch_mips_unix.h" /* Linux/MIPS */ -+#elif defined(__GNUC__) && defined(__loongarch64) && defined(__linux__) -+#include "platform/switch_loongarch64_linux.h" /* Linux/LoongArch64 */ - #elif defined(__GNUC__) && defined(__aarch64__) - #include "platform/switch_aarch64_gcc.h" /* Aarch64 ABI */ - #elif defined(__GNUC__) && defined(__mc68000__) --- -2.33.0 - diff --git a/3.1.1.tar.gz b/3.1.1.tar.gz deleted file mode 100644 index d6a7e2931189cec43842a1b891c85a921d211ba8..0000000000000000000000000000000000000000 Binary files a/3.1.1.tar.gz and /dev/null differ diff --git a/3.2.3.tar.gz b/3.2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4b3c6941acb56b4b6e069c7ac1e7926978e0988f Binary files /dev/null and b/3.2.3.tar.gz differ diff --git a/python-greenlet.spec b/python-greenlet.spec index e06fccbf5f9a98a6925a9d51ad1b135be4c5967a..2a8899bd6212081f1f0dc01fb044d5a657f4324f 100644 --- a/python-greenlet.spec +++ b/python-greenlet.spec @@ -1,13 +1,11 @@ Name: python-greenlet -Version: 3.1.1 +Version: 3.2.3 Release: 1 Summary: lightweight coroutines for in-process concurrent programming License: Python-2.0 and MIT URL: https://github.com/python-greenlet/greenlet Source0: https://github.com/python-greenlet/greenlet/archive/refs/tags/%{version}.tar.gz -Patch0: 0001-add-loongarch64-architecture-support.patch - %description The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently @@ -40,10 +38,7 @@ This package contains libraries and headier files for developing applications that use python3-greenlet. %prep -%setup -n greenlet-%{version} -%ifarch loongarch64 -%patch0 -p1 -%endif +%autosetup -n greenlet-%{version} -p1 %build %py3_build @@ -51,20 +46,18 @@ that use python3-greenlet. %install %py3_install -%check -%{__python3} setup.py test - %files -n python3-greenlet -%defattr(-,root,root) %license LICENSE LICENSE.PSF %doc AUTHORS README.rst %{python3_sitearch}/* %files -n python3-greenlet-devel -%defattr(-,root,root) %{_includedir}/python%{python3_version}*/greenlet/ %changelog +* Tue Jul 15 2025 Funda Wang - 3.2.3-1 +- update to 3.2.3 + * Wed Nov 20 2024 sqfu - 3.1.1-1 - Update package to version 3.1.1