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