Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 30976b514baec303ba9bcce27cdcc5df52ea8a08)
This commit is contained in:
wzx 2022-10-27 09:06:33 +08:00 committed by openeuler-sync-bot
parent 6678ce332d
commit bc286c9b84
2 changed files with 20 additions and 1 deletions

View File

@ -4,13 +4,14 @@
Name: librabbitmq
Version: 0.9.0
Release: 5
Release: 6
Summary: The AMQP client library
License: MIT
URL: https://github.com/alanxz/rabbitmq-c
Source0: https://github.com/alanxz/%{project_name}/archive/%{git_commit}/%{project_name}-%{version}-%{git_short_commit}.tar.gz
Patch0000: CVE-2019-18609.patch
Patch0001: rabbitmq-c-0.9.0-5.sw.patch
BuildRequires: cmake > 2.8
BuildRequires: popt-devel > 1.14
@ -36,6 +37,9 @@ The %{name}-help package conatins man manual etc
%prep
%autosetup -n %{project_name}-%{git_commit} -p1 -Sgit
%ifnarch sw_64
%patch0001 -R -p1
%endif
sed -e '/test_basic/d' -i tests/CMakeLists.txt
%build
@ -67,6 +71,9 @@ make test
%changelog
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 0.9.0-6
- Add sw64 architecture
* Tue Jun 08 2021 wulei <wulei80@huawei.com> - 0.9.0-5
- fixes failed: No CMAKE_C_COMPILER could be found

12
rabbitmq-c-0.9.0-5.sw.patch Executable file
View File

@ -0,0 +1,12 @@
diff -Naur rabbitmq-c-77e3805d1662034339c3c19bcdaaa62a56c1fa7e.org/cmake/GNUInstallDirs.cmake rabbitmq-c-77e3805d1662034339c3c19bcdaaa62a56c1fa7e.sw/cmake/GNUInstallDirs.cmake
--- rabbitmq-c-77e3805d1662034339c3c19bcdaaa62a56c1fa7e.org/cmake/GNUInstallDirs.cmake 2022-09-15 16:18:17.330000000 +0800
+++ rabbitmq-c-77e3805d1662034339c3c19bcdaaa62a56c1fa7e.sw/cmake/GNUInstallDirs.cmake 2022-09-15 16:24:17.630000000 +0800
@@ -108,7 +108,7 @@
"Please enable at least one language before including GNUInstallDirs.")
else()
if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
- set(_LIBDIR_DEFAULT "lib64")
+ set(_LIBDIR_DEFAULT "lib")
endif()
endif()
endif()