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
|
|
|
#
|
2016-01-22 17:59:39 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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
|
2016-01-22 17:59:39 +00:00
|
|
|
Version: 4.5.0
|
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
|
2015-03-17 20:01:35 +00:00
|
|
|
#Git-Web: https://github.com/wernerd/ZRTPCPP
|
|
|
|
Source: https://github.com/wernerd/ZRTPCPP/archive/V%version.tar.gz
|
2011-08-01 15:59:26 +00:00
|
|
|
BuildRequires: cmake
|
2014-10-13 09:29:05 +00:00
|
|
|
BuildRequires: gcc-c++ >= 4.7
|
2015-03-17 20:01:35 +00:00
|
|
|
BuildRequires: pkg-config
|
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++
|
2015-03-17 20:01:35 +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
|
2015-03-17 20:01:35 +00:00
|
|
|
%setup -qn ZRTPCPP-%version
|
2015-08-14 08:30:07 +00:00
|
|
|
chmod a-x INSTALL NEWS
|
2007-03-03 13:30:32 +00:00
|
|
|
|
|
|
|
%build
|
2011-01-11 17:52:16 +00:00
|
|
|
mkdir build
|
2015-03-17 20:01:35 +00:00
|
|
|
pushd build/
|
2011-01-11 17:52:16 +00:00
|
|
|
|
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
|
2015-03-17 20:01:35 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%_prefix \
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%optflags" \
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
|
|
|
|
-DCMAKE_LD_FLAGS:STRING="-Wl,--version-script=$PWD/version.map" \
|
|
|
|
-DCRYPTO_STANDALONE:BOOL=false \
|
|
|
|
%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
|
2015-03-17 20:01:35 +00:00
|
|
|
popd
|
2008-05-13 10:35:00 +00:00
|
|
|
|
2007-03-03 13:30:32 +00:00
|
|
|
%install
|
2015-03-17 20:01:35 +00:00
|
|
|
pushd build/
|
|
|
|
%make_install
|
|
|
|
popd
|
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)
|
2015-03-17 20:01:35 +00:00
|
|
|
%doc AUTHORS COPYING NEWS 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)
|
2015-03-17 20:01:35 +00:00
|
|
|
%_libdir/libzrtpcpp.so
|
|
|
|
%_libdir/pkgconfig/libzrtpcpp.pc
|
|
|
|
%_includedir/libzrtpcpp/
|
2007-03-03 13:30:32 +00:00
|
|
|
|
|
|
|
%changelog
|