]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - nfs-utils.spec.in
2001-04-18 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / nfs-utils.spec.in
index 156c7c1124b0a85db935b343b224ff281d4a793a..17264684a19edbdba8b11bc58d439d3a925a10cf 100644 (file)
@@ -1,7 +1,10 @@
+# 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 +35,13 @@ clients which are mounted on that host.
 %setup -q
 
 %build
+%if %{_target_cpu} != %{_build_cpu}
+CC=%{__cc}; export CC
+BUILD_CC=gcc; export BUILD_CC
+%configure --build=%{__build_alias}
+%else
 %configure
+%endif
 make all
 
 %install
@@ -89,4 +98,4 @@ fi
 /usr/sbin/showmount
 %{_mandir}/man?/*
 %config /etc/rc.d/init.d/nfslock
-%doc README
+%doc README ChangeLog COPYING