File libosip2.spec of Package libosip2

#
# spec file for package libosip2
#
# 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/
#


Name:           libosip2
BuildRequires:  docbook2x
BuildRequires:  gcc-c++
BuildRequires:  gperf
BuildRequires:  libtool
BuildRequires:  pkg-config
Summary:        Implementation of SIP--RFC 3261
License:        LGPL-2.1+
Group:          Productivity/Networking/Other
Version:        3.5.0
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.fsf.org/software/osip/osip.html
Source:         %name-%version.tar.bz2
Patch:          %name-3.5.0.dif
Patch1:         libosip2-3.5.0-pthread.patch

%description
This is the GNU oSIP library. It has been designed to provide the
Internet community with a simple way to support the Session Initiation
Protocol. SIP is described in the RFC 3261, which is available at
http://www.ietf.org/rfc/rfc3261.txt.

%package devel
Summary:        Implementation of SIP--RFC 3261
Group:          Productivity/Networking/Other
Provides:       libosip2:/usr/include/osip2/osip.h
Requires:       %{name} = %{version} glibc-devel

%description devel
This is the GNU oSIP library. It has been designed to provide the
Internet community with a simple way to support the Session Initiation
Protocol. SIP is described in the RFC 3261, which is available at
http://www.ietf.org/rfc/rfc3261.txt.

%prep
%setup -q
%patch -p1
%patch1

%build
autoreconf -fiv
%configure \
  --enable-pthread \
  --enable-mt \
  --enable-sysv \
  --enable-gperf \
  --disable-static \
  --with-pic
make %{?_smp_mflags}

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

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

%files devel
%defattr(-,root,root)
%{_includedir}/osipparser2
%{_includedir}/osip2
%{_libdir}/lib*.so
%_libdir/pkgconfig/libosip2.pc
%{_mandir}/man1/*

%changelog