!8 [sync] PR-7: 添加sw架构
From: @openeuler-sync-bot Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
3df141956b
12
rapidjson-1.1.0-sw.patch
Executable file
12
rapidjson-1.1.0-sw.patch
Executable file
@ -0,0 +1,12 @@
|
||||
diff -Nuar rapidjson-1.1.0.org/include/rapidjson/rapidjson.h rapidjson-1.1.0.sw/include/rapidjson/rapidjson.h
|
||||
--- rapidjson-1.1.0.org/include/rapidjson/rapidjson.h 2022-05-09 16:56:54.370734000 +0800
|
||||
+++ rapidjson-1.1.0.sw/include/rapidjson/rapidjson.h 2022-05-09 16:58:52.180734000 +0800
|
||||
@@ -234,7 +234,7 @@
|
||||
// Detect with architecture macros
|
||||
# elif defined(__sparc) || defined(__sparc__) || defined(_POWER) || defined(__powerpc__) || defined(__ppc__) || defined(__hpux) || defined(__hppa) || defined(_MIPSEB) || defined(_POWER) || defined(__s390__)
|
||||
# define RAPIDJSON_ENDIAN RAPIDJSON_BIGENDIAN
|
||||
-# elif defined(__i386__) || defined(__alpha__) || defined(__ia64) || defined(__ia64__) || defined(_M_IX86) || defined(_M_IA64) || defined(_M_ALPHA) || defined(__amd64) || defined(__amd64__) || defined(_M_AMD64) || defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || defined(__bfin__)
|
||||
+# elif defined(__i386__) || defined(__alpha__) || defined(__sw_64__) || defined(__ia64) || defined(__ia64__) || defined(_M_IX86) || defined(_M_IA64) || defined(_M_ALPHA) || defined(_M_SW_64) || defined(__amd64) || defined(__amd64__) || defined(_M_AMD64) || defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || defined(__bfin__)
|
||||
# define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
|
||||
# elif defined(_MSC_VER) && defined(_M_ARM)
|
||||
# define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
|
||||
@ -1,12 +1,13 @@
|
||||
%global debug_package %{nil}
|
||||
Name: rapidjson
|
||||
Version: 1.1.0
|
||||
Release: 10
|
||||
Release: 11
|
||||
Summary: small & selft-contained fast JSON parser and generator for C++
|
||||
License: MIT
|
||||
URL: http://miloyip.github.io/rapidjson
|
||||
Source0: https://github.com/miloyip/rapidjson/archive/v%{version}.tar.gz#/rapidjson-%{version}.tar.gz
|
||||
Patch0000: rapidjson-1.1.0-do_not_include_gtest_src_dir.patch
|
||||
Patch0001: rapidjson-1.1.0-sw.patch
|
||||
BuildRequires: cmake gcc-c++ gtest-devel valgrind
|
||||
|
||||
%description
|
||||
@ -40,7 +41,11 @@ Obsoletes: rapidjson-doc < %{version}-%{release}
|
||||
This package provides docs for rapidjson.
|
||||
|
||||
%prep
|
||||
%autosetup -n rapidjson-%{version} -p1
|
||||
%setup -n rapidjson-%{version}
|
||||
%patch0 -p1
|
||||
%ifarch sw_64
|
||||
%patch1 -p1
|
||||
%endif
|
||||
install -d build
|
||||
for _file in "license.txt" $(%{_bindir}/find example -type f -name '*.c*')
|
||||
do
|
||||
@ -88,6 +93,9 @@ cd -
|
||||
%doc %{_pkgdocdir}
|
||||
|
||||
%changelog
|
||||
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 1.1.0-11
|
||||
- Add sw64 architecture
|
||||
|
||||
* Wed Jul 29 2020 lingsheng <lingsheng@huawei.com> - 1.1.0-10
|
||||
- Not use hardlink absolute path
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user