X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=nfs-utils.spec.in;h=17264684a19edbdba8b11bc58d439d3a925a10cf;hp=e135e8189014e38ca17305e5226cfb79fe9d204b;hb=9a85442298a46c364ec71d54719d74eeb16088b8;hpb=1d9510623129714487cc9c804dcc544519fb1caa diff --git a/nfs-utils.spec.in b/nfs-utils.spec.in index e135e81..1726468 100644 --- a/nfs-utils.spec.in +++ b/nfs-utils.spec.in @@ -4,7 +4,7 @@ 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 @@ -35,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