]> git.pld-linux.org Git - packages/gpm.git/commitdiff
- use %service auto/ac/gpm-1_20_1-7
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 27 Feb 2006 23:35:08 +0000 (23:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gpm.spec -> 1.131

gpm.spec

index 8db26ecfd4a9cb36c1440c77c6105913e1fba637..267e59ab5754270e28119ab8ff5d56d96f64b922 100644 (file)
--- a/gpm.spec
+++ b/gpm.spec
@@ -40,6 +40,7 @@ BuildRequires:        automake
 BuildRequires: bison
 BuildRequires: gawk
 BuildRequires: ncurses-devel >= 5.0
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: texinfo
 Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
@@ -112,8 +113,8 @@ emacs, Midnight Commander 
 Summary:       GPM libraries
 Summary(pl):   Biblioteki GPM
 Group:         Libraries
-Conflicts:     gpm < 1.19.3-7
 Obsoletes:     libgpm1
+Conflicts:     gpm < 1.19.3-7
 
 %description libs
 This package contains library files neccessary to run most of
@@ -257,17 +258,11 @@ rm -rf $RPM_BUILD_ROOT
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 /sbin/chkconfig --add gpm
-if [ -f /var/lock/subsys/gpm ]; then
-       /etc/rc.d/init.d/gpm restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/gpm start\" to start gpm daemon."
-fi
+%service gpm restart "gpm daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/gpm ]; then
-               /etc/rc.d/init.d/gpm stop >&2
-       fi
+       %service gpm stop
        /sbin/chkconfig --del gpm
 fi
 
This page took 0.029608 seconds and 4 git commands to generate.