1
0
forked from pool/libzrtpcpp

Accepting request 112696 from home:k0da:ppc

- fix libdir for ppc64

OBS-URL: https://build.opensuse.org/request/show/112696
OBS-URL: https://build.opensuse.org/package/show/network:telephony/libzrtpcpp?expand=0&rev=18
This commit is contained in:
Ismail Dönmez 2012-04-05 12:12:42 +00:00 committed by Git OBS Bridge
parent 8ce4a944f5
commit 0288c67082
3 changed files with 20 additions and 2 deletions

11
libzrtpcpp-ppc64.patch Normal file
View File

@ -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()

View File

@ -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 Tue Sep 27 08:02:08 UTC 2011 - coolo@suse.com

View File

@ -21,7 +21,7 @@ Name: libzrtpcpp
%define lname libzrtpcpp2 %define lname libzrtpcpp2
Version: 2.0.0 Version: 2.0.0
Release: 0 Release: 0
License: GPLv3+ License: GPL-3.0+
Summary: A ccrtp extension for ZRTP support Summary: A ccrtp extension for ZRTP support
Url: http://www.gnu.org/software/commoncpp/commoncpp.html Url: http://www.gnu.org/software/commoncpp/commoncpp.html
Group: Development/Libraries/Other Group: Development/Libraries/Other
@ -31,6 +31,7 @@ BuildRequires: gcc-c++
BuildRequires: ccrtp-devel >= 2.0.0 BuildRequires: ccrtp-devel >= 2.0.0
BuildRequires: libopenssl-devel >= 0.9.8 BuildRequires: libopenssl-devel >= 0.9.8
BuildRequires: pkgconfig BuildRequires: pkgconfig
Patch0: libzrtpcpp-ppc64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -49,7 +50,7 @@ encryption, and which can be directly embedded into telephony
applications. applications.
%package devel %package devel
License: GPLv3+ License: GPL-3.0+
Summary: Headers and link library for libzrtpcpp Summary: Headers and link library for libzrtpcpp
Group: Development/Libraries/Other Group: Development/Libraries/Other
Requires: ccrtp-devel >= 2.0.0 Requires: ccrtp-devel >= 2.0.0
@ -61,6 +62,7 @@ documentation for building applications that use libzrtpcpp.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
mkdir build mkdir build