From 4420e5d5c5d4f3126200c9f0a54e377504ce5cb5 Mon Sep 17 00:00:00 2001 From: hjl Date: Wed, 27 Sep 2000 18:56:26 +0000 Subject: [PATCH] 2000-09-27 H.J. Lu * nfs-utils.spec.in: Updated to use rpm macros and support RedHat 7.0. --- ChangeLog | 5 +++++ nfs-utils.spec.in | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21258af..68a13d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-09-27 H.J. Lu + + * nfs-utils.spec.in: Updated to use rpm macros and support + RedHat 7.0. + 2000-09-25 H.J. Lu * configure.in (VERSION): Set to "0.2.1". 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 -- 2.39.5