michael@5: %{!?release: %define release 0} michael@5: %{!?version: %define version 1.7.1} michael@5: michael@5: %define _libname libccrtp michael@5: %define _devname libccrtp-devel michael@5: michael@5: Summary: "ccrtp" - a Common C++ class framework for RTP/RTCP michael@5: Name: ccrtp michael@5: Version: %{version} michael@5: Release: %{release}%{?dist} michael@5: License: LGPL v2 or later michael@5: Group: Development/Libraries michael@5: URL: http://www.gnu.org/software/ccrtp/ michael@5: Source0: ftp://ftp.gnu.org/gnu/cccrtp/ccrtp-%{PACKAGE_VERSION}.tar.gz michael@5: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root michael@5: Packager: Michael Schloh von Bennewitz michael@5: BuildRequires: commoncpp2-devel >= 1.4.0 michael@5: BuildRequires: pkgconfig michael@5: BuildRequires: libstdc++-devel michael@5: BuildRequires: libgcrypt-devel michael@5: michael@5: %description michael@5: ccRTP is a generic, extensible and efficient C++ framework for michael@5: developing applications based on the Real-Time Transport Protocol michael@5: (RTP) from the IETF. It is based on Common C++ and provides a full michael@5: RTP/RTCP stack for sending and receiving of realtime data by the use michael@5: of send and receive packet queues. ccRTP supports unicast, michael@5: multi-unicast and multicast, manages multiple sources, handles RTCP michael@5: automatically, supports different threading models and is generic as michael@5: for underlying network and transport protocols. michael@5: michael@5: %package -n %{_libname} michael@5: Group: System/Libraries michael@5: Summary: Runtime library for GNU RTP Stack michael@5: Provides: %{name} = %{version}-%{release} michael@5: michael@5: %package -n %{_devname} michael@5: Group: Development/Libraries michael@5: Summary: Headers and static link library for ccrtp. michael@5: Requires: %{_libname} = %{version} michael@5: Requires: commoncpp2-devel >= 1.4.0 michael@5: Requires: libgcrypt-devel michael@5: Provides: %{name}-devel = %{version}-%{release} michael@5: michael@5: %description -n %{_libname} michael@5: This package contains the runtime library needed by applications that use michael@5: the GNU RTP stack. michael@5: michael@5: %description -n %{_devname} michael@5: This package provides the header files, link libraries, and michael@5: documentation for building applications that use GNU ccrtp. michael@5: michael@5: %prep michael@5: %setup michael@5: %build michael@5: %configure michael@5: michael@5: make %{?_smp_mflags} LDFLAGS="-s" CXXFLAGS="$RPM_OPT_FLAGS" michael@5: michael@5: %install michael@5: michael@5: %makeinstall michael@5: rm -rf %{buildroot}/%{_infodir} michael@5: michael@5: %clean michael@5: rm -rf %{buildroot} michael@5: michael@5: %files -n %{_libname} michael@5: %defattr(-,root,root,0755) michael@5: %doc AUTHORS COPYING ChangeLog README COPYING.addendum michael@5: %{_libdir}/*.so.* michael@5: michael@5: %files -n %{_devname} michael@5: %defattr(-,root,root,0755) michael@5: %{_libdir}/*.a michael@5: %{_libdir}/*.so michael@5: %{_libdir}/*.la michael@5: %{_libdir}/pkgconfig/*.pc michael@5: %dir %{_includedir}/ccrtp michael@5: %{_includedir}/ccrtp/*.h michael@5: michael@5: %post -n %{_libname} -p /sbin/ldconfig michael@5: michael@5: %postun -n %{_libname} -p /sbin/ldconfig