]> git.pld-linux.org Git - packages/hula.git/blobdiff - hula.spec
- fix chkconfig, rc-scripts deps
[packages/hula.git] / hula.spec
index 58a8e8674ccc633f38e2804d3c71212132871c71..2613a04f8d86b9a4cc7bd9574f47d6ef4987bf5f 100644 (file)
--- a/hula.spec
+++ b/hula.spec
@@ -17,9 +17,11 @@ BuildRequires:       libtool
 BuildRequires: openssl-devel
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,postun): /sbin/ldconfig
+Requires(post,preun):  /sbin/chkconfig
 Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
 Requires(pre): /usr/sbin/useradd
+Requires:      rc-scripts
 Provides:      user(hula)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -71,7 +73,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/connmgr/*.la \
        $RPM_BUILD_ROOT%{_libdir}/modweb/*.la
 
 # remove empty or irrelevant doco
-rm -f $RPM_BUILD_ROOT/{ChangeLog,INSTALL,NEWS}
+rm $RPM_BUILD_ROOT/{ChangeLog,INSTALL,NEWS}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -86,7 +88,7 @@ rm -rf $RPM_BUILD_ROOT
 /sbin/chkconfig --add hula
 
 %preun
-if [ "$1" -eq 0 ]; then
+if [ "$1" = 0 ]; then
        %service hula stop
        /sbin/chkconfig --del hula
 fi
This page took 0.081402 seconds and 4 git commands to generate.