diff --git a/librabbitmq.spec b/librabbitmq.spec index c790ef3..e7baf8c 100644 --- a/librabbitmq.spec +++ b/librabbitmq.spec @@ -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 - 0.9.0-6 +- Add sw64 architecture + * Tue Jun 08 2021 wulei - 0.9.0-5 - fixes failed: No CMAKE_C_COMPILER could be found diff --git a/rabbitmq-c-0.9.0-5.sw.patch b/rabbitmq-c-0.9.0-5.sw.patch new file mode 100755 index 0000000..f5ecaad --- /dev/null +++ b/rabbitmq-c-0.9.0-5.sw.patch @@ -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()