]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - nfs-utils.spec.in
2002-01-02 Chip Salzenberg <chip@pobox.com>
[nfs-utils.git] / nfs-utils.spec.in
index 156c7c1124b0a85db935b343b224ff281d4a793a..3a3d65f2bfe702f4d6917470741af1c2df9fd8e5 100644 (file)
@@ -1,7 +1,13 @@
+%define rquotad 0
+%{?do_rquotad:%define rquotad 1}
+
+# We don't use libtool. 
+%define __libtoolize :
+
 Summary: NFS utlilities and supporting daemons for the kernel NFS server.
 Name: nfs-utils
 Version: @VERSION@
-Release: 1
+Release: @RELEASE@
 Source0: ftp://nfs.sourceforge.net/pub/nfs/%{name}-%{version}.tar.gz
 Group: System Environment/Daemons
 Obsoletes: nfs-server
@@ -32,7 +38,14 @@ clients which are mounted on that host.
 %setup -q
 
 %build
-%configure
+CC=%{__cc}; export CC
+CC_FOR_BUILD=gcc; export CC_FOR_BUILD
+%configure \
+%if !%{rquotad}
+       --disable-rquotad \
+%endif
+       --build=%{_build_alias}
+
 make all
 
 %install
@@ -85,8 +98,10 @@ fi
 /usr/sbin/nhfsstone
 /usr/sbin/rpc.mountd
 /usr/sbin/rpc.nfsd
+%if %{rquotad}
 /usr/sbin/rpc.rquotad
+%endif
 /usr/sbin/showmount
 %{_mandir}/man?/*
 %config /etc/rc.d/init.d/nfslock
-%doc README
+%doc README ChangeLog COPYING