2008-04-05 04:43:51 +02:00
|
|
|
#
|
2011-02-22 13:25:15 +01:00
|
|
|
# spec file for package libtirpc
|
2008-04-05 04:43:51 +02:00
|
|
|
#
|
2016-02-04 13:50:08 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-04-05 04:43:51 +02:00
|
|
|
#
|
2008-09-05 21:56:33 +02:00
|
|
|
# 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.
|
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-08 03:16:17 +01:00
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
Name: libtirpc
|
2015-11-26 10:35:36 +01:00
|
|
|
# src/crypt_client.c and tirpc/rpcsvc/crypt.x have the BSD advertising clause
|
|
|
|
Version: 1.0.1
|
2011-11-30 14:14:20 +01:00
|
|
|
Release: 0
|
2008-04-05 04:43:51 +02:00
|
|
|
Summary: Transport Independent RPC Library
|
2013-04-15 16:52:03 +02:00
|
|
|
License: BSD-4-Clause
|
|
|
|
Group: System/Libraries
|
2013-12-10 10:48:28 +01:00
|
|
|
%if 0%{suse_version} >= 1300
|
|
|
|
BuildRequires: krb5-mini-devel
|
|
|
|
%else
|
2013-11-29 07:05:26 +01:00
|
|
|
BuildRequires: krb5-devel
|
2013-12-10 10:48:28 +01:00
|
|
|
%endif
|
2015-05-07 21:52:27 +02:00
|
|
|
BuildRequires: autoconf
|
2011-12-03 10:07:28 +01:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
2009-12-16 10:47:42 +01:00
|
|
|
Url: http://sourceforge.net/projects/libtirpc/
|
2015-06-29 23:31:36 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-07-08 09:25:01 +02:00
|
|
|
Source1: baselibs.conf
|
2014-12-18 14:26:10 +01:00
|
|
|
Patch0: 000-bindresvport_blacklist.patch
|
2015-05-08 12:53:50 +02:00
|
|
|
# Patch2 is only needed for SLES11
|
|
|
|
Patch2: 002-old-automake.patch
|
2015-11-26 10:35:36 +01:00
|
|
|
Patch5: 005-libtirpc-1.0.2-rc1.patch
|
2016-04-04 13:47:30 +02:00
|
|
|
Patch6: 006-Remove-old-meanwhile-wrong-comment-about-FD_SETSIZE-.patch
|
|
|
|
Patch7: 007-Change-rtime-function-to-use-poll-instead-of-select.patch
|
|
|
|
Patch8: 008-Add-parameters-to-local-prototypes-to-fix-compiler-w.patch
|
|
|
|
Patch9: 009-makefd_xprt-checks-that-the-filedesriptor-is-lower-t.patch
|
|
|
|
Patch10: 010-The-goto-again-statement-was-an-left-over-from-the-p.patch
|
|
|
|
Patch11: 011-Fix-typo-in-src-libtirpc.map-which-prevents-that-key.patch
|
|
|
|
Patch12: 012-libtirpc-needs-rpcsvc-nis.h-for-compiling-but-does-n.patch
|
|
|
|
Patch13: 013-If-we-don-t-compile-in-YP-support-don-t-include-YP-h.patch
|
|
|
|
Patch14: 014-Add-des_crypt.c-and-des_impl.c-to-become-independent.patch
|
|
|
|
Patch15: 015-Fix-includes-to-compile-without-deprecated-glibc-fun.patch
|
2015-05-07 21:52:27 +02:00
|
|
|
Patch25: patch6_7.diff
|
2014-12-18 14:26:10 +01:00
|
|
|
# Patch37 is only needed on openSUSE >= 13.1, SLE >= 12
|
2014-01-14 06:16:50 +01:00
|
|
|
Patch37: libtirpc-new-path-rpcbindsock.patch
|
2017-08-03 10:16:24 +02:00
|
|
|
Patch38: decls.patch
|
|
|
|
Patch39: explicit_bzero.patch
|
2008-04-05 04:43:51 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-11-26 10:35:36 +01:00
|
|
|
%define debug_package_requires libtirpc3 = %{version}-%{release}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%package -n libtirpc3
|
2008-04-05 04:43:51 +02:00
|
|
|
Summary: Transport Independent RPC Library
|
2013-04-15 16:52:03 +02:00
|
|
|
Group: System/Libraries
|
2016-02-04 13:50:08 +01:00
|
|
|
Requires: libtirpc-netconfig >= %{version}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%description -n libtirpc3
|
2008-04-05 04:43:51 +02:00
|
|
|
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
|
|
|
|
|
2016-02-04 13:50:08 +01:00
|
|
|
%package netconfig
|
|
|
|
Summary: Netconfig configuration file for TI-RPC Library
|
|
|
|
Group: System/Base
|
|
|
|
|
|
|
|
%description netconfig
|
|
|
|
This RPM contains the netconfig configuration file and manual page for
|
|
|
|
the TI-RPC Library.
|
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
%package devel
|
2011-12-08 03:16:17 +01:00
|
|
|
# src/crypt_client.c tirpc/spinlock.h and tirpc/rpcsvc/crypt.x have the BSD
|
|
|
|
# advertising clause
|
2008-04-05 04:43:51 +02:00
|
|
|
Summary: Transport Independent RPC Library
|
2008-09-05 21:56:33 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-04-15 16:52:03 +02:00
|
|
|
Requires: glibc-devel
|
2015-11-26 10:35:36 +01:00
|
|
|
Requires: libtirpc3 = %{version}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%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
|
2015-06-29 23:31:36 +02:00
|
|
|
%setup -q -n %name-%version
|
2014-12-18 14:26:10 +01:00
|
|
|
%patch0 -p0
|
2015-06-29 23:31:36 +02:00
|
|
|
%patch2 -p1
|
2015-05-07 21:52:27 +02:00
|
|
|
%patch5 -p1
|
2016-04-04 13:47:30 +02:00
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
2015-05-07 21:52:27 +02:00
|
|
|
%patch25 -p1
|
2014-12-18 14:26:10 +01:00
|
|
|
%if 0%{suse_version} >= 1310
|
2014-01-14 06:16:50 +01:00
|
|
|
%patch37 -p1
|
2014-12-18 14:26:10 +01:00
|
|
|
%endif
|
2017-08-03 10:16:24 +02:00
|
|
|
%patch38 -p1
|
|
|
|
%patch39 -p1
|
2011-06-17 18:30:36 +02:00
|
|
|
|
2008-04-05 04:43:51 +02:00
|
|
|
%build
|
2010-07-23 21:42:09 +02:00
|
|
|
autoreconf -fiv
|
2013-08-26 14:00:59 +02:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-pic \
|
2015-05-07 21:52:27 +02:00
|
|
|
%if 0%{suse_version} < 1200
|
|
|
|
--disable-gssapi \
|
|
|
|
%endif
|
|
|
|
--libdir=/%{_lib}
|
2010-11-01 09:28:04 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%install
|
2015-05-07 21:52:27 +02:00
|
|
|
# Don't strip .symtab to allow debugging
|
|
|
|
export STRIP_KEEP_SYMTAB=libtirpc*.so*
|
|
|
|
# NO_BRP_CHECK_ROOTFS is for SLES11 only, but does not harm for Factory
|
|
|
|
export NO_BRP_CHECK_ROOTFS=true
|
2008-04-05 04:43:51 +02:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2015-11-26 10:35:36 +01:00
|
|
|
# move devel so link to _libdir
|
2008-04-05 04:43:51 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
2009-03-17 20:15:01 +01:00
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
|
2010-07-23 21:42:09 +02:00
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/%{name}.{la,so}
|
|
|
|
mv -v $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}
|
2008-04-05 04:43:51 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%post -n libtirpc3 -p /sbin/ldconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%postun -n libtirpc3 -p /sbin/ldconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
|
2015-11-26 10:35:36 +01:00
|
|
|
%files -n libtirpc3
|
2008-04-05 04:43:51 +02:00
|
|
|
%defattr(-,root,root)
|
2015-11-26 10:35:36 +01:00
|
|
|
/%{_lib}/libtirpc.so.3*
|
2016-02-04 13:50:08 +01:00
|
|
|
|
|
|
|
%files netconfig
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config %{_sysconfdir}/netconfig
|
2008-04-05 04:43:51 +02:00
|
|
|
%{_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
|