]> git.pld-linux.org Git - packages/LPRng.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 24 Feb 2006 15:20:04 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    LPRng.spec -> 1.121

LPRng.spec

index c82e1d47bb24e26e36097df1f1fc1537d9961f82..98cf083505f1f45c1a0aacb885448580fe35f7e3 100644 (file)
@@ -28,12 +28,13 @@ BuildRequires:      automake
 BuildRequires: gettext-devel
 BuildRequires: libtool
 BuildRequires: openssl-devel >= 0.9.7d
-PreReq:                rc-scripts >= 0.2.0
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post):        /sbin/ldconfig
 Requires(post,preun):  /sbin/chkconfig
-Obsoletes:     lpr
+Requires:      rc-scripts >= 0.2.0
 Obsoletes:     cups
 Obsoletes:     cups-clients
+Obsoletes:     lpr
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -217,18 +218,12 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/ldconfig
 /sbin/chkconfig --add lpd
-if [ -f /var/lock/subsys/lpd ]; then
-       /etc/rc.d/init.d/lpd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
-fi
+%service lpd restart "LPRng lpd daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/lpd ]; then
-               /etc/rc.d/init.d/lpd stop 1>&2
-       fi
        /sbin/chkconfig --del lpd
+       %service lpd stop
 fi
 
 %postun -p /sbin/ldconfig
This page took 0.04161 seconds and 4 git commands to generate.