blob: eefd0db552e7b036a0ee4cbc64fcfb2eb7004faf [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001%{!?release: %define release 0}
2%{!?version: %define version @VERSION@}
3
Alexandre Lisionddd731e2014-01-31 11:50:08 -05004%define _libname libccrtp2
Emeric Vigier2f625822012-08-06 11:09:52 -04005%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
Alexandre Lisionddd731e2014-01-31 11:50:08 -050014Source0: ccrtp-%{version}.tar.gz
15BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
16BuildRequires: ucommon >= 5.0.0
Emeric Vigier2f625822012-08-06 11:09:52 -040017BuildRequires: pkgconfig
18BuildRequires: libstdc++-devel
19BuildRequires: libgcrypt-devel
20BuildRequires: gcc-c++
21
22%description
23ccRTP is a generic, extensible and efficient C++ framework for
24developing applications based on the Real-Time Transport Protocol
25(RTP) from the IETF. It is based on Common C++ and provides a full
26RTP/RTCP stack for sending and receiving of realtime data by the use
27of send and receive packet queues. ccRTP supports unicast,
28multi-unicast and multicast, manages multiple sources, handles RTCP
29automatically, supports different threading models and is generic as
30for underlying network and transport protocols.
31
32%package -n %{_libname}
33Group: Development/Libraries/C and C++
34Summary: Runtime library for GNU RTP Stack
35Provides: %{name} = %{version}-%{release}
36
37%package -n %{_devname}
38Group: Development/Libraries/C and C++
39Summary: Headers and static link library for ccrtp
Alexandre Lisionddd731e2014-01-31 11:50:08 -050040Requires: %{_libname} = %{version}
41Requires: ucommon-devel >= 5.0.0
Emeric Vigier2f625822012-08-06 11:09:52 -040042Requires: libgcrypt-devel
43Provides: %{name}-devel = %{version}-%{release}
44
45%description -n %{_libname}
Alexandre Lisionddd731e2014-01-31 11:50:08 -050046This package contains the runtime library needed by applications that use
Emeric Vigier2f625822012-08-06 11:09:52 -040047the GNU RTP stack.
48
49%description -n %{_devname}
Alexandre Lisionddd731e2014-01-31 11:50:08 -050050This package provides the header files, link libraries, and
51documentation for building applications that use GNU ccrtp.
Emeric Vigier2f625822012-08-06 11:09:52 -040052
53%prep
54%setup
55%build
56%configure
57
58make %{?_smp_mflags} LDFLAGS="-s" CXXFLAGS="$RPM_OPT_FLAGS"
59
60%install
61
62%makeinstall
Alexandre Lisionddd731e2014-01-31 11:50:08 -050063rm -rf %{buildroot}/%{_infodir}
Emeric Vigier2f625822012-08-06 11:09:52 -040064
65%clean
66rm -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
Alexandre Lisionddd731e2014-01-31 11:50:08 -050077%{_libdir}/*.la
Emeric Vigier2f625822012-08-06 11:09:52 -040078%{_libdir}/pkgconfig/*.pc
79%dir %{_includedir}/ccrtp
80%{_includedir}/ccrtp/*.h
81
82%post -n %{_libname} -p /sbin/ldconfig
83
Alexandre Lisionddd731e2014-01-31 11:50:08 -050084%postun -n %{_libname} -p /sbin/ldconfig
Emeric Vigier2f625822012-08-06 11:09:52 -040085
86%changelog
87* Tue Jan 06 2011 - Werner Dittmann <werner.dittmann@t-online.de>
88- Add Skein MAC authentication algorithm