summaryrefslogtreecommitdiffstats
path: root/nfs-utils.spec.in
diff options
context:
space:
mode:
authorhjl <hjl>2000-09-27 18:56:26 +0000
committerhjl <hjl>2000-09-27 18:56:26 +0000
commit4420e5d5c5d4f3126200c9f0a54e377504ce5cb5 (patch)
tree385124fa8ba66cd8c8953349fddbe64da8a6b458 /nfs-utils.spec.in
parent3be1d23d7090926e98d7de8b2e96978520811a57 (diff)
downloadnfs-utils-4420e5d5c5d4f3126200c9f0a54e377504ce5cb5.tar.gz
nfs-utils-4420e5d5c5d4f3126200c9f0a54e377504ce5cb5.tar.xz
nfs-utils-4420e5d5c5d4f3126200c9f0a54e377504ce5cb5.zip
2000-09-27 H.J. Lu <hjl@lucon.org>
* nfs-utils.spec.in: Updated to use rpm macros and support RedHat 7.0.
Diffstat (limited to 'nfs-utils.spec.in')
-rw-r--r--nfs-utils.spec.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/nfs-utils.spec.in b/nfs-utils.spec.in
index 40f6c95..156c7c1 100644
--- a/nfs-utils.spec.in
+++ b/nfs-utils.spec.in
@@ -32,14 +32,16 @@ clients which are mounted on that host.
%setup -q
%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure
+%configure
make all
%install
rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT{/sbin,/usr/{sbin,man/man5,man/man8}}
+mkdir -p $RPM_BUILD_ROOT/{/sbin,/usr/sbin}
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man5,man8}
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
-make install install_prefix=$RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/var/lib/nfs
+make install_prefix=$RPM_BUILD_ROOT MANDIR=$RPM_BUILD_ROOT%{_mandir} SBINDIR=$RPM_BUILD_ROOT%{_prefix}/sbin install
install -s -m 755 tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
install -m 755 etc/redhat/nfs.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
install -m 755 etc/redhat/nfslock.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
@@ -85,6 +87,6 @@ fi
/usr/sbin/rpc.nfsd
/usr/sbin/rpc.rquotad
/usr/sbin/showmount
-/usr/man/man?/*
+%{_mandir}/man?/*
%config /etc/rc.d/init.d/nfslock
%doc README