SourceForge has been redesigned. Learn more.
Close

[c83a11]: / ccrtp.spec.cmake  Maximize  Restore  History

Download this file

84 lines (67 with data), 2.4 kB

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