-# TODO:
-# - idmapd problematic (needed in both, server and client)
-# - gss daemons, main or separate package?
#
# Conditional build:
%bcond_without nfs4 # without NFSv4 support
Summary(uk): õÔÉ̦ÔÉ ÄÌÑ NFS ÔÁ ÄÅÍÏÎÉ Ð¦ÄÔÒÉÍËÉ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ ÑÄÒÁ
Name: nfs-utils
Version: 1.0.7
-Release: 2.1
+Release: 2.2
License: GPL
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/nfs/%{name}-%{version}.tar.gz
BuildRequires: libevent-devel
BuildRequires: librpcsecgss-devel
BuildRequires: nfsidmap-devel
+Requires: %{name}-common = %{version}-%{release}
%endif
BuildRequires: libwrap-devel
PreReq: rc-scripts >= 0.4.0
PreReq: rc-scripts
Requires(post,preun): /sbin/chkconfig
Requires: psmisc
+%if %{with nfs4}
+Requires: %{name}-common = %{version}-%{release}
+%endif
Provides: nfsclient
Provides: nfs-server-clients
Obsoletes: nfsclient
poprzez NFS. Rezultaty s± u¿ywane przez quota(1), aby wy¶wietliæ quotê
dla zdalnego systemu plików.
+%package common
+Summary: Common programs for NFS
+Summary(pl): Wspólne programy do obs³ugi NFS
+Group: Networking
+
+%description common
+Common programs for NFS.
+
+%description common -l pl
+Wspólne programy do obs³ugi NFS.
+
%prep
%setup -q -a1
%patch0 -p1
%{_mandir}/man8/showmount.8*
%if %{with nfs4}
-%attr(755,root,root) %{_sbindir}/rpc.idmapd
%attr(755,root,root) %{_sbindir}/rpc.gssd
-%attr(660,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/idmapd.conf
-%{_mandir}/man[58]/*idmap*
%{_mandir}/man8/rpc.gssd*
%{_mandir}/man8/gssd*
%endif
#%attr(754,root,root) /etc/rc.d/init.d/rquotad
#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rquotad
#%%{_mandir}/man8/rpc.rquotad.8*
+
+%if %{with nfs4}
+%files common
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/rpc.idmapd
+%attr(660,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/idmapd.conf
+%{_mandir}/man[58]/*idmap*
+%endif