add sw_64 support
(cherry picked from commit 6c0d3a12fe7b768146f8337e976f9c7b1b035dc9)
This commit is contained in:
parent
8ecc6f1a21
commit
72fa458762
23
add-sw-support.patch
Normal file
23
add-sw-support.patch
Normal file
@ -0,0 +1,23 @@
|
||||
From 374709081d2b3cf9d97a2b71e294bab152bf3f3c Mon Sep 17 00:00:00 2001
|
||||
From: maqi <maqi@uniontech.com>
|
||||
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
|
||||
@ -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 <maqi@uniontech.com> - 3.0.0-5
|
||||
- Add sw_64 support
|
||||
|
||||
* Thu Aug 17 2023 haomimi <haomimi@uniontech.com> - 3.0.0-4
|
||||
- add loongarch64 support
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user