ccrtp/ccrtp.spec

changeset 5
974f3946908a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ccrtp/ccrtp.spec	Sat Feb 21 16:33:28 2009 +0100
     1.3 @@ -0,0 +1,84 @@
     1.4 +%{!?release: %define release 0}
     1.5 +%{!?version: %define version 1.7.1}
     1.6 +
     1.7 +%define _libname libccrtp
     1.8 +%define _devname libccrtp-devel
     1.9 +
    1.10 +Summary: "ccrtp" - a Common C++ class framework for RTP/RTCP
    1.11 +Name: ccrtp
    1.12 +Version: %{version}
    1.13 +Release: %{release}%{?dist}
    1.14 +License: LGPL v2 or later
    1.15 +Group: Development/Libraries
    1.16 +URL: http://www.gnu.org/software/ccrtp/
    1.17 +Source0: ftp://ftp.gnu.org/gnu/cccrtp/ccrtp-%{PACKAGE_VERSION}.tar.gz
    1.18 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
    1.19 +Packager:      Michael Schloh von Bennewitz
    1.20 +BuildRequires: commoncpp2-devel >= 1.4.0
    1.21 +BuildRequires: pkgconfig
    1.22 +BuildRequires: libstdc++-devel
    1.23 +BuildRequires: libgcrypt-devel
    1.24 +
    1.25 +%description
    1.26 +ccRTP is a generic, extensible and efficient C++ framework for
    1.27 +developing applications based on the Real-Time Transport Protocol
    1.28 +(RTP) from the IETF. It is based on Common C++ and provides a full
    1.29 +RTP/RTCP stack for sending and receiving of realtime data by the use
    1.30 +of send and receive packet queues. ccRTP supports unicast,
    1.31 +multi-unicast and multicast, manages multiple sources, handles RTCP
    1.32 +automatically, supports different threading models and is generic as
    1.33 +for underlying network and transport protocols.
    1.34 +
    1.35 +%package -n %{_libname}
    1.36 +Group: System/Libraries
    1.37 +Summary: Runtime library for GNU RTP Stack
    1.38 +Provides: %{name} = %{version}-%{release}
    1.39 +
    1.40 +%package -n %{_devname}
    1.41 +Group: Development/Libraries
    1.42 +Summary: Headers and static link library for ccrtp.
    1.43 +Requires: %{_libname} = %{version}
    1.44 +Requires: commoncpp2-devel >= 1.4.0
    1.45 +Requires: libgcrypt-devel
    1.46 +Provides: %{name}-devel = %{version}-%{release}
    1.47 +
    1.48 +%description -n %{_libname}
    1.49 +This package contains the runtime library needed by applications that use
    1.50 +the GNU RTP stack.
    1.51 +
    1.52 +%description -n %{_devname}
    1.53 +This package provides the header files, link libraries, and
    1.54 +documentation for building applications that use GNU ccrtp.
    1.55 +
    1.56 +%prep
    1.57 +%setup
    1.58 +%build
    1.59 +%configure
    1.60 +
    1.61 +make %{?_smp_mflags} LDFLAGS="-s" CXXFLAGS="$RPM_OPT_FLAGS"
    1.62 +
    1.63 +%install
    1.64 +
    1.65 +%makeinstall
    1.66 +rm -rf %{buildroot}/%{_infodir}
    1.67 +
    1.68 +%clean
    1.69 +rm -rf %{buildroot}
    1.70 +
    1.71 +%files -n %{_libname}
    1.72 +%defattr(-,root,root,0755)
    1.73 +%doc AUTHORS COPYING ChangeLog README COPYING.addendum
    1.74 +%{_libdir}/*.so.*
    1.75 +
    1.76 +%files -n %{_devname}
    1.77 +%defattr(-,root,root,0755)
    1.78 +%{_libdir}/*.a
    1.79 +%{_libdir}/*.so
    1.80 +%{_libdir}/*.la
    1.81 +%{_libdir}/pkgconfig/*.pc
    1.82 +%dir %{_includedir}/ccrtp
    1.83 +%{_includedir}/ccrtp/*.h
    1.84 +
    1.85 +%post -n %{_libname} -p /sbin/ldconfig
    1.86 +
    1.87 +%postun -n %{_libname} -p /sbin/ldconfig

mercurial