Sun, 08 May 2011 15:46:25 +0200
Import package vendor original specs for necessary manipulations.
michael@5 | 1 | %{!?release: %define release 0} |
michael@5 | 2 | %{!?version: %define version 1.7.1} |
michael@5 | 3 | |
michael@5 | 4 | %define _libname libccrtp |
michael@5 | 5 | %define _devname libccrtp-devel |
michael@5 | 6 | |
michael@5 | 7 | Summary: "ccrtp" - a Common C++ class framework for RTP/RTCP |
michael@5 | 8 | Name: ccrtp |
michael@5 | 9 | Version: %{version} |
michael@5 | 10 | Release: %{release}%{?dist} |
michael@5 | 11 | License: LGPL v2 or later |
michael@5 | 12 | Group: Development/Libraries |
michael@5 | 13 | URL: http://www.gnu.org/software/ccrtp/ |
michael@5 | 14 | Source0: ftp://ftp.gnu.org/gnu/cccrtp/ccrtp-%{PACKAGE_VERSION}.tar.gz |
michael@5 | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
michael@5 | 16 | Packager: Michael Schloh von Bennewitz |
michael@5 | 17 | BuildRequires: commoncpp2-devel >= 1.4.0 |
michael@5 | 18 | BuildRequires: pkgconfig |
michael@5 | 19 | BuildRequires: libstdc++-devel |
michael@5 | 20 | BuildRequires: libgcrypt-devel |
michael@5 | 21 | |
michael@5 | 22 | %description |
michael@5 | 23 | ccRTP is a generic, extensible and efficient C++ framework for |
michael@5 | 24 | developing applications based on the Real-Time Transport Protocol |
michael@5 | 25 | (RTP) from the IETF. It is based on Common C++ and provides a full |
michael@5 | 26 | RTP/RTCP stack for sending and receiving of realtime data by the use |
michael@5 | 27 | of send and receive packet queues. ccRTP supports unicast, |
michael@5 | 28 | multi-unicast and multicast, manages multiple sources, handles RTCP |
michael@5 | 29 | automatically, supports different threading models and is generic as |
michael@5 | 30 | for underlying network and transport protocols. |
michael@5 | 31 | |
michael@5 | 32 | %package -n %{_libname} |
michael@5 | 33 | Group: System/Libraries |
michael@5 | 34 | Summary: Runtime library for GNU RTP Stack |
michael@5 | 35 | Provides: %{name} = %{version}-%{release} |
michael@5 | 36 | |
michael@5 | 37 | %package -n %{_devname} |
michael@5 | 38 | Group: Development/Libraries |
michael@5 | 39 | Summary: Headers and static link library for ccrtp. |
michael@5 | 40 | Requires: %{_libname} = %{version} |
michael@5 | 41 | Requires: commoncpp2-devel >= 1.4.0 |
michael@5 | 42 | Requires: libgcrypt-devel |
michael@5 | 43 | Provides: %{name}-devel = %{version}-%{release} |
michael@5 | 44 | |
michael@5 | 45 | %description -n %{_libname} |
michael@5 | 46 | This package contains the runtime library needed by applications that use |
michael@5 | 47 | the GNU RTP stack. |
michael@5 | 48 | |
michael@5 | 49 | %description -n %{_devname} |
michael@5 | 50 | This package provides the header files, link libraries, and |
michael@5 | 51 | documentation for building applications that use GNU ccrtp. |
michael@5 | 52 | |
michael@5 | 53 | %prep |
michael@5 | 54 | %setup |
michael@5 | 55 | %build |
michael@5 | 56 | %configure |
michael@5 | 57 | |
michael@5 | 58 | make %{?_smp_mflags} LDFLAGS="-s" CXXFLAGS="$RPM_OPT_FLAGS" |
michael@5 | 59 | |
michael@5 | 60 | %install |
michael@5 | 61 | |
michael@5 | 62 | %makeinstall |
michael@5 | 63 | rm -rf %{buildroot}/%{_infodir} |
michael@5 | 64 | |
michael@5 | 65 | %clean |
michael@5 | 66 | rm -rf %{buildroot} |
michael@5 | 67 | |
michael@5 | 68 | %files -n %{_libname} |
michael@5 | 69 | %defattr(-,root,root,0755) |
michael@5 | 70 | %doc AUTHORS COPYING ChangeLog README COPYING.addendum |
michael@5 | 71 | %{_libdir}/*.so.* |
michael@5 | 72 | |
michael@5 | 73 | %files -n %{_devname} |
michael@5 | 74 | %defattr(-,root,root,0755) |
michael@5 | 75 | %{_libdir}/*.a |
michael@5 | 76 | %{_libdir}/*.so |
michael@5 | 77 | %{_libdir}/*.la |
michael@5 | 78 | %{_libdir}/pkgconfig/*.pc |
michael@5 | 79 | %dir %{_includedir}/ccrtp |
michael@5 | 80 | %{_includedir}/ccrtp/*.h |
michael@5 | 81 | |
michael@5 | 82 | %post -n %{_libname} -p /sbin/ldconfig |
michael@5 | 83 | |
michael@5 | 84 | %postun -n %{_libname} -p /sbin/ldconfig |