Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 1 | # Copyright (c) 2014 David Sugar, Tycho Softworks. |
| 2 | # This file is free software; as a special exception the author gives |
| 3 | # unlimited permission to copy and/or distribute it, with or without |
| 4 | # modifications, as long as this notice is preserved. |
| 5 | # |
| 6 | # This program is distributed in the hope that it will be useful, |
| 7 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 8 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 9 | # PARTICULAR PURPOSE. |
| 10 | |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 11 | %{!?release: %define release 0} |
| 12 | %{!?version: %define version @VERSION@} |
| 13 | |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 14 | %define libname libccrtp2 |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 15 | |
| 16 | Summary: A Common C++ Class Framework for RTP Packets |
| 17 | Name: libccrtp |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 18 | Version: @VERSION@ |
| 19 | Release: 0 |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 20 | License: LGPL v2 or later |
| 21 | Group: Development/Libraries/C and C++ |
| 22 | URL: http://www.gnu.org/software/commoncpp/commoncpp.html |
| 23 | Source0: http://www.gnutelephony.org/dist/tarballs/ccrtp-%{version}.tar.gz |
| 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 25 | BuildRequires: ucommon-devel >= 6.0.0 |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 26 | BuildRequires: pkgconfig libstdc++-devel libgcrypt-devel gcc-c++ cmake |
| 27 | |
| 28 | %define srcdirname %{name}-%{version} |
| 29 | |
| 30 | %description |
| 31 | ccRTP is a generic, extensible and efficient C++ framework for |
| 32 | developing applications based on the Real-Time Transport Protocol |
| 33 | (RTP) from the IETF. It is based on Common C++ and provides a full |
| 34 | RTP/RTCP stack for sending and receiving of realtime data by the use |
| 35 | of send and receive packet queues. ccRTP supports unicast, |
| 36 | multi-unicast and multicast, manages multiple sources, handles RTCP |
| 37 | automatically, supports different threading models and is generic as |
| 38 | for underlying network and transport protocols. |
| 39 | |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 40 | %package devel |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 41 | Group: Development/Libraries/C and C++ |
| 42 | Summary: Headers and static link library for ccrtp |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 43 | Requires: %{libname} = %{version}-%{release} |
| 44 | Requires: ucommon-devel >= 6.0.0 |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 45 | Requires: libgcrypt-devel |
| 46 | |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 47 | %description devel |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 48 | This package provides the header files, link libraries, and |
| 49 | documentation for building applications that use GNU ccrtp |
| 50 | |
| 51 | %prep |
| 52 | %setup -q -n ccrtp-%version |
| 53 | |
| 54 | %build |
| 55 | %{__mkdir} build |
| 56 | cd build |
| 57 | cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
| 58 | -DSYSCONFDIR=%{_sysconfdir} \ |
| 59 | -DMANDIR=%{_mandir} \ |
| 60 | -DCMAKE_VERBOSE_MAKEFILE=TRUE \ |
| 61 | -DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \ |
| 62 | -DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \ |
| 63 | .. |
| 64 | %{__make} %{?_smp_mflags} |
| 65 | |
| 66 | %install |
| 67 | cd build |
| 68 | %{__rm} -rf %{buildroot} |
| 69 | make install DESTDIR=%{buildroot} |
| 70 | %{__rm} -rf %{buildroot}%{_libdir}/*.la |
| 71 | |
| 72 | %clean |
| 73 | %{__rm} -rf %{buildroot} |
| 74 | |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 75 | %files -n %libname |
| 76 | %defattr(-,root,root,-) |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 77 | %doc AUTHORS COPYING ChangeLog README COPYING.addendum |
| 78 | %{_libdir}/*.so.* |
| 79 | |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 80 | %files devel |
| 81 | %defattr(-,root,root,-) |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 82 | %{_libdir}/*.so |
| 83 | %{_libdir}/pkgconfig/*.pc |
| 84 | %dir %{_includedir}/ccrtp |
| 85 | %{_includedir}/ccrtp/*.h |
| 86 | %{_infodir}/ccrtp.info* |
| 87 | |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 88 | %post -n %libname -p /sbin/ldconfig |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 89 | |
Alexandre Lision | 81ecad6 | 2014-04-04 14:11:58 -0400 | [diff] [blame] | 90 | %postun -n %libname -p /sbin/ldconfig |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 91 | |
| 92 | %post devel |
| 93 | %install_info --info-dir=%{_infodir} %{_infodir}/ccrtp.info.gz |
| 94 | |
| 95 | %postun devel |
| 96 | %install_info_delete --info-dir=%{_infodir} %{_infodir}/ccrtp.info.gz |
| 97 | |
| 98 | %changelog |
Alexandre Lision | e41ecd4 | 2014-02-27 15:51:10 -0500 | [diff] [blame] | 99 | * Thu Jan 06 2011 - Werner Dittmann <werner.dittmann@t-online.de> |
Alexandre Lision | ddd731e | 2014-01-31 11:50:08 -0500 | [diff] [blame] | 100 | - Add Skein MAC authentication algorithm |
| 101 | |