ccrtp/ccrtp.spec

Sun, 08 May 2011 15:46:25 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 08 May 2011 15:46:25 +0200
changeset 12
94a28e1a8def
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

     1 %{!?release: %define release 0}
     2 %{!?version: %define version 1.7.1}
     4 %define _libname libccrtp
     5 %define _devname libccrtp-devel
     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
    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.
    32 %package -n %{_libname}
    33 Group: System/Libraries
    34 Summary: Runtime library for GNU RTP Stack
    35 Provides: %{name} = %{version}-%{release}
    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}
    45 %description -n %{_libname}
    46 This package contains the runtime library needed by applications that use
    47 the GNU RTP stack.
    49 %description -n %{_devname}
    50 This package provides the header files, link libraries, and
    51 documentation for building applications that use GNU ccrtp.
    53 %prep
    54 %setup
    55 %build
    56 %configure
    58 make %{?_smp_mflags} LDFLAGS="-s" CXXFLAGS="$RPM_OPT_FLAGS"
    60 %install
    62 %makeinstall
    63 rm -rf %{buildroot}/%{_infodir}
    65 %clean
    66 rm -rf %{buildroot}
    68 %files -n %{_libname}
    69 %defattr(-,root,root,0755)
    70 %doc AUTHORS COPYING ChangeLog README COPYING.addendum
    71 %{_libdir}/*.so.*
    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
    82 %post -n %{_libname} -p /sbin/ldconfig
    84 %postun -n %{_libname} -p /sbin/ldconfig

mercurial