Made changes per review
This commit is contained in:
parent
c6715076e1
commit
0f1e0e3a3a
@ -16,7 +16,7 @@ BuildRequires: automake, autoconf, libtool
|
||||
BuildRequires: libtirpc-devel
|
||||
Requires(post): /sbin/chkconfig
|
||||
Requires(post): /sbin/chkconfig
|
||||
Requires: libtirpc
|
||||
Requires: libtirpc quota
|
||||
|
||||
Patch1: rpcbind-0.1.4-compile.patch
|
||||
Patch2: rpcbind-0.1.4-debug.patch
|
||||
@ -46,8 +46,7 @@ CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE`"
|
||||
autoreconf -fisv
|
||||
%configure CFLAGS="$CFLAGS" LDFLAGS="-pie" \
|
||||
--enable-warmstarts \
|
||||
--enable-debug \
|
||||
--prefix=%{buildroot}
|
||||
--enable-debug
|
||||
|
||||
make all
|
||||
|
||||
@ -62,7 +61,7 @@ make DESTDIR=%{buildroot} install
|
||||
install -m 755 ${RPM_SOURCE_DIR}/rpcbind.init ${RPM_BUILD_ROOT}%{_initdir}/rpcbind
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
/sbin/chkconfig --add %{name}
|
||||
@ -76,7 +75,6 @@ fi
|
||||
if [ "$1" -ge "1" ]; then
|
||||
service rpcbind condrestart > /dev/null 2>&1
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user