blob: 735a59ff139b03ef3b786043d6bf47f7f711aa04 [file] [log] [blame]
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001%{!?release: %define release 0}
2%{!?version: %define version @VERSION@}
3
4%define _libname libccrtp2
5%define _devname libccrtp-devel
6
7Summary: A Common C++ Class Framework for RTP Packets
8Name: libccrtp
9Version: %{version}
10Release: %{release}%{?dist}
11License: LGPL v2 or later
12Group: Development/Libraries/C and C++
13URL: http://www.gnu.org/software/commoncpp/commoncpp.html
14Source0: http://www.gnutelephony.org/dist/tarballs/ccrtp-%{version}.tar.gz
15BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
16BuildRequires: ucommon-devel >= 5.0.0
17BuildRequires: pkgconfig libstdc++-devel libgcrypt-devel gcc-c++ cmake
18
19%define srcdirname %{name}-%{version}
20
21%description
22ccRTP is a generic, extensible and efficient C++ framework for
23developing applications based on the Real-Time Transport Protocol
24(RTP) from the IETF. It is based on Common C++ and provides a full
25RTP/RTCP stack for sending and receiving of realtime data by the use
26of send and receive packet queues. ccRTP supports unicast,
27multi-unicast and multicast, manages multiple sources, handles RTCP
28automatically, supports different threading models and is generic as
29for underlying network and transport protocols.
30
31%package -n %{_devname}
32Group: Development/Libraries/C and C++
33Summary: Headers and static link library for ccrtp
34Requires: %{name} = %{version}-%{release}
35Requires: ucommon-devel >= 5.0.0
36Requires: libgcrypt-devel
37
38%description -n %{_devname}
39This package provides the header files, link libraries, and
40documentation for building applications that use GNU ccrtp
41
42%prep
43%setup -q -n ccrtp-%version
44
45%build
46%{__mkdir} build
47cd build
48cmake -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
58cd build
59%{__rm} -rf %{buildroot}
60make 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