Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 1 | %{!?release: %define release 0} |
| 2 | %{!?version: %define version @VERSION@} |
| 3 | |
| 4 | %define _libname libccrtp2 |
| 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: http://www.gnutelephony.org/dist/tarballs/ccrtp-%{version}.tar.gz |
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
| 16 | BuildRequires: ucommon-devel >= 5.0.0 |
| 17 | BuildRequires: pkgconfig libstdc++-devel libgcrypt-devel gcc-c++ cmake |
| 18 | |
| 19 | %define srcdirname %{name}-%{version} |
| 20 | |
| 21 | %description |
| 22 | ccRTP is a generic, extensible and efficient C++ framework for |
| 23 | developing applications based on the Real-Time Transport Protocol |
| 24 | (RTP) from the IETF. It is based on Common C++ and provides a full |
| 25 | RTP/RTCP stack for sending and receiving of realtime data by the use |
| 26 | of send and receive packet queues. ccRTP supports unicast, |
| 27 | multi-unicast and multicast, manages multiple sources, handles RTCP |
| 28 | automatically, supports different threading models and is generic as |
| 29 | for underlying network and transport protocols. |
| 30 | |
| 31 | %package -n %{_devname} |
| 32 | Group: Development/Libraries/C and C++ |
| 33 | Summary: Headers and static link library for ccrtp |
| 34 | Requires: %{name} = %{version}-%{release} |
| 35 | Requires: ucommon-devel >= 5.0.0 |
| 36 | Requires: libgcrypt-devel |
| 37 | |
| 38 | %description -n %{_devname} |
| 39 | This package provides the header files, link libraries, and |
| 40 | documentation for building applications that use GNU ccrtp |
| 41 | |
| 42 | %prep |
| 43 | %setup -q -n ccrtp-%version |
| 44 | |
| 45 | %build |
| 46 | %{__mkdir} build |
| 47 | cd build |
| 48 | cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
| 49 | -DSYSCONFDIR=%{_sysconfdir} \ |
| 50 | -DMANDIR=%{_mandir} \ |
| 51 | -DCMAKE_VERBOSE_MAKEFILE=TRUE \ |
| 52 | -DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \ |
| 53 | -DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \ |
| 54 | .. |
| 55 | %{__make} %{?_smp_mflags} |
| 56 | |
| 57 | %install |
| 58 | cd build |
| 59 | %{__rm} -rf %{buildroot} |
| 60 | make install DESTDIR=%{buildroot} |
| 61 | %{__rm} -rf %{buildroot}%{_libdir}/*.la |
| 62 | |
| 63 | %clean |
| 64 | %{__rm} -rf %{buildroot} |
| 65 | |
| 66 | %files |
| 67 | %defattr(-,root,root,0755) |
| 68 | %doc AUTHORS COPYING ChangeLog README COPYING.addendum |
| 69 | %{_libdir}/*.so.* |
| 70 | |
| 71 | %files -n %{_devname} |
| 72 | %defattr(-,root,root,0755) |
| 73 | %{_libdir}/*.so |
| 74 | %{_libdir}/pkgconfig/*.pc |
| 75 | %dir %{_includedir}/ccrtp |
| 76 | %{_includedir}/ccrtp/*.h |
| 77 | %{_infodir}/ccrtp.info* |
| 78 | |
| 79 | %post -p /sbin/ldconfig |
| 80 | |
| 81 | %postun -p /sbin/ldconfig |
| 82 | |
| 83 | %post devel |
| 84 | %install_info --info-dir=%{_infodir} %{_infodir}/ccrtp.info.gz |
| 85 | |
| 86 | %postun devel |
| 87 | %install_info_delete --info-dir=%{_infodir} %{_infodir}/ccrtp.info.gz |
| 88 | |
| 89 | %changelog |
| 90 | * Tue Jan 06 2011 - Werner Dittmann <werner.dittmann@t-online.de> |
| 91 | - Add Skein MAC authentication algorithm |
| 92 | |