1 Name: ico-uxf-homescreen-sample-apps
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(ecore)
14 BuildRequires: pkgconfig(eina)
15 BuildRequires: pkgconfig(evas)
16 BuildRequires: pkgconfig(eina)
17 BuildRequires: pkgconfig(edje)
18 BuildRequires: pkgconfig(elementary)
19 BuildRequires: pkgconfig(ecore-wayland)
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: libpulse-devel
26 BuildRequires: ico-uxf-weston-plugin-devel
27 BuildRequires: ico-uxf-homescreen-system-controller-devel >= 0.9.01
28 BuildRequires: ico-uxf-utilities-devel
29 BuildRequires: pkgconfig(capi-appfw-application)
30 Requires: weston >= 1.2
31 Requires: ico-uxf-weston-plugin
32 Requires: ico-uxf-homescreen >= 0.9.01
33 Requires: weston-ivi-shell-clients
39 Requires: capi-appfw-application
40 Requires: ico-uxf-utilities
43 BuildRequires: pkgconfig(evas)
44 BuildRequires: pkgconfig(elementary)
45 BuildRequires: pkgconfig(ecore-wayland)
46 BuildRequires: pkgconfig(edbus)
47 BuildRequires: pkgconfig(dbus-1)
48 BuildRequires: pkgconfig(json-glib-1.0)
49 BuildRequires: pkgconfig(aul)
50 BuildRequires: ico-uxf-weston-plugin-devel
51 BuildRequires: ico-uxf-homescreen-system-controller-devel >= 0.9.01
52 BuildRequires: ico-uxf-utilities-devel >= 0.9.04
53 BuildRequires: pkgconfig(capi-appfw-application)
54 Requires: weston >= 1.2
55 Requires: ico-uxf-weston-plugin
56 Requires: ico-uxf-homescreen >= 0.9.01
62 Requires: automotive-message-broker >= 0.10.804
63 Requires: capi-appfw-application
65 Requires: ico-uxf-utilities >= 0.9.04
66 Requires: ico-vic-amb-plugin >= 0.9.4
68 #ico-app-miscellaneous
72 HomeScreen sample application
75 %setup -q -n %{name}-%{version}
87 # create tizen package metadata related directories
88 mkdir -p %{buildroot}%{_datadir}/packages/
89 mkdir -p %{buildroot}%{_datadir}/icons/default/small
91 # configurations(ico-app-soundsample)
92 %define sound_PREFIX /usr/apps/org.tizen.ico.app-soundsample
94 mkdir -p %{buildroot}%{sound_PREFIX}/bin/
95 mkdir -p %{buildroot}%{sound_PREFIX}/sounds/
96 mkdir -p %{buildroot}%{sound_PREFIX}/res/icons/default/small/
97 mkdir -p %{buildroot}%{sound_PREFIX}/res/images/
98 install -m 0644 ico-app-soundsample/soundsample_config.txt %{buildroot}%{sound_PREFIX}/res/
99 install -m 0644 ico-app-soundsample/sound_bg.png %{buildroot}%{sound_PREFIX}/res/images/
100 install -m 0644 ico-app-soundsample/org.tizen.ico.app-soundsample.png %{buildroot}%{sound_PREFIX}/res/icons/default/small/
101 install -m 0644 ico-app-soundsample/musicbox.wav %{buildroot}%{sound_PREFIX}/sounds/
102 install -m 0644 ico-app-soundsample/org.tizen.ico.app-soundsample.xml %{buildroot}%{_datadir}/packages/
104 # configurations(ico-app-vicsample)
105 %define vic_PREFIX /usr/apps/org.tizen.ico.app-vicsample
107 mkdir -p %{buildroot}%{vic_PREFIX}/bin/
108 mkdir -p %{buildroot}%{vic_PREFIX}/res/icons/default/small/
109 mkdir -p %{buildroot}%{vic_PREFIX}/res/images/
110 install -m 0644 ico-app-vicsample/vicsample_config.txt %{buildroot}%{vic_PREFIX}/res/
111 install -m 0644 ico-app-vicsample/vicinfo_bg.png %{buildroot}%{vic_PREFIX}/res/images/
112 install -m 0644 ico-app-vicsample/org.tizen.ico.app-vicsample.png %{buildroot}%{vic_PREFIX}/res/icons/default/small/
113 install -m 0644 ico-app-vicsample/org.tizen.ico.app-vicsample.xml %{buildroot}%{_datadir}/packages/
115 # configurations(ico-app-miscellaneous)
116 # install tizen package metadata for weston-terminal
117 install -m 0644 ico-app-miscellaneous/terminal.xml %{buildroot}%{_datadir}/packages/
119 # install browser package metadata for MiniBrowser
120 mkdir -p %{buildroot}%{_bindir}
121 install -m 0644 ico-app-miscellaneous/browser.xml %{buildroot}%{_datadir}/packages/
122 install -m 0644 ico-app-miscellaneous/browser.png %{buildroot}%{_datadir}/icons/default/small/
123 install -m 0755 ico-app-miscellaneous/browser %{buildroot}%{_bindir}
125 # install tizen package metadata for weekeyboard
126 install -m 0644 ico-app-miscellaneous/weekeyboard.xml %{buildroot}%{_datadir}/packages/
129 %manifest %{name}.manifest
130 %defattr(-,root,root,-)
131 # files(ico-app-soundsample)
132 %{sound_PREFIX}/bin/ico-app-soundsample
133 %{sound_PREFIX}/res/soundsample_config.txt
134 %{sound_PREFIX}/res/images/sound_bg.png
135 %{sound_PREFIX}/res/icons/default/small/org.tizen.ico.app-soundsample.png
136 %{sound_PREFIX}/sounds/musicbox.wav
137 %{_datadir}/packages/org.tizen.ico.app-soundsample.xml
139 # files(ico-app-vicsample)
140 %{vic_PREFIX}/bin/ico-app-vicsample
141 %{vic_PREFIX}/res/vicsample_config.txt
142 %{vic_PREFIX}/res/images/vicinfo_bg.png
143 %{vic_PREFIX}/res/icons/default/small/org.tizen.ico.app-vicsample.png
144 /usr/share/packages/org.tizen.ico.app-vicsample.xml
146 # files(ico-app-miscellaneous)
148 %{_datadir}/packages/browser.xml
149 %{_datadir}/packages/terminal.xml
150 %{_datadir}/packages/weekeyboard.xml
151 %{_datadir}/icons/default/small/browser.png
155 # This icon exists in main weston package so we don't package it in.
156 # Create a symbolic link to it instead.
157 ln -s %{_datadir}/weston/terminal.png %{_datadir}/icons/default/small/
158 # Update the app database.
159 %{_bindir}/pkginfo --imd /usr/share/packages/org.tizen.ico.app-soundsample.xml
160 %{_bindir}/pkginfo --imd /usr/share/packages/org.tizen.ico.app-vicsample.xml
161 %{_bindir}/pkginfo --imd /usr/share/packages/browser.xml
162 %{_bindir}/pkginfo --imd /usr/share/packages/terminal.xml
165 # Update the app database.
166 %{_bindir}/pkginfo --rmd /usr/share/packages/org.tizen.ico.app-soundsample.xml
167 %{_bindir}/pkginfo --rmd /usr/share/packages/org.tizen.ico.app-vicsample.xml
168 %{_bindir}/pkginfo --rmd /usr/share/packages/browser.xml
169 %{_bindir}/pkginfo --rmd /usr/share/packages/terminal.xml
173 rm -f /usr/share/applications/org.tizen.ico.app-soundsample.desktop
174 rm -f /usr/share/applications/org.tizen.ico.app-vicsample.desktop
175 rm -f /usr/share/applications/browser.desktop
176 rm -f /usr/share/applications/terminal.desktop
177 rm -f %{_datadir}/icons/default/small/terminal.png