]> git.pld-linux.org Git - packages/hula.git/commitdiff
- fix chkconfig, rc-scripts deps
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 16 Apr 2006 21:53:53 +0000 (21:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    hula.spec -> 1.6

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.078206 seconds and 4 git commands to generate.