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
|
|
|
#
|
2014-06-28 01:43:08 +00:00
|
|
|
# Copyright (c) 2014 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-11-24 13:19:13 +00:00
|
|
|
%define lname libzrtpcpp4
|
2014-09-06 18:37:31 +00:00
|
|
|
Version: 4.2.4
|
2011-01-11 17:52:16 +00:00
|
|
|
Release: 0
|
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
|
|
|
|
|
2013-09-27 10:44:56 +00:00
|
|
|
#Git-Clone: git://github.com/wernerd/ZRTPCPP
|
2014-09-06 18:37:31 +00:00
|
|
|
#Snapshot: V4.2.4
|
2013-09-27 10:44:56 +00:00
|
|
|
# No longer produces release tarballs since 3.x.
|
2014-09-06 18:37:31 +00:00
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
Source2: %name.keyring
|
2011-08-01 15:59:26 +00:00
|
|
|
BuildRequires: cmake
|
2014-10-13 09:29:05 +00:00
|
|
|
BuildRequires: gcc-c++ >= 4.7
|
2011-08-01 15:59:26 +00:00
|
|
|
BuildRequires: pkgconfig
|
2014-09-06 18:37:31 +00:00
|
|
|
BuildRequires: xz
|
2013-09-27 10:44:56 +00:00
|
|
|
BuildRequires: pkgconfig(libccrtp) >= 2
|
|
|
|
BuildRequires: pkgconfig(libcrypto) >= 0.9.8
|
|
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.7
|
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
|
|
|
|
|
2014-09-06 18:37:31 +00:00
|
|
|
# libzrtpcpp changed its API (apparently - can't tell whether aes_init
|
|
|
|
# was meant to be exported or not), but failed to bump the SO version.
|
|
|
|
# So now, add explicit symbol versions to ensure programs with wrong
|
|
|
|
# ABI combinations are caught.
|
|
|
|
echo "V_%version { global: *; };" >version.map
|
2011-01-11 17:52:16 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2013-09-27 10:44:56 +00:00
|
|
|
-DCMAKE_C_FLAGS:STRING="%{optflags}" \
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="%{optflags}" \
|
2014-09-06 18:37:31 +00:00
|
|
|
-DCMAKE_LD_FLAGS:STRING="-Wl,--version-script=$PWD/version.map" \
|
2013-09-27 10:44:56 +00:00
|
|
|
-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
|
|
|
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-11-24 13:19:13 +00:00
|
|
|
%_libdir/libzrtpcpp.so.4*
|
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
|