add loongarch64 support
This commit is contained in:
parent
f19e9051d2
commit
2cbfd4aeeb
56
0001-add-loongarch64-support.patch
Normal file
56
0001-add-loongarch64-support.patch
Normal file
@ -0,0 +1,56 @@
|
||||
From e95b947a72b899b4dc737f49d8a8a1e52d6395c0 Mon Sep 17 00:00:00 2001
|
||||
From: ut004615 <haomimi@uniontech.com>
|
||||
Date: Thu, 17 Aug 2023 11:21:05 +0800
|
||||
Subject: [PATCH] add loongarch64 support
|
||||
|
||||
---
|
||||
SConstruct | 3 ++-
|
||||
SConstruct.python3 | 3 ++-
|
||||
SConstruct.scons | 3 ++-
|
||||
3 files changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/SConstruct b/SConstruct
|
||||
index 866a729..a2d2bf4 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -336,7 +336,8 @@ def AppendEndianCheck(conf):
|
||||
|| defined(__alpha__) || defined(__ARMEL__) \
|
||||
|| defined(_MIPSEL) || (defined(__sh__) && defined(__LITTLE_ENDIAN__)) \
|
||||
|| defined(__riscv) \
|
||||
- || defined(__AARCH64EL__)
|
||||
+ || defined(__AARCH64EL__) \
|
||||
+ || defined(__loongarch64) || defined(__loongarch64__)
|
||||
# undef WORDS_BIGENDIAN
|
||||
|
||||
#else
|
||||
diff --git a/SConstruct.python3 b/SConstruct.python3
|
||||
index 7d9dd6f..4b3369f 100644
|
||||
--- a/SConstruct.python3
|
||||
+++ b/SConstruct.python3
|
||||
@@ -335,7 +335,8 @@ def AppendEndianCheck(conf):
|
||||
|| defined(__alpha__) || defined(__ARMEL__) \
|
||||
|| defined(_MIPSEL) || (defined(__sh__) && defined(__LITTLE_ENDIAN__)) \
|
||||
|| defined(__riscv) \
|
||||
- || defined(__AARCH64EL__)
|
||||
+ || defined(__AARCH64EL__) \
|
||||
+ || defined(__loongarch64) || defined(__loongarch64__)
|
||||
# undef WORDS_BIGENDIAN
|
||||
|
||||
#else
|
||||
diff --git a/SConstruct.scons b/SConstruct.scons
|
||||
index 530e1f4..241878a 100644
|
||||
--- a/SConstruct.scons
|
||||
+++ b/SConstruct.scons
|
||||
@@ -335,7 +335,8 @@ def AppendEndianCheck(conf):
|
||||
|| defined(__alpha__) || defined(__ARMEL__) \
|
||||
|| defined(_MIPSEL) || (defined(__sh__) && defined(__LITTLE_ENDIAN__)) \
|
||||
|| defined(__riscv) \
|
||||
- || defined(__AARCH64EL__)
|
||||
+ || defined(__AARCH64EL__) \
|
||||
+ || defined(__loongarch64) || defined(__loongarch64__)
|
||||
# undef WORDS_BIGENDIAN
|
||||
|
||||
#else
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
Name: sunpinyin
|
||||
Version: 3.0.0
|
||||
Release: 3
|
||||
Release: 4
|
||||
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
|
||||
@ -17,6 +17,7 @@ Source2: http://downloads.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-20140
|
||||
Source3: http://downloads.sourceforge.net/project/open-gram/dict.utf8-20131214.tar.bz2
|
||||
Patch0: sunpinyin-use-python3.patch
|
||||
Patch1: sunpinyin-fixes-scons.patch
|
||||
Patch2: 0001-add-loongarch64-support.patch
|
||||
BuildRequires: gcc-c++, sqlite-devel, gettext, python3-scons, perl(Pod::Man), python3-devel
|
||||
|
||||
%description
|
||||
@ -38,6 +39,7 @@ to write their own front-end for sunpinyin.
|
||||
%setup -q -n %{name}-%{gitdate}
|
||||
%patch0 -p1 -b .python3
|
||||
%patch1 -p1 -b .scons
|
||||
%patch2 -p1
|
||||
|
||||
mkdir -p raw
|
||||
cp %SOURCE2 raw
|
||||
@ -88,6 +90,9 @@ install -m0644 AUTHORS TODO %{buildroot}%{_docdir}/%{name}
|
||||
%{_includedir}/sunpinyin*
|
||||
|
||||
%changelog
|
||||
* Thu Aug 17 2023 haomimi <haomimi@uniontech.com> - 3.0.0-4
|
||||
- add loongarch64 support
|
||||
|
||||
* Mon Mar 20 2023 liweiganga <liweiganga@uniontech.com> - 3.0.0-3
|
||||
- feat: fix strip and enable debug
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user