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