Alexandre Lision | 51140e1 | 2013-12-02 10:54:09 -0500 | [diff] [blame] | 1 | # |
| 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 | |
| 18 | Name: libzrtpcpp |
| 19 | Summary: A ccrtp extension for ZRTP support |
| 20 | BuildRequires: gcc-c++ @BUILD_REQ@ pkgconfig cmake |
| 21 | BuildRequires: libccrtp-devel >= 2.0.0 |
| 22 | Version: @VERSION@ |
| 23 | Release: 0 |
| 24 | License: GPL v3 or later |
| 25 | Group: Development/Libraries/Other |
| 26 | Url: https://github.com/wernerd/ZRTPCPP |
| 27 | Source0: %{name}-%{version}.tar.gz |
| 28 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| 29 | |
| 30 | %description |
| 31 | This library is a GPL licensed extension to the GNU RTP Stack, ccrtp, |
| 32 | that offers compatibility with Phil Zimmermann's zrtp/Zfone voice |
| 33 | encryption, and which can be directly embedded into telephony |
| 34 | applications. |
| 35 | |
| 36 | |
| 37 | %package devel |
| 38 | License: GPL v3 or later |
| 39 | Group: Development/Libraries/Other |
| 40 | Summary: Headers and link library for libzrtpcpp |
| 41 | Requires: libzrtpcpp = %{version} libccrtp-devel >= 2.0.0 |
| 42 | |
| 43 | %description devel |
| 44 | This package provides the header files, link libraries, and |
| 45 | documentation for building applications that use libzrtpcpp. |
| 46 | |
| 47 | |
| 48 | |
| 49 | %prep |
| 50 | %setup -q |
| 51 | |
| 52 | %build |
| 53 | %{__mkdir} build |
| 54 | cd build |
| 55 | |
| 56 | cmake -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 |
| 68 | cd build |
| 69 | %{__rm} -rf %{buildroot} |
| 70 | make 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 |