add missing postun, pre, post for emgd-bin-x package build/2012-07-12.093049
authorWang Quanxian <quanxian.wang@intel.com>
Thu, 12 Jul 2012 09:29:44 +0000 (17:29 +0800)
committerWang Quanxian <quanxian.wang@intel.com>
Thu, 12 Jul 2012 09:29:44 +0000 (17:29 +0800)
Signed-Off-By Quanxian Wang <quanxian.wang@intel.com>

packaging/emgd-bin.changes
packaging/emgd-bin.spec

index 4f2f415..1e57528 100644 (file)
@@ -1,9 +1,11 @@
+* Thu Jul 12 2012 Quanxian Wang <quanxian.wang@intel.com> - 2667
+- Add missing postun, pre, post for emgd-bin-x package.
+
 * Wed Jul 11 2012 Quanxian Wang <quanxian.wang@intel.com> - 2667
 - Adjust emgd-bin.service to be finished before uxlaunch.service
   uxlaunch.service is in graphical.target of systemd which require
   multi-user.target. Put emgd-bin.service in multi-user.service will
   implement this objective.
-  
 
 * Tue Jul 10 2012 Quanxian Wang <quanxian.wang@intel.com> - 2667
 - Typo Error and bug fix for emgd-bin.init
index 1a216e8..94bb27f 100644 (file)
@@ -221,6 +221,7 @@ rm -f /usr/lib/libEGL.so.1.1.*
 
 /sbin/ldconfig
 
+%post x
 mkdir -p /usr/lib/systemd/system/multi-user.target.wants/
 pushd /usr/lib/systemd/system/multi-user.target.wants/
 ln -sf ../emgd-bin.service emgd-bin.service
@@ -233,18 +234,18 @@ fi
 
 %postun
 /sbin/ldconfig
+
+%postun x
 rm -f /usr/lib/systemd/system/multi-user.target.wants/emgd-bin.service
 if [ -x /bin/systemctl ]; then
     systemctl daemon-reload >/dev/null 2>&1 || :
 fi
 
-
-%preun
+%preun x
 if [ -x /bin/systemctl ]; then
     sytemctl stop emgd-bin.service >/dev/null 2>&1 || :
 fi
 
-
 %files common
 %defattr(-,root,root,-)
 %{_docdir}/%{name}/license.txt