from tizen branch
[profile/ivi/GhostCluster.git] / packaging / GhostCluster.spec
index 65fdd55..bc54822 100644 (file)
@@ -1,10 +1,3 @@
-# 
-# Do NOT Edit the Auto-generated Part!
-# Generated by: spectacle version 0.22
-# 
-# >> macros
-# << macros
-
 Name:       GhostCluster
 Summary:    Automotive Meter Cluster Application
 Version:    0.2013.7.22
@@ -14,6 +7,8 @@ License:    Apache 2.0
 URL:        http://www.tizen.org
 Source0:    %{name}-%{version}.tar.gz
 Requires:   automotive-message-broker-plugins-websocket
+Requires:   wrt-installer
+Requires:   wrt-plugins-ivi
 BuildRequires: zip
 
 %description
@@ -22,44 +17,19 @@ Example guage cluster for tizen ivi
 %prep
 %setup -q -n %{name}-%{version}
 
-# >> setup
-# << setup
-
 %build
-# >> build pre
-# << build pre
-
-
 make widget
 
-
-# >> build post
-# << build post
 %install
 rm -rf %{buildroot}
-# >> install pre
-# << install pre
 
 %make_install
 
 %post
-
-wrt-installer -i %{_datadir}/GhostCluster/GhostCluster.wgt
-
-# >> install post
-# << install post
-
-
-
-
-
+if [ -f /opt/usr/apps/.preinstallWidgets/preinstallDone ]; then
+    wrt-installer -i /opt/usr/apps/.preinstallWidgets/GhostCluster.wgt;
+fi
 
 %files
 %defattr(-,root,root,-)
-%{_datadir}/GhostCluster
-#%{_datadir}/applications/GhostCluster.desktop
-#%{_datadir}/pixmaps/GhostCluster.png
-# >> files
-# << files
-
-
+/opt/usr/apps/.preinstallWidgets/GhostCluster.wgt