updated spec to install with xwalk accepted/tizen/ivi/20140729.134706 submit/tizen/20140718.221219
authorKevron Rees <kevron.m.rees@intel.com>
Fri, 18 Jul 2014 22:10:53 +0000 (15:10 -0700)
committerKevron Rees <kevron.m.rees@intel.com>
Fri, 18 Jul 2014 22:10:53 +0000 (15:10 -0700)
Change-Id: Iab689124177903d0f5ea824e498f202f730218b1

packaging/GhostCluster.changes
packaging/GhostCluster.spec

index 7a92d93..2952d60 100644 (file)
@@ -1,3 +1,6 @@
+* Fri Jul 19 2014 <kevron.m.rees@intel.com>
+- Updated spec to install with xwalk
+
 * Tue Feb 04 2014 <kevron.m.rees@intel.com>
 - No need to include websocket plugin
 
index 58b8c18..35e1dba 100644 (file)
@@ -6,9 +6,9 @@ Group:      Applications/System
 License:    Apache 2.0
 URL:        http://www.tizen.org
 Source0:    %{name}-%{version}.tar.gz
-Requires:   wrt-installer
-Requires:   wrt-plugins-ivi
 BuildRequires: zip
+Requires: crosswalk
+Requires: tizen-platform-config
 
 %description
 Example guage cluster for tizen ivi
@@ -24,14 +24,15 @@ rm -rf %{buildroot}
 
 %make_install
 
-%post
-if [ -f /opt/usr/apps/.preinstallWidgets/preinstallDone ]; then
-    wrt-installer -i /opt/usr/apps/.preinstallWidgets/GhostCluster.wgt;
-fi
+%post 
+source %_sysconfdir/tizen-platform.conf
+export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/5000/dbus/user_bus_socket"
+
+su app -c "xwalkctl -i /opt/usr/apps/.preinstallWidgets/GhostCluster.wgt"
 
 %postun
 
-wrt-installer -un GV3ySIINq7.GhostCluster
+su app -c "xwalkctl -u $(su %{MODELLO_INSTALL_USER} -c "xwalkctl" | grep GhostCluster | cut -c 1-32)
 
 %files
 %defattr(-,root,root,-)