--- /dev/null
+Summary: The GNU oSIP library
+Summary(pl): Biblioteka GNU oSIP
+Name: libosip2
+Version: 2.0.1
+Release: 1
+License: LGPL
+Group: Libraries
+Source0: ftp://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz
+# Source0-md5: 8d635913658b40df2bef70070128884a
+Patch0: %{name}-configure.patch
+Patch1: %{name}-automake.patch
+Patch2: %{name}-nolibs.patch
+URL: http://www.fsf.org/software/osip/osip.html
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool >= 1:1.4.3
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is "the GNU oSIP library" (for Omnibus SIP). It has been designed
+to provide the Internet Community a simple way to support the Session
+Initiation Protocol. SIP is described in the RFC2543 which is
+available at http://www.ietf.org/rfc/rfc2543.txt.
+
+%description -l pl
+To jest biblioteka GNU oSIP (Omnibus SIP). Zosta³a zaprojektowana, aby
+dostarczyæ Spo³eczno¶ci Internetowej prost± obs³ugê protoko³u SIP.
+Protokó³ SIP (Session Initiation Protocol) jest opisany w RFC2543.
+
+%package devel
+Summary: The GNU oSIP library - development files
+Summary(pl): Pliki dla programistów u¿ywaj±cych GNU oSIP
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description devel
+Development files for the GNU oSIP library.
+
+%description devel -l pl
+Pliki dla programistów u¿ywaj±cych biblioteki GNU oSIP.
+
+%package static
+Summary: The GNU oSIP library - static version
+Summary(pl): Statyczna biblioteka GNU oSIP
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}
+
+%description static
+Static version of the GNU oSIP library.
+
+%description static -l pl
+Statyczna wersja biblioteki GNU oSIP.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%build
+rm -f scripts/missing
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+ --enable-semaphore \
+ --enable-pthread \
+ --%{?debug:en}%{!?debug:dis}able-debug
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+mv -f $RPM_BUILD_ROOT%{_mandir}/man{1,3}
+mv -f $RPM_BUILD_ROOT%{_mandir}/man3/osip.{1,3}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS BUGS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_includedir}/*
+%{_mandir}/man3/*.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a