2007-03-03 13:30:32 +00:00
|
|
|
#
|
2011-09-27 07:52:56 +00:00
|
|
|
# spec file for package libzrtpcpp
|
2007-03-03 13:30:32 +00:00
|
|
|
#
|
2013-03-24 16:07:35 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-03-03 13:30:32 +00:00
|
|
|
#
|
2008-09-09 17:11:37 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-03-03 13:30:32 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-09-27 07:52:56 +00:00
|
|
|
|
|
|
|
Name: libzrtpcpp
|
2013-09-27 10:44:56 +00:00
|
|
|
%define lname libzrtpcpp3
|
|
|
|
Version: 3.2.2.2
|
2011-01-11 17:52:16 +00:00
|
|
|
Release: 0
|
2013-09-27 10:44:56 +00:00
|
|
|
# git describe: V3.2.2_2
|
2011-08-01 15:59:26 +00:00
|
|
|
Summary: A ccrtp extension for ZRTP support
|
2013-03-24 16:07:35 +00:00
|
|
|
License: GPL-3.0+
|
2013-09-27 10:44:56 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-06-12 11:13:48 +00:00
|
|
|
Url: http://www.gnutelephony.org/index.php/GNU_ZRTP
|
|
|
|
|
|
|
|
#Freecode-URL: http://freecode.com/projects/libzrtpcpp
|
2013-09-27 10:44:56 +00:00
|
|
|
#Git-Clone: git://github.com/wernerd/ZRTPCPP
|
|
|
|
# No longer produces release tarballs since 3.x.
|
|
|
|
Source: %name-%version.tar.xz
|
2011-08-01 15:59:26 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
2013-09-27 10:44:56 +00:00
|
|
|
BuildRequires: xz
|
|
|
|
%if 0%{?suse_version} >= 1130
|
|
|
|
BuildRequires: pkgconfig(libccrtp) >= 2
|
|
|
|
BuildRequires: pkgconfig(libcrypto) >= 0.9.8
|
|
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.7
|
|
|
|
%else
|
|
|
|
BuildRequires: ccrtp-devel >= 2
|
|
|
|
BuildRequires: libopenssl-devel >= 0.9.8
|
|
|
|
BuildRequires: sqlite3-devel >= 3.7
|
|
|
|
%endif
|
2007-03-03 13:30:32 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library is a GPL licensed extension to the GNU RTP Stack, ccrtp,
|
|
|
|
that offers compatibility with Phil Zimmermann's zrtp/Zfone voice
|
|
|
|
encryption, and which can be directly embedded into telephony
|
|
|
|
applications.
|
|
|
|
|
2011-09-27 07:52:56 +00:00
|
|
|
%package -n %lname
|
|
|
|
Summary: A ccrtp extension for ZRTP support
|
2013-09-27 10:44:56 +00:00
|
|
|
Group: System/Libraries
|
2011-09-27 07:52:56 +00:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
This library is a GPL licensed extension to the GNU RTP Stack, ccrtp,
|
|
|
|
that offers compatibility with Phil Zimmermann's zrtp/Zfone voice
|
|
|
|
encryption, and which can be directly embedded into telephony
|
|
|
|
applications.
|
|
|
|
|
2007-03-03 13:30:32 +00:00
|
|
|
%package devel
|
2011-08-01 15:59:26 +00:00
|
|
|
Summary: Headers and link library for libzrtpcpp
|
2013-09-27 10:44:56 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-09-27 07:52:56 +00:00
|
|
|
Requires: %{lname} = %{version}
|
2013-03-24 16:07:35 +00:00
|
|
|
Requires: ccrtp-devel >= 2.0.0
|
2007-03-03 13:30:32 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the header files, link libraries, and
|
|
|
|
documentation for building applications that use libzrtpcpp.
|
|
|
|
|
|
|
|
%prep
|
2013-09-27 10:44:56 +00:00
|
|
|
%setup -qn ZRTPCPP
|
2007-03-03 13:30:32 +00:00
|
|
|
|
|
|
|
%build
|
2011-01-11 17:52:16 +00:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2013-09-27 10:44:56 +00:00
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags}" \
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="%{optflags}" \
|
|
|
|
-DCRYPTO_STANDALONE:BOOL=false \
|
2013-03-24 16:07:35 +00:00
|
|
|
%if "%{_lib}" == "lib64"
|
2012-04-05 13:44:30 +00:00
|
|
|
-DLIB_SUFFIX=64 \
|
|
|
|
%endif
|
2011-08-01 15:59:26 +00:00
|
|
|
..
|
2011-01-11 17:52:16 +00:00
|
|
|
|
2013-09-27 10:44:56 +00:00
|
|
|
#perl -i -pe 's{@zrtplib@}{-lzrtpcpp}g' *.pc.cmake
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
2008-05-13 10:35:00 +00:00
|
|
|
|
2007-03-03 13:30:32 +00:00
|
|
|
%install
|
2011-01-11 17:52:16 +00:00
|
|
|
cd build
|
2013-06-12 11:13:48 +00:00
|
|
|
make install DESTDIR="%buildroot"
|
2007-03-03 13:30:32 +00:00
|
|
|
|
2013-06-12 11:13:48 +00:00
|
|
|
%post -p /sbin/ldconfig -n %lname
|
|
|
|
%postun -p /sbin/ldconfig -n %lname
|
2007-03-03 13:30:32 +00:00
|
|
|
|
2011-09-27 07:52:56 +00:00
|
|
|
%files -n %lname
|
2007-03-03 13:30:32 +00:00
|
|
|
%defattr(-,root,root,0755)
|
2013-06-12 11:13:48 +00:00
|
|
|
%doc AUTHORS COPYING README.md
|
2013-09-27 10:44:56 +00:00
|
|
|
%{_libdir}/libzrtpcpp.so.3*
|
2007-03-03 13:30:32 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,0755)
|
2013-06-12 11:13:48 +00:00
|
|
|
%{_libdir}/libzrtpcpp.so
|
|
|
|
%{_libdir}/pkgconfig/libzrtpcpp.pc
|
|
|
|
%{_includedir}/libzrtpcpp/
|
2007-03-03 13:30:32 +00:00
|
|
|
|
|
|
|
%changelog
|