# # spec file for package libtirpc (Version 0.1.7) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild BuildRequires: libgssglue-devel pkg-config Name: libtirpc License: Other uncritical OpenSource License; Sun Industry Standards Source License 1.0 Group: System/Libraries AutoReqProv: on Version: 0.1.7 Release: 2 Summary: Transport Independent RPC Library Url: http://nfsv4.bullopensource.org/doc/tirpc_rpcbind.php Source: %{name}-%{version}.tar.bz2 Patch1: libtirpc-0.1.7-netconfig.patch Patch2: libtirpc-0.1.7-gssglue.patch Patch3: libtirpc-0.1.7-svcauthnone.patch Patch4: libtirpc-0.1.7-ppc64.patch Patch5: libtirpc-0.1.7-svcauthdestroy.patch Patch6: libtirpc-0.1.7-xdr_bufferoverlow.patch Patch7: libtirpc-0.1.7-bindresvport_ports.patch Patch8: libtirpc-0.1.7-svc-run.patch Patch9: libtirpc-0.1.7-clnt_raw-mutex.patch Patch10: libtirpc-0.1.7-snprintf.patch Patch11: libtirpc-0.1.7-bindresvport-ntohs.patch Patch12: libtirpc-0.1.7-dgcall-iprecverr.patch Patch13: libtirpc-0.1.7-svc-rtaddr.patch Patch14: libtirpc-0.1.7-arm.patch Patch15: libtirpc-0.1.7-bufoverflow.patch Patch16: libtirpc-0.1.7-libtirpc-pc.patch Patch17: libtirpc-0.1.7-man-install.patch # Patch20: libtirpc-0.1.7-use_sysconfdir.patch Patch21: libtirpc-0.1.7-overflow_fix.patch Patch22: libtirpc-0.1.7-version.patch Patch23: libtirpc-0.1.7-svc_auth_gss_lvalue_fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The Transport Independent RPC library (TI-RPC) is a replacement for the standard SunRPC library in glibc which does not support IPv6 addresses. This implementation allows the support of other transports than UDP and TCP over IPv4 Authors: -------- Gilles Quillard Antoine Fraticelli %package -n libtirpc1 License: Other uncritical OpenSource License; Sun Industry Standards Source License 1.0 Summary: Transport Independent RPC Library Group: System/Libraries %description -n libtirpc1 The Transport Independent RPC library (TI-RPC) is a replacement for the standard SunRPC library in glibc which does not support IPv6 addresses. This implementation allows the support of other transports than UDP and TCP over IPv4 Authors: -------- Gilles Quillard Antoine Fraticelli %package devel License: Other uncritical OpenSource License; Sun Industry Standards Source License 1.0 Summary: Transport Independent RPC Library Group: System/Libraries Requires: libtirpc1 = %{version} %description devel The Transport Independent RPC library (TI-RPC) is a replacement for the standard SunRPC library in glibc which does not support IPv6 addresses. This implementation allows the support of other transports than UDP and TCP over IPv4 Authors: -------- Gilles Quillard Antoine Fraticelli %prep %setup %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 %patch23 -p1 pushd man for f in *.3; do mv $f ${f}t; done popd %build autoreconf -fi ./configure --prefix=%{_prefix} \ --libdir=/%{_lib} \ --sysconfdir=%{_sysconfdir} \ --disable-static \ --enable-gss \ CFLAGS="$RPM_OPT_FLAGS" make %install make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/%{_lib}/libtirpc.la # move devel so link to %{_libdir} rm -f $RPM_BUILD_ROOT/%{_lib}/libtirpc.so mkdir -p $RPM_BUILD_ROOT%{_libdir} ln -s /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtirpc.so.?.?.?) \ $RPM_BUILD_ROOT%{_libdir}/libtirpc.so mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT/%{_libdir} %clean rm -rf $RPM_BUILD_ROOT %post -n libtirpc1 /sbin/ldconfig %postun -n libtirpc1 /sbin/ldconfig %files -n libtirpc1 %defattr(-,root,root) /%{_lib}/libtirpc.so.1* %{_sysconfdir}/netconfig %{_mandir}/man5/netconfig.5.gz %files devel %defattr(-,root,root) %{_libdir}/libtirpc.so %dir /usr/include/tirpc/ /usr/include/tirpc/* /usr/%{_lib}/pkgconfig/* %{_mandir}/man3/* %changelog * Wed Mar 19 2008 mkoenig@suse.de - initial packaging, version 0.1.7 [fate#300607] - apply some fixes/enhancements from Steve Dickson - includes fix for CVE-2007-3999 - set shlib soname version initially to 1.0.7, keeping compatibility with RH - fix some compiling issues