From 6c0d3a12fe7b768146f8337e976f9c7b1b035dc9 Mon Sep 17 00:00:00 2001 From: maqi Date: Mon, 3 Mar 2025 11:25:26 +0800 Subject: [PATCH] add sw_64 support --- add-sw-support.patch | 23 +++++++++++++++++++++++ sunpinyin.spec | 7 ++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 add-sw-support.patch diff --git a/add-sw-support.patch b/add-sw-support.patch new file mode 100644 index 0000000..81c6ce5 --- /dev/null +++ b/add-sw-support.patch @@ -0,0 +1,23 @@ +From 374709081d2b3cf9d97a2b71e294bab152bf3f3c Mon Sep 17 00:00:00 2001 +From: maqi +Date: Fri, 8 Nov 2024 21:37:01 +0800 +Subject: [PATCH] add sw support + +--- + SConstruct | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/SConstruct b/SConstruct +index a2d2bf4..d6bacff 100644 +--- a/SConstruct ++++ b/SConstruct +@@ -337,6 +337,7 @@ def AppendEndianCheck(conf): + || defined(_MIPSEL) || (defined(__sh__) && defined(__LITTLE_ENDIAN__)) \ + || defined(__riscv) \ + || defined(__AARCH64EL__) \ ++ || defined(__sw_64__) \ + || defined(__loongarch64) || defined(__loongarch64__) + # undef WORDS_BIGENDIAN + +-- +2.33.0 diff --git a/sunpinyin.spec b/sunpinyin.spec index 6b4bcc2..fba1206 100644 --- a/sunpinyin.spec +++ b/sunpinyin.spec @@ -6,7 +6,7 @@ Name: sunpinyin Version: 3.0.0 -Release: 4 +Release: 5 Summary: A statistical language model based Chinese input method engine License: LGPL-2.0-only or CDDL-1.0 or CC-BY-SA-3.0 Obsoletes: %{name}-data-le @@ -18,6 +18,7 @@ Source3: http://downloads.sourceforge.net/project/open-gram/dict.utf8-20131214.t Patch0: sunpinyin-use-python3.patch Patch1: sunpinyin-fixes-scons.patch Patch2: 0001-add-loongarch64-support.patch +Patch3: add-sw-support.patch BuildRequires: gcc-c++, sqlite-devel, gettext, python3-scons, perl(Pod::Man), python3-devel %description @@ -40,6 +41,7 @@ to write their own front-end for sunpinyin. %patch0 -p1 -b .python3 %patch1 -p1 -b .scons %patch2 -p1 +%patch3 -p1 mkdir -p raw cp %SOURCE2 raw @@ -90,6 +92,9 @@ install -m0644 AUTHORS TODO %{buildroot}%{_docdir}/%{name} %{_includedir}/sunpinyin* %changelog +* Mon Mar 03 2025 maqi - 3.0.0-5 +- Add sw_64 support + * Thu Aug 17 2023 haomimi - 3.0.0-4 - add loongarch64 support -- Gitee