diff --git a/0001-ujson-add-support-for-loongarch64.patch b/0001-ujson-add-support-for-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..8d97ba47c448448b50886282ddb9ec7420fd7277 --- /dev/null +++ b/0001-ujson-add-support-for-loongarch64.patch @@ -0,0 +1,22 @@ +From 15a4fd0b7ff9f2741444b956f6caaa8cbc983732 Mon Sep 17 00:00:00 2001 +From: doupengda +Date: Tue, 7 Nov 2023 19:47:42 +0800 +Subject: [PATCH] ujson add support for loongarch64 + + +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.33.0 + diff --git a/ujson.spec b/ujson.spec index 14096a2bbb46719c8dbab511e7382bb3f079677d..07e86be6a3f166723dde275b0d1f05d30d14d9ca 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 +Patch0: 0001-ujson-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,8 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Tue Nov 7 2023 doupengda - 4.0.2-3 +- 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