From fae0ba495dea54973b52df5e3f9b20edf1ab6d7a Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Fri, 14 Jun 2024 12:16:53 +0000 Subject: [PATCH] ujson 4.0.2 add support for loongarch64 --- ...on-4.0.2-add-support-for-loongarch64.patch | 25 +++++++++++++++++++ ujson.spec | 8 ++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 0001-ujson-4.0.2-add-support-for-loongarch64.patch diff --git a/0001-ujson-4.0.2-add-support-for-loongarch64.patch b/0001-ujson-4.0.2-add-support-for-loongarch64.patch new file mode 100644 index 0000000..51b8e57 --- /dev/null +++ b/0001-ujson-4.0.2-add-support-for-loongarch64.patch @@ -0,0 +1,25 @@ +From 12a2fadcd5653ed55637884f7c664340e3c35e9e Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Fri, 14 Jun 2024 12:11:21 +0000 +Subject: [PATCH] ujson 4.0.2 add support for loongarch64 + +--- + deps/double-conversion/double-conversion/utils.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/deps/double-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h +index 2c745f3..4475786 100644 +--- a/deps/double-conversion/double-conversion/utils.h ++++ b/deps/double-conversion/double-conversion/utils.h +@@ -77,7 +77,7 @@ inline void abort_noreturn() { abort(); } + defined(__SH4__) || defined(__alpha__) || \ + defined(_MIPS_ARCH_MIPS32R2) || \ + defined(__AARCH64EL__) || defined(__aarch64__) || \ +- defined(__riscv) ++ defined(__riscv) || defined(__loongarch64) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(__mc68000__) + #undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS +-- +2.43.0 + diff --git a/ujson.spec b/ujson.spec index 14096a2..7f418e0 100644 --- a/ujson.spec +++ b/ujson.spec @@ -2,11 +2,12 @@ %global common_desc UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python 3.6+ Name: python-ujson Version: 4.0.2 -Release: 2 +Release: 3 Summary: Ultra fast JSON encoder and decoder for Python License: BSD URL: https://github.com/ultrajson/ultrajson Source0: https://files.pythonhosted.org/packages/86/0a/80d87aa4ee79980bddabef13cb7d95de330f85355cf08dfdaf874889b02b/ujson-4.0.2.tar.gz +Patch001: 0001-ujson-4.0.2-add-support-for-loongarch64.patch %description %{common_desc} @@ -32,7 +33,7 @@ Provides: python3-ujson-doc %{common_desc} %prep -%autosetup -n ujson-4.0.2 +%autosetup -n ujson-4.0.2 -p1 %build %py3_build @@ -77,6 +78,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Fri Jun 14 2024 Wenlong Zhang - 4.0.2-3 +- ujson 4.0.2 add support for loongarch64 + * Thu Sep 16 2021 wangxiyuan - 4.0.2-2 - Add gcc-c++ build require * Tue Jul 20 2021 OpenStack_SIG - 4.0.2-1 -- Gitee