File libosip2.spec of Package libosip2.4662

#
# spec file for package libosip2
#
# Copyright (c) 2017 SUSE LINUX 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
Patch2:         SIP_body_len_underflow.patch
Patch3:         0001-Patch-2.1-Fixes-heap-buffer-overflow-in-osip_body_to_s.patch
Patch4:         0001-Patch-1-Fixes-heap-buffer-overflow-in-_osip_message_to_str.patch
Patch5:         0001-Patch-3-Fixes-heap-buffer-overflow-in-osip_clrncpy.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
%patch2 -p2
%patch3
%patch4
%patch5

%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
openSUSE Build Service is sponsored by