1 Name: ico-uxf-HomeScreen-sample-app
2 Summary: HomeScreen sample application
6 License: Apache License, Version 2.0
7 URL: http://www.toyota.com
8 Source0: %{name}-%{version}.tar.bz2
11 BuildRequires: pkgconfig(wayland-client) >= 1.0
12 BuildRequires: pkgconfig(glib-2.0)
13 BuildRequires: pkgconfig(eina)
14 BuildRequires: pkgconfig(evas)
15 BuildRequires: pkgconfig(eina)
16 BuildRequires: pkgconfig(edje)
17 BuildRequires: pkgconfig(elementary)
18 BuildRequires: pkgconfig(ecore-wayland)
19 BuildRequires: pkgconfig(ecore-x)
20 BuildRequires: pkgconfig(dbus-1)
21 BuildRequires: pkgconfig(json-glib-1.0)
22 BuildRequires: pkgconfig(aul)
23 BuildRequires: pkgconfig(bundle)
24 BuildRequires: pkgconfig(ail)
25 BuildRequires: libwebsockets-devel
26 BuildRequires: pulseaudio-libs-devel
27 BuildRequires: ico-uxf-weston-plugin-devel
28 BuildRequires: ico-uxf-HomeScreen-devel
29 Requires: weston >= 1.0
30 Requires: ico-uxf-weston-plugin
31 Requires: ico-uxf-HomeScreen
36 Requires: pulseaudio-libs
39 BuildRequires: pkgconfig(evas)
40 BuildRequires: pkgconfig(elementary)
41 BuildRequires: pkgconfig(ecore-wayland)
42 BuildRequires: pkgconfig(ecore-x)
43 BuildRequires: pkgconfig(dbus-1)
44 BuildRequires: pkgconfig(json-glib-1.0)
45 BuildRequires: pkgconfig(aul)
46 BuildRequires: libwebsockets-devel
47 BuildRequires: ico-uxf-weston-plugin-devel
48 BuildRequires: ico-uxf-HomeScreen-devel
49 Requires: ico-uxf-weston-plugin
50 Requires: ico-uxf-HomeScreen
56 Requires: automotive-message-broker
59 BuildRequires: pkgconfig(ecore)
60 BuildRequires: pkgconfig(evas)
61 BuildRequires: pkgconfig(ecore-evas)
62 BuildRequires: pkgconfig(eina)
63 BuildRequires: pkgconfig(elementary)
64 BuildRequires: pkgconfig(ewebkit2)
65 BuildRequires: pkgconfig(wayland-client)
66 BuildRequires: pkgconfig(wayland-cursor)
67 BuildRequires: pkgconfig(wayland-egl)
68 BuildRequires: pkgconfig(wayland-server)
69 BuildRequires: pkgconfig(ecore-wayland)
70 BuildRequires: pkgconfig(glesv2)
71 BuildRequires: pkgconfig(egl)
72 BuildRequires: pkgconfig(cairo)
73 BuildRequires: pkgconfig(pango)
74 BuildRequires: pkgconfig(pangocairo)
75 BuildRequires: pkgconfig(gdk-pixbuf-2.0)
76 BuildRequires: pkgconfig(gobject-2.0)
77 BuildRequires: pkgconfig(glib-2.0)
78 BuildRequires: pkgconfig(gmodule-2.0)
79 BuildRequires: pkgconfig(gthread-2.0)
80 BuildRequires: pkgconfig(dbus-1)
81 BuildRequires: pkgconfig(json-glib-1.0)
82 BuildRequires: pkgconfig(aul)
83 BuildRequires: libwebsockets-devel
84 BuildRequires: ico-uxf-weston-plugin-devel
85 BuildRequires: ico-uxf-HomeScreen-devel
86 BuildRequires: edje-tools
87 #BuildRequires: pkgconfig(opencv)
88 Requires: ico-uxf-weston-plugin
89 Requires: ico-uxf-HomeScreen
97 Requires: mesa-libwayland-egl
98 Requires: ecore-wayland
99 Requires: mesa-libGLESv2
100 Requires: mesa-libEGL
109 Requires: automotive-message-broker
110 #Requires: libopencv2_4
112 #DemoMeterApp.wgt DemoAudioApp.wgt
116 HomeScreen sample application
119 %setup -q -n %{name}-%{version}
126 cd data/;sh make.sh;cd ../
132 # configurations(ico-app-soundsample)
133 %define sound_PREFIX /opt/apps/org.tizen.ico.app-soundsample
135 mkdir -p %{buildroot}%{sound_PREFIX}/bin/
136 mkdir -p %{buildroot}%{sound_PREFIX}/sounds/
137 mkdir -p %{buildroot}%{sound_PREFIX}/res/icons/default/small/
138 mkdir -p %{buildroot}/opt/share/applications/
139 install -m 0644 soundsample_config.txt %{buildroot}%{sound_PREFIX}/res/
140 install -m 0644 org.tizen.ico.app-soundsample.png %{buildroot}%{sound_PREFIX}/res/icons/default/small/
141 install -m 0644 musicbox.wav %{buildroot}%{sound_PREFIX}/sounds/
142 install -m 0644 org.tizen.ico.app-soundsample.desktop %{buildroot}/opt/share/applications/
144 # configurations(ico-app-vicsample)
145 %define vic_PREFIX /opt/apps/org.tizen.ico.app-vicsample
147 mkdir -p %{buildroot}%{vic_PREFIX}/bin/
148 mkdir -p %{buildroot}%{vic_PREFIX}/res/icons/default/small/
149 mkdir -p %{buildroot}/opt/share/applications/
150 install -m 0644 vicsample_config.txt %{buildroot}%{vic_PREFIX}/res/
151 install -m 0644 org.tizen.ico.app-vicsample.png %{buildroot}%{vic_PREFIX}/res/icons/default/small/
152 install -m 0644 org.tizen.ico.app-vicsample.desktop %{buildroot}/opt/share/applications/
154 # configurations(ico-app-samplenavi)
155 %define navi_PREFIX /opt/apps/org.tizen.ico.app-samplenavi
157 mkdir -p %{buildroot}%{navi_PREFIX}/bin/
158 mkdir -p %{buildroot}%{navi_PREFIX}/data/
159 mkdir -p %{buildroot}/opt/share/applications/
160 install -m 0644 data/*.edj %{buildroot}%{navi_PREFIX}/data/
161 install -m 0644 org.tizen.ico.app-samplenavi.desktop %{buildroot}/opt/share/applications/
162 cp -r res %{buildroot}%{navi_PREFIX}/.
164 # configurations(DemoMeterApp.wgt DemoAudioApp.wgt)
165 mkdir -p %{buildroot}/tmp/
166 install -m 0644 wgt/*.wgt %{buildroot}/tmp/
167 #mkdir -p %{buildroot}/opt/apps/homescreen-sample-app/wgt/
168 #install -m 0644 wgt/*.wgt %{buildroot}/opt/apps/homescreen-sample-app/wgt/
169 #install -m 0644 wgt/wgt-install.sh %{buildroot}/opt/apps/homescreen-sample-app/wgt/
170 #install -m 0644 wgt/wgt-uninstall.sh %{buildroot}/opt/apps/homescreen-sample-app/wgt/
173 %defattr(-,root,root,-)
174 # files(ico-app-soundsample)
175 %{sound_PREFIX}/bin/ico-app-soundsample
176 %{sound_PREFIX}/res/soundsample_config.txt
177 %{sound_PREFIX}/res/icons/default/small/org.tizen.ico.app-soundsample.png
178 %{sound_PREFIX}/sounds/musicbox.wav
179 /opt/share/applications/org.tizen.ico.app-soundsample.desktop
181 # files(ico-app-vicsample)
182 %{vic_PREFIX}/bin/ico-app-vicsample
183 %{vic_PREFIX}/res/vicsample_config.txt
184 %{vic_PREFIX}/res/icons/default/small/org.tizen.ico.app-vicsample.png
185 /opt/share/applications/org.tizen.ico.app-vicsample.desktop
187 # files(ico-app-samplenavi)
188 %{navi_PREFIX}/bin/ico-app-samplenavi
189 %{navi_PREFIX}/data/*.edj
191 /opt/share/applications/org.tizen.ico.app-samplenavi.desktop
193 # files(DemoMeterApp.wgt DemoAudioApp.wgt)
195 #/opt/apps/homescreen-sample-app/wgt/*.wgt
196 #/opt/apps/homescreen-sample-app/wgt/wgt-install.sh
197 #/opt/apps/homescreen-sample-app/wgt/wgt-uninstall.sh
200 # install shell(DemoMeterApp.wgt DemoAudioApp.wgt)
201 #sh /opt/apps/homescreen-sample-app/wgt/wgt-install.sh
202 pkgcmd -i -t wgt -p /tmp/DemoMeterApp.wgt -q
203 pkgcmd -i -t wgt -p /tmp/DemoAudioApp.wgt -q
204 #wrt-installer -i /tmp/DemoMeterApp.wgt
205 #wrt-installer -i /tmp/DemoAudioApp.wgt
207 rm -rf /opt/dbspace/.app_info*
210 rm -f /tmp/DemoMeterApp.wgt
211 rm -f /tmp/DemoAudioApp.wgt
214 # uninstall shell(DemoMeterApp.wgt DemoAudioApp.wgt)
215 #sh /opt/apps/homescreen-sample-app/wgt/wgt-uninstall.sh
218 #id=`wrt-launcher -l | grep -e " DemoMeterApp " | sed -e 's/\s\{1,\}/ /g' | cut -d' ' -f3`
219 #wrt-installer -u $id
220 #id=`wrt-launcher -l | grep -e " DemoAudioApp " | sed -e 's/\s\{1,\}/ /g' | cut -d' ' -f3`
221 #wrt-installer -u $id
222 pkgcmd -u -t wgt -n AKsMREAjt9 -q
223 pkgcmd -u -t wgt -n d41dRLC2Qs -q
225 rm -rf /opt/dbspace/.app_info*