blob: 75ffbd942cb9d707fec4bafe132ed8d604e70a79 [file] [log] [blame]
Alexandre Lision81ecad62014-04-04 14:11:58 -04001# 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 Lisionddd731e2014-01-31 11:50:08 -050011%{!?release: %define release 0}
12%{!?version: %define version @VERSION@}
13
Alexandre Lision81ecad62014-04-04 14:11:58 -040014%define libname libccrtp2
Alexandre Lisionddd731e2014-01-31 11:50:08 -050015
16Summary: A Common C++ Class Framework for RTP Packets
17Name: libccrtp
Alexandre Lision81ecad62014-04-04 14:11:58 -040018Version: @VERSION@
19Release: 0
Alexandre Lisionddd731e2014-01-31 11:50:08 -050020License: LGPL v2 or later
21Group: Development/Libraries/C and C++
22URL: http://www.gnu.org/software/commoncpp/commoncpp.html
23Source0: http://www.gnutelephony.org/dist/tarballs/ccrtp-%{version}.tar.gz
24BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Alexandre Lision81ecad62014-04-04 14:11:58 -040025BuildRequires: ucommon-devel >= 6.0.0
Alexandre Lisionddd731e2014-01-31 11:50:08 -050026BuildRequires: pkgconfig libstdc++-devel libgcrypt-devel gcc-c++ cmake
27
28%define srcdirname %{name}-%{version}
29
30%description
31ccRTP is a generic, extensible and efficient C++ framework for
32developing applications based on the Real-Time Transport Protocol
33(RTP) from the IETF. It is based on Common C++ and provides a full
34RTP/RTCP stack for sending and receiving of realtime data by the use
35of send and receive packet queues. ccRTP supports unicast,
36multi-unicast and multicast, manages multiple sources, handles RTCP
37automatically, supports different threading models and is generic as
38for underlying network and transport protocols.
39
Alexandre Lision81ecad62014-04-04 14:11:58 -040040%package devel
Alexandre Lisionddd731e2014-01-31 11:50:08 -050041Group: Development/Libraries/C and C++
42Summary: Headers and static link library for ccrtp
Alexandre Lision81ecad62014-04-04 14:11:58 -040043Requires: %{libname} = %{version}-%{release}
44Requires: ucommon-devel >= 6.0.0
Alexandre Lisionddd731e2014-01-31 11:50:08 -050045Requires: libgcrypt-devel
46
Alexandre Lision81ecad62014-04-04 14:11:58 -040047%description devel
Alexandre Lisionddd731e2014-01-31 11:50:08 -050048This package provides the header files, link libraries, and
49documentation for building applications that use GNU ccrtp
50
51%prep
52%setup -q -n ccrtp-%version
53
54%build
55%{__mkdir} build
56cd build
57cmake -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
67cd build
68%{__rm} -rf %{buildroot}
69make install DESTDIR=%{buildroot}
70%{__rm} -rf %{buildroot}%{_libdir}/*.la
71
72%clean
73%{__rm} -rf %{buildroot}
74
Alexandre Lision81ecad62014-04-04 14:11:58 -040075%files -n %libname
76%defattr(-,root,root,-)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050077%doc AUTHORS COPYING ChangeLog README COPYING.addendum
78%{_libdir}/*.so.*
79
Alexandre Lision81ecad62014-04-04 14:11:58 -040080%files devel
81%defattr(-,root,root,-)
Alexandre Lisionddd731e2014-01-31 11:50:08 -050082%{_libdir}/*.so
83%{_libdir}/pkgconfig/*.pc
84%dir %{_includedir}/ccrtp
85%{_includedir}/ccrtp/*.h
86%{_infodir}/ccrtp.info*
87
Alexandre Lision81ecad62014-04-04 14:11:58 -040088%post -n %libname -p /sbin/ldconfig
Alexandre Lisionddd731e2014-01-31 11:50:08 -050089
Alexandre Lision81ecad62014-04-04 14:11:58 -040090%postun -n %libname -p /sbin/ldconfig
Alexandre Lisionddd731e2014-01-31 11:50:08 -050091
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 Lisione41ecd42014-02-27 15:51:10 -050099* Thu Jan 06 2011 - Werner Dittmann <werner.dittmann@t-online.de>
Alexandre Lisionddd731e2014-01-31 11:50:08 -0500100- Add Skein MAC authentication algorithm
101