forked from rpms/rpcbind
Spec reviewed (bz 228894)
This commit is contained in:
parent
0f1e0e3a3a
commit
434ac98bab
17
rpcbind.spec
17
rpcbind.spec
@ -13,10 +13,9 @@ Source0: http://nfsv4.bullopensource.org/tarballs/rpcbind/rpcbind-0.1.4.t
|
||||
Source1: rpcbind.init
|
||||
|
||||
BuildRequires: automake, autoconf, libtool
|
||||
BuildRequires: libtirpc-devel
|
||||
BuildRequires: libtirpc-devel quota
|
||||
Requires(post): /sbin/chkconfig
|
||||
Requires(post): /sbin/chkconfig
|
||||
Requires: libtirpc quota
|
||||
|
||||
Patch1: rpcbind-0.1.4-compile.patch
|
||||
Patch2: rpcbind-0.1.4-debug.patch
|
||||
@ -45,8 +44,8 @@ CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE`"
|
||||
|
||||
autoreconf -fisv
|
||||
%configure CFLAGS="$CFLAGS" LDFLAGS="-pie" \
|
||||
--enable-warmstarts \
|
||||
--enable-debug
|
||||
--enable-warmstarts \
|
||||
--enable-debug
|
||||
|
||||
make all
|
||||
|
||||
@ -68,12 +67,12 @@ rm -rf %{buildroot}
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
service rpcbind stop > /dev/null 2>&1
|
||||
/sbin/chkconfig --del %{name}
|
||||
service rpcbind stop > /dev/null 2>&1
|
||||
/sbin/chkconfig --del %{name}
|
||||
fi
|
||||
%postun
|
||||
if [ "$1" -ge "1" ]; then
|
||||
service rpcbind condrestart > /dev/null 2>&1
|
||||
service rpcbind condrestart > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
%files
|
||||
@ -85,6 +84,6 @@ fi
|
||||
%config %{_initdir}/rpcbind
|
||||
|
||||
%changelog
|
||||
* Wed Aug 9 2006 Steve Dickson <steved@redhat.com> 0.1.4-1
|
||||
* Wed Feb 21 2007 Steve Dickson <steved@redhat.com> 0.1.4-1
|
||||
- Initial commit
|
||||
|
||||
- Spec reviewed (bz 228894)
|
||||
|
Loading…
Reference in New Issue
Block a user