]> 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..3b8172584d0ba1d1e8da8cfe0103beff1132a6d4 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,14 @@ clients which are mounted on that host.
 %setup -q
 
 %build
+%if %{_target_cpu} != %{_build_cpu}
+CC=%{__cc}; export CC
+CXX=%{__cxx}; export CXX
+BUILD_CC=gcc; export BUILD_CC
+%configure --build=%{__build_alias}
+%else
 %configure
+%endif
 make all
 
 %install
@@ -89,4 +99,4 @@ fi
 /usr/sbin/showmount
 %{_mandir}/man?/*
 %config /etc/rc.d/init.d/nfslock
-%doc README
+%doc README ChangeLog COPYING