]> git.pld-linux.org Git - packages/gdm2.20.git/commitdiff
- Prereq: /sbin/chkconfig; call chkconfig --del only on remove, not upgrade
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 24 Sep 2001 12:50:31 +0000 (12:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gdm.spec -> 1.38
    gdm2.20.spec -> 1.38

gdm.spec
gdm2.20.spec

index 22cd0406c98f41f228becaaed8b093b0f2ab8e1f..f8e4e1037ca2ac3185232a26d38174eb710871fa 100644 (file)
--- a/gdm.spec
+++ b/gdm.spec
@@ -26,6 +26,7 @@ Requires:     which
 Requires:      /usr/X11R6/bin/sessreg
 Prereq:                scrollkeeper
 Prereq:                shadow
+Prereq:                /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     xdm kdm wdm
 
@@ -90,6 +91,9 @@ gzip -9nf AUTHORS ChangeLog NEWS README TODO
 
 %find_lang %{name} --all-name --with-gnome
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %pre
 /usr/sbin/groupadd -g 55 -r -f xdm
 
@@ -107,10 +111,12 @@ fi
 /usr/bin/scrollkeeper-update
 
 %preun
-if [ -f /var/lock/subsys/gdm ]; then
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/gdm ]; then
                 /etc/rc.d/init.d/gdm stop >&2
+       fi
+       /sbin/chkconfig --del gdm
 fi
-/sbin/chkconfig --del gdm
 
 %postun
 if [ "$1" = "0" ]; then
@@ -121,9 +127,6 @@ if [ "$1" = "0" ]; then
 fi
 /usr/bin/scrollkeeper-update
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc *.gz
index 22cd0406c98f41f228becaaed8b093b0f2ab8e1f..f8e4e1037ca2ac3185232a26d38174eb710871fa 100644 (file)
@@ -26,6 +26,7 @@ Requires:     which
 Requires:      /usr/X11R6/bin/sessreg
 Prereq:                scrollkeeper
 Prereq:                shadow
+Prereq:                /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     xdm kdm wdm
 
@@ -90,6 +91,9 @@ gzip -9nf AUTHORS ChangeLog NEWS README TODO
 
 %find_lang %{name} --all-name --with-gnome
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %pre
 /usr/sbin/groupadd -g 55 -r -f xdm
 
@@ -107,10 +111,12 @@ fi
 /usr/bin/scrollkeeper-update
 
 %preun
-if [ -f /var/lock/subsys/gdm ]; then
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/gdm ]; then
                 /etc/rc.d/init.d/gdm stop >&2
+       fi
+       /sbin/chkconfig --del gdm
 fi
-/sbin/chkconfig --del gdm
 
 %postun
 if [ "$1" = "0" ]; then
@@ -121,9 +127,6 @@ if [ "$1" = "0" ]; then
 fi
 /usr/bin/scrollkeeper-update
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc *.gz
This page took 0.030461 seconds and 4 git commands to generate.