libzrtpcpp/libzrtpcpp.spec

Sat, 21 Feb 2009 16:33:28 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 21 Feb 2009 16:33:28 +0100
changeset 5
974f3946908a
permissions
-rw-r--r--

Import custom package specs to build for undistributed platforms.
This allows installation of twinkle and its dependencies on some
operating systems not providing it in default package repositories.

michael@5 1 %define _libname libzrtpcpp
michael@5 2 %define _devname libzrtpcpp-devel
michael@5 3
michael@5 4 Summary: A ccrtp extension for zrtp/zfone support
michael@5 5 Name: zrtpcpp
michael@5 6 Version: 1.4.3
michael@5 7 Release: 0
michael@5 8 License: GPL
michael@5 9 Group: Development/Libraries
michael@5 10 URL: http://www.gnutelephony.org/index.php/GNU_ZRTP
michael@5 11 Source0: ftp://ftp.gnu.org/gnu/ccrtp/libzrtpcpp-%{version}.tar.gz
michael@5 12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
michael@5 13 Packager: Michael Schloh von Bennewitz
michael@5 14 BuildRequires: libccrtp-devel >= 1.5.0
michael@5 15 BuildRequires: pkgconfig
michael@5 16 BuildRequires: libstdc++-devel
michael@5 17
michael@5 18 %description
michael@5 19 This library is a GPL licensed extension to the GNU RTP Stack (GNU ccrtp).
michael@5 20 This extension offers a C++ implementation of Phil Zimmermann's ZRTP
michael@5 21 specification. The current release is based on
michael@5 22 draft-zimmermann-avt-zrtp-12.txt which is intended to become the
michael@5 23 RFC. Phil's Zfone site provides more
michael@5 24 information, see http://zfoneproject.com/index.html
michael@5 25
michael@5 26 This implementation was tested to work with Phil's Zfone implementation
michael@5 27 of the ZRTP spefication.
michael@5 28
michael@5 29 Applications that use GNU ccrtp can use this library to use ZRTP and to
michael@5 30 encrypt any RTP (not RTCP) communication. See the demo programs how to
michael@5 31 use this.
michael@5 32
michael@5 33 This release supports the basic ZRTP features, it does not support
michael@5 34 preshared specified in the draft. Also the specified Asterisk PBX mode
michael@5 35 is not supported.
michael@5 36
michael@5 37 %package -n %{_libname}
michael@5 38 Group: System/Libraries
michael@5 39 Summary: Runtime library for GNU ZRTP Stack
michael@5 40 Requires: libccrtp >= 1.5.0
michael@5 41 Provides: %{name} = %{version}-%{release}
michael@5 42
michael@5 43 %package -n %{_devname}
michael@5 44 Group: Development/Libraries
michael@5 45 Summary: Headers and static link library for libzrtpcpp.
michael@5 46 Requires: %{name} = %{version}
michael@5 47 Requires: libccrtp-devel >= 1.5.0
michael@5 48 Provides: %{name}-devel = %{version}-%{release}
michael@5 49
michael@5 50 %description -n %{_libname}
michael@5 51 This package contains the runtime library needed by applications that use
michael@5 52 the GNU ZRTP stack.
michael@5 53
michael@5 54 %description -n %{_devname}
michael@5 55 This package provides the header files, link libraries, and
michael@5 56 documentation for building applications that use libzrtpcpp.
michael@5 57
michael@5 58 %prep
michael@5 59 %setup -n libzrtpcpp-%{version}
michael@5 60 %build
michael@5 61 %configure
michael@5 62 %{__make} %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS"
michael@5 63
michael@5 64 %install
michael@5 65
michael@5 66 %makeinstall
michael@5 67 %{__strip} %{buildroot}/%{_libdir}/lib*.so.*.*
michael@5 68 %{__rm} -rf %{buildroot}/%{_infodir}
michael@5 69
michael@5 70 %clean
michael@5 71 %{__rm} -rf %{buildroot}
michael@5 72
michael@5 73 %files -n %{_libname}
michael@5 74 %defattr(-,root,root)
michael@5 75 %doc AUTHORS COPYING README NEWS INSTALL
michael@5 76 %{_libdir}/*.so.*
michael@5 77
michael@5 78 %files -n %{_devname}
michael@5 79 %defattr(-,root,root)
michael@5 80 %{_libdir}/*.a
michael@5 81 %{_libdir}/*.so
michael@5 82 %{_libdir}/*.la
michael@5 83 %{_libdir}/pkgconfig/*.pc
michael@5 84 %{_includedir}/libzrtpcpp/*.h
michael@5 85
michael@5 86 %post -n %{_libname} -p /sbin/ldconfig
michael@5 87
michael@5 88 %postun -n %{_devname} -p /sbin/ldconfig
michael@5 89
michael@5 90 %changelog
michael@5 91 * Wed Feb 18 2009 - michael@schloh.com
michael@5 92 - Update to version 1.4.3 and reformat packaging
michael@5 93
michael@5 94 * Fri Jan 26 2009 - werner.dittmann@t-online.de
michael@5 95 - Update to version 1.4.2 to support the latest ZRTP
michael@5 96 specification draft-zimmermann-avt-zrtp-12
michael@5 97
michael@5 98 * Fri Aug 22 2008 - dyfet@gnutelephony.org
michael@5 99 - Adapted for newer library naming conventions.
michael@5 100
michael@5 101 * Tue Dec 11 2007 - werner.dittmann@t-online.de
michael@5 102 - this is the first spec file for version 1.x.x
michael@5 103 - remove the .la file in devel package
michael@5 104 - use default file atttribute instead of 755
michael@5 105
michael@5 106 * Sat Apr 18 2007 - werner.dittmann@t-online.de
michael@5 107 - set version to 1.1.0
michael@5 108 - GNU ZRTP is compatible with the latest Zfone Beta
michael@5 109 from April 2 2007

mercurial