blob: e72c70fe4dce38ba6837d7fdc0544a44466940b6 [file] [log] [blame]
Alexandre Lision51140e12013-12-02 10:54:09 -05001#
2# spec file for package libzrtpcpp (Version @VERSION@)
3#
4# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
5#
6# All modifications and additions to the file contributed by third parties
7# remain the property of their copyright owners, unless otherwise agreed
8# upon. The license for this file, and modifications and additions to the
9# file, is the same license as for the pristine package itself (unless the
10# license for the pristine package is not an Open Source License, in which
11# case the license is the MIT License). An "Open Source License" is a
12# license that conforms to the Open Source Definition (Version 1.9)
13# published by the Open Source Initiative.
14
15# Please submit bugfixes or comments via http://bugs.opensuse.org/
16#
17
18Name: libzrtpcpp
19Summary: A ccrtp extension for ZRTP support
20BuildRequires: gcc-c++ @BUILD_REQ@ pkgconfig cmake
21BuildRequires: libccrtp-devel >= 2.0.0
22Version: @VERSION@
23Release: 0
24License: GPL v3 or later
25Group: Development/Libraries/Other
26Url: https://github.com/wernerd/ZRTPCPP
27Source0: %{name}-%{version}.tar.gz
28BuildRoot: %{_tmppath}/%{name}-%{version}-build
29
30%description
31This library is a GPL licensed extension to the GNU RTP Stack, ccrtp,
32that offers compatibility with Phil Zimmermann's zrtp/Zfone voice
33encryption, and which can be directly embedded into telephony
34applications.
35
36
37%package devel
38License: GPL v3 or later
39Group: Development/Libraries/Other
40Summary: Headers and link library for libzrtpcpp
41Requires: libzrtpcpp = %{version} libccrtp-devel >= 2.0.0
42
43%description devel
44This package provides the header files, link libraries, and
45documentation for building applications that use libzrtpcpp.
46
47
48
49%prep
50%setup -q
51
52%build
53%{__mkdir} build
54cd build
55
56cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
57 -DSYSCONFDIR=%{_sysconfdir} \
58 -DMANDIR=%{_mandir} \
59 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
60 -DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
61 -DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
62 ..
63
64%{__make} %{?_smp_mflags}
65
66
67%install
68cd build
69%{__rm} -rf %{buildroot}
70make install DESTDIR=%{buildroot}
71
72%clean
73%{__rm} -rf %{buildroot}
74
75%files -n libzrtpcpp
76%defattr(-,root,root,0755)
77%doc AUTHORS COPYING README
78%{_libdir}/*.so.*
79
80%files devel
81%defattr(-,root,root,0755)
82%{_libdir}/*.so
83%{_libdir}/pkgconfig/*.pc
84%{_includedir}/libzrtpcpp/*.h
85%dir %{_includedir}/libzrtpcpp
86
87%post -p /sbin/ldconfig
88
89%postun -p /sbin/ldconfig
90
91%changelog
92* Mon Dec 27 2010 - Werner Dittmann <werner.dittmann@t-online.de>
93- Add Skein MAC authentication algorithm
94- lots of documentation added (doxygen ready)
95- some code cleanup
96
97* Sun Oct 11 2009 - Werner Dittmann <werner.dittmann@t-online.de>
98- Fix multistream problem
99- add DH2048 mode
100- update cipher selection to match latest draft (15x)
101- Test with zfone3 with Ping packet mode enabled
102- some code cleanup
103
104* Wed Jun 24 2009 - David Sugar <dyfet@gnutelephony.org>
105- Spec updated per current Fedora & CentOS policies.
106- Updated release 1.4.5 has all mandatory IETF interop requirements.
107
108* Fri Jan 26 2009 - Werner Dittmann <werner.dittmann@t-online.de>
109- Update to version 1.4.2 to support the latest ZRTP
110 specification draft-zimmermann-avt-zrtp-12
111
112* Fri Aug 22 2008 - David Sugar <dyfet@gnutelephony.org>
113- Adapted for newer library naming conventions.
114
115* Tue Dec 11 2007 - Werner Dittmann <werner.dittmann@t-online.de>
116- this is the first spec file for version 1.x.x
117- remove the .la file in devel package
118- use default file atttribute instead of 755
119
120* Sat Apr 18 2007 - Werner Dittmann <werner.dittmann@t-online.de>
121- set version to 1.1.0
122- GNU ZRTP is compatible with the latest Zfone Beta
123 from April 2 2007