diff --git a/libzrtpcpp-ppc64.patch b/libzrtpcpp-ppc64.patch new file mode 100644 index 0000000..b0d727e --- /dev/null +++ b/libzrtpcpp-ppc64.patch @@ -0,0 +1,11 @@ +--- libzrtpcpp-2.0.0/CMakeLists.txt.orig 2012-04-05 13:55:16.254447000 +0200 ++++ libzrtpcpp-2.0.0/CMakeLists.txt 2012-04-05 13:55:42.722086000 +0200 +@@ -52,7 +52,7 @@ + # this caused problems in debian where it has to always be lib.... + set(LIBDIRNAME "lib") + if (NOT EXISTS /etc/debian_version) +- if ( "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" ) ++ if ( "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64" ) + set(LIBDIRNAME "lib64") + endif() + endif() diff --git a/libzrtpcpp.changes b/libzrtpcpp.changes index d98b630..1e692d5 100644 --- a/libzrtpcpp.changes +++ b/libzrtpcpp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 5 11:59:40 UTC 2012 - dvaleev@suse.com + +- fix libdir for ppc64 + ------------------------------------------------------------------- Tue Sep 27 08:02:08 UTC 2011 - coolo@suse.com diff --git a/libzrtpcpp.spec b/libzrtpcpp.spec index 27b6895..6682e22 100644 --- a/libzrtpcpp.spec +++ b/libzrtpcpp.spec @@ -21,7 +21,7 @@ Name: libzrtpcpp %define lname libzrtpcpp2 Version: 2.0.0 Release: 0 -License: GPLv3+ +License: GPL-3.0+ Summary: A ccrtp extension for ZRTP support Url: http://www.gnu.org/software/commoncpp/commoncpp.html Group: Development/Libraries/Other @@ -31,6 +31,7 @@ BuildRequires: gcc-c++ BuildRequires: ccrtp-devel >= 2.0.0 BuildRequires: libopenssl-devel >= 0.9.8 BuildRequires: pkgconfig +Patch0: libzrtpcpp-ppc64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -49,7 +50,7 @@ encryption, and which can be directly embedded into telephony applications. %package devel -License: GPLv3+ +License: GPL-3.0+ Summary: Headers and link library for libzrtpcpp Group: Development/Libraries/Other Requires: ccrtp-devel >= 2.0.0 @@ -61,6 +62,7 @@ documentation for building applications that use libzrtpcpp. %prep %setup -q +%patch0 -p1 %build mkdir build