|
1 %{!?release: %define release 0} |
|
2 %{!?version: %define version 1.7.1} |
|
3 |
|
4 %define _libname libccrtp |
|
5 %define _devname libccrtp-devel |
|
6 |
|
7 Summary: "ccrtp" - a Common C++ class framework for RTP/RTCP |
|
8 Name: ccrtp |
|
9 Version: %{version} |
|
10 Release: %{release}%{?dist} |
|
11 License: LGPL v2 or later |
|
12 Group: Development/Libraries |
|
13 URL: http://www.gnu.org/software/ccrtp/ |
|
14 Source0: ftp://ftp.gnu.org/gnu/cccrtp/ccrtp-%{PACKAGE_VERSION}.tar.gz |
|
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
16 Packager: Michael Schloh von Bennewitz |
|
17 BuildRequires: commoncpp2-devel >= 1.4.0 |
|
18 BuildRequires: pkgconfig |
|
19 BuildRequires: libstdc++-devel |
|
20 BuildRequires: libgcrypt-devel |
|
21 |
|
22 %description |
|
23 ccRTP is a generic, extensible and efficient C++ framework for |
|
24 developing applications based on the Real-Time Transport Protocol |
|
25 (RTP) from the IETF. It is based on Common C++ and provides a full |
|
26 RTP/RTCP stack for sending and receiving of realtime data by the use |
|
27 of send and receive packet queues. ccRTP supports unicast, |
|
28 multi-unicast and multicast, manages multiple sources, handles RTCP |
|
29 automatically, supports different threading models and is generic as |
|
30 for underlying network and transport protocols. |
|
31 |
|
32 %package -n %{_libname} |
|
33 Group: System/Libraries |
|
34 Summary: Runtime library for GNU RTP Stack |
|
35 Provides: %{name} = %{version}-%{release} |
|
36 |
|
37 %package -n %{_devname} |
|
38 Group: Development/Libraries |
|
39 Summary: Headers and static link library for ccrtp. |
|
40 Requires: %{_libname} = %{version} |
|
41 Requires: commoncpp2-devel >= 1.4.0 |
|
42 Requires: libgcrypt-devel |
|
43 Provides: %{name}-devel = %{version}-%{release} |
|
44 |
|
45 %description -n %{_libname} |
|
46 This package contains the runtime library needed by applications that use |
|
47 the GNU RTP stack. |
|
48 |
|
49 %description -n %{_devname} |
|
50 This package provides the header files, link libraries, and |
|
51 documentation for building applications that use GNU ccrtp. |
|
52 |
|
53 %prep |
|
54 %setup |
|
55 %build |
|
56 %configure |
|
57 |
|
58 make %{?_smp_mflags} LDFLAGS="-s" CXXFLAGS="$RPM_OPT_FLAGS" |
|
59 |
|
60 %install |
|
61 |
|
62 %makeinstall |
|
63 rm -rf %{buildroot}/%{_infodir} |
|
64 |
|
65 %clean |
|
66 rm -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 |
|
77 %{_libdir}/*.la |
|
78 %{_libdir}/pkgconfig/*.pc |
|
79 %dir %{_includedir}/ccrtp |
|
80 %{_includedir}/ccrtp/*.h |
|
81 |
|
82 %post -n %{_libname} -p /sbin/ldconfig |
|
83 |
|
84 %postun -n %{_libname} -p /sbin/ldconfig |