packages: gdm/gdm.spec - systemd deps and scripts in package that uses them

baggins baggins at pld-linux.org
Tue Apr 17 19:18:38 CEST 2012


Author: baggins                      Date: Tue Apr 17 17:18:38 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- systemd deps and scripts in package that uses them

---- Files affected:
packages/gdm:
   gdm.spec (1.301 -> 1.302) 

---- Diffs:

================================================================
Index: packages/gdm/gdm.spec
diff -u packages/gdm/gdm.spec:1.301 packages/gdm/gdm.spec:1.302
--- packages/gdm/gdm.spec:1.301	Tue Apr 17 19:16:26 2012
+++ packages/gdm/gdm.spec	Tue Apr 17 19:18:33 2012
@@ -84,7 +84,6 @@
 Requires(pre):	/usr/sbin/groupadd
 Requires(pre):	/usr/sbin/useradd
 Requires(posttrans):	dconf
-Requires(post,preun,postun):	systemd-units >= 38
 Requires:	%{name}-libs = %{epoch}:%{version}-%{release}
 Requires:	/usr/bin/X
 Requires:	accountsservice >= 0.6.12
@@ -95,7 +94,6 @@
 Requires:	hicolor-icon-theme
 Requires:	pam >= 0.99.7.1
 Requires:	polkit-gnome >= 0.93
-Requires:	systemd-units >= 38
 Requires:	which
 Requires:	xinitrc-ng >= 1.0
 Requires:	xorg-app-sessreg
@@ -191,9 +189,11 @@
 Summary(pl.UTF-8):	Skrypt init dla GDM-a
 Group:		X11/Applications
 Requires(post,preun):	/sbin/chkconfig
+Requires(post,preun,postun):	systemd-units >= 38
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Requires:	open
 Requires:	rc-scripts >= 0.4.3.0
+Requires:	systemd-units >= 38
 
 %description init
 Init script for GDM.
@@ -293,12 +293,9 @@
 %post
 %glib_compile_schemas
 %update_icon_cache hicolor
-%systemd_reload
 
 %postun
 %update_icon_cache hicolor
-%systemd_reload
-
 if [ "$1" = "0" ]; then
 	%glib_compile_schemas
 	%userremove xdm
@@ -314,6 +311,10 @@
 /sbin/chkconfig --add gdm
 # -n skips restarting as it would otherise terminate all sessions opened from gdm!
 %service -n gdm restart
+%systemd_reload
+
+%postun init
+%systemd_reload
 
 %preun init
 if [ "$1" = "0" ]; then
@@ -424,6 +425,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.302  2012/04/17 17:18:33  baggins
+- systemd deps and scripts in package that uses them
+
 Revision 1.301  2012/04/17 17:16:26  baggins
 - rel 2
 - better systemd deps
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/gdm/gdm.spec?r1=1.301&r2=1.302



More information about the pld-cvs-commit mailing list