# # spec file for package libtirpc # # Copyright (c) 2014 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 tarversion 0.2.4-rc2 Name: libtirpc # src/crypt_client.c tirpc/spinlock.h and tirpc/rpcsvc/crypt.x have the BSD # advertising clause Version: 0.2.4 Release: 1.1 Summary: Transport Independent RPC Library License: BSD-4-Clause Group: System/Libraries #%if 0%{suse_version} >= 1300 #BuildRequires: krb5-mini-devel #%else #BuildRequires: krb5-devel #%endif #BuildRequires: libtool #BuildRequires: pkg-config Url: http://sourceforge.net/projects/libtirpc/ # http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{tarversion}.tar.bz2 Source: %{name}-%{tarversion}.tar.bz2 Source1: baselibs.conf Patch21: libtirpc-clnt_broadcast_fix.patch Patch22: libtirpc-rpc_broadcast_misformed_replies.patch Patch31: libtirpc-getpmaphandle.patch Patch32: libtirpc-pmap-setunset.patch Patch34: libtirpc-bindresvport_blacklist.patch Patch35: libtirpc-clntunix_create.patch Patch36: libtirpc-misc-segfaults.patch Patch37: libtirpc-new-path-rpcbindsock.patch Patch38: libtirpc-taddr2uaddr-local.patch Patch39: libtirpc-getbroadifs-crash.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define debug_package_requires libtirpc1 = %{version}-%{release} BuildArch: i486 %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 %package -n libtirpc1 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 %package devel # src/crypt_client.c tirpc/spinlock.h and tirpc/rpcsvc/crypt.x have the BSD # advertising clause Summary: Transport Independent RPC Library Group: Development/Libraries/C and C++ Requires: glibc-devel 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 %prep %setup -q -n %name-%tarversion %patch21 -p1 %patch22 -p1 %patch31 -p1 %patch32 -p1 %patch34 -p1 %patch35 -p1 %patch36 -p1 %patch37 -p1 %patch38 -p1 %patch39 -p1 mkdir m4 %build autoreconf -fiv %configure --disable-static \ --with-pic \ --libdir=/%{_lib} \ --enable-gss %{__make} %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT # move devel so link to %{_libdir} mkdir -p $RPM_BUILD_ROOT%{_libdir} %{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so %{__rm} -v %{buildroot}/%{_lib}/%{name}.{la,so} mv -v $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT/%{_libdir} %clean rm -rf $RPM_BUILD_ROOT %post -n libtirpc1 -p /sbin/ldconfig %postun -n libtirpc1 -p /sbin/ldconfig %files -n libtirpc1 %defattr(-,root,root) %config %{_sysconfdir}/netconfig /%{_lib}/libtirpc.so.1* %{_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 * Fri Jan 31 2014 okir@suse.com - Prevent a segfault of 'rpcinfo -b' on systems with tuntap devices (bnc#861577). Added: libtirpc-getbroadifs-crash.patch * Fri Jan 10 2014 okir@suse.com - taddr2uaddr would return trailing garbage for AF_LOCAL addresses (libtirpc-taddr2uaddr-local.patch) * Thu Jan 9 2014 okir@suse.com - Fix a segfault in clntunix_create (libtirpc-clntunix_create.patch) - Fix misc segfaults in rpcb_* function (libtirpc-misc-segfaults.patch) - Fix _PATH_RPCBSOCK to match rpcbind behavior under systemd (libtirpc-new-path-rpcbindsock.patch) * Mon Dec 2 2013 nfbrown@suse.com - Change BuildDepends from krb5-devel to krb5-mini-devel for those releases which provide it as the later is sufficient and has fewer down-stream dependencies. * Wed Nov 13 2013 nfbrown@suse.com - Use krb5 rather than gssglue to provide gss access routines. Both krb5 and gssglue provide routines of the same name, and both can get linked into rpc.gssd, resulting in some confusion. Upstream support seems to be leaning heavily towards avoiding libgssglue. nfs-utils is built without it, and best to build libtirpc without it. (bnc#841788) * Mon Aug 19 2013 okir@suse.com - Updated to latest upstream revision, and removed libtirpc-revert-des_crypt.patch which is now upstream - Verified that the bugfix for bnc#702472 is in upstream - verified that SLE patches are present (bnc#831296) * Mon Apr 15 2013 mmeister@suse.com - Added url as source. Please see http://en.opensuse.org/SourceUrls * Thu Dec 8 2011 cfarrell@suse.com - license update: BSD-4-Clause Remove deprecated rpm license string. Use SPDX syntax. Highlight BSD-4-Clause (advertising clause) nature of package * Wed Dec 7 2011 aj@suse.de - Update license (bnc#735008). * Wed Nov 30 2011 coolo@suse.com - add libtool as buildrequire to avoid implicit dependency * Fri Jul 8 2011 coolo@novell.com - add baselibs.conf to allow pam-32bit to link against it * Fri Jun 17 2011 aj@suse.de - Fix library with reverting a patch in 0.22 release (libtirpc-revert-des_crypt.patch) * Tue Jun 14 2011 aj@suse.de - Update to libtirpc 0.22 which brings (compared to latest release): * various bugfixes * Replaces SISL files with BSD 3-clause - Remove patch libtirpc-use-correct-source-addr-on-replies.patch since it's part of the 0.22 release. * Tue Feb 22 2011 nfbrown@novell.com - Use correct source address on replies [bnc#587934,bnc#587811] - Prevent bindresvport from binding to blacklisted ports [bnc#579315] * Sun Oct 31 2010 jengelh@medozas.de - Use %%_smp_mflags * Wed Sep 29 2010 max@novell.com - Fix showmount -e hostname (bnc#633007). * Wed Sep 15 2010 max@novell.com - Fix interoperability of libtirpc with the old portmapper: * Add libtirpc-getpmaphandle.patch * Add libtirpc-pmap-setunset.patch * bnc#633007 * Thu May 27 2010 cristian.rodriguez@opensuse.org - Update to a current git snapshot, important fixes: * don't call abort() in the AUTH_UNIX creation codepaths * Support 64-bit bit mask operations in svc_getreqset() * Automount with nis maps crashes and generates a core * memory leaks in rpcb_clnt.c:add_cache() and getclnthandle() * Wed Dec 16 2009 ro@suse.de - update to version 0.2.1 which integrates the fixes previously in single patches from git and works with current nfs-client recent changes include: - rpcb_getaddr: Handle only "udp" and "tcp" netids when using PMAP_GETPORT - rpcb_getaddr: Always do PMAP_GETPORT first for NC_INET transports - getnetconfig: Fix NC_BADFILE return from getnetconfigent(3t) - Added HAVE_LIBGSSAPI defines around gss code so the --disble-gss configure option would work - rpcb_clnt: RPC_PROGNOTREGISTERED is a permanent error - clnt_dg: Fix infinite loop when datagram call times out * Fri Mar 13 2009 crrodriguez@suse.de - fix -devel package dependencies * Mon Nov 17 2008 mkoenig@suse.de - Fix a bug in clnt broadcast and handle misformed rpcbind replies [bnc#436038] * Wed Oct 22 2008 mrueckert@suse.de - fix debug_packages_requires define * Wed Oct 1 2008 mkoenig@suse.de - add recent patches from git which fix some more bugs * fix __rpc_getconfip * fix getpeereid * svc_getcaller_netbuf macro seems broken * introduce __rpc_set_netbuf helper * kill map_ipv4_to_ipv6 * Fix xp_raddr handling in svc_fd_create etc * fix for taddr2addr conversion bug of local addresses [bnc#426883] * Tue Sep 2 2008 mkoenig@suse.de - update to version 0.1.9 * several bugfixes - fix rpc_broadcast [bnc#421950] - fix ipv4+ipv6 binding [bnc#421976] - removed patches libtirpc-0.1.7-arm.patch libtirpc-0.1.7-bindresvport-ntohs.patch libtirpc-0.1.7-bindresvport_ports.patch libtirpc-0.1.7-bufoverflow.patch libtirpc-0.1.7-clnt_raw-mutex.patch libtirpc-0.1.7-dgcall-iprecverr.patch libtirpc-0.1.7-gssglue.patch libtirpc-0.1.7-libtirpc-pc.patch libtirpc-0.1.7-man-install.patch libtirpc-0.1.7-netconfig.patch libtirpc-0.1.7-ppc64.patch libtirpc-0.1.7-snprintf.patch libtirpc-0.1.7-svcauthdestroy.patch libtirpc-0.1.7-svc_auth_gss_lvalue_fix.patch libtirpc-0.1.7-svcauthnone.patch libtirpc-0.1.7-svc-rtaddr.patch libtirpc-0.1.7-svc-run.patch libtirpc-0.1.7-version.patch libtirpc-0.1.7-xdr_bufferoverlow.patch * Fri Aug 1 2008 ro@suse.de - fix requires for debuginfo package * 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