File libortp8.spec of Package libortp8

#
# spec file for package ortp
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define pkg_name ortp

Summary:        Real-time Transport Protocol Stack
Name:           libortp8
Version:        0.20.0
Release:        1
License:        LGPL-2.1+
Group:          System/Libraries
URL:            http://www.linphone.org/eng/documentation/dev/ortp.html
Source:         %{pkg_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkgconfig
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  make

%description
oRTP is a LGPL licensed C library implementing the RTP protocol
(rfc1889). It is available for most unix clones (primilarly Linux and
HP-UX), and Microsoft Windows.

%package -n     libortp-devel
Summary:        Headers, libraries and docs for the oRTP library
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description -n    libortp-devel
oRTP is a LGPL licensed C library implementing the RTP protocol
(rfc1889). It is available for most unix clones (primilarly Linux and
HP-UX), and Microsoft Windows.

This package contains header files and development libraries needed to
develop programs using the oRTP library.

%prep
%setup -q -n %{pkg_name}-%{version}

%build
%configure \
	--enable-gtk-doc=no \
	--disable-static \
	--with-pic

%{__make} %{?_smp_flags}

%install
%makeinstall

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/*.so.8*

%files -n libortp-devel
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/ortp
%{_includedir}/ortp/*.h
%exclude %{_libdir}/*.la

%changelog
openSUSE Build Service is sponsored by