blob: 9d70f05f78ba643e9c66277ab1ae5bf957017df3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
Name: ico-uxf-homescreen-sample-apps
Summary: HomeScreen sample application
Version: 0.9.6
Release: 3.1
Group: System/GUI
License: Apache License, Version 2.0
URL: http://www.toyota.com
Source0: %{name}-%{version}.tar.bz2
#ico-app-soundsample
BuildRequires: pkgconfig(wayland-client) >= 1.0
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(ecore-wayland)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(ail)
BuildRequires: libpulse-devel
BuildRequires: ico-uxf-weston-plugin-devel
BuildRequires: ico-uxf-homescreen-system-controller-devel >= 0.9.01
BuildRequires: ico-uxf-utilities-devel
BuildRequires: pkgconfig(capi-appfw-application)
Requires: weston >= 1.2
Requires: ico-uxf-weston-plugin
Requires: ico-uxf-homescreen >= 0.9.01
Requires: ecore
Requires: elementary
Requires: evas
Requires: glib2
Requires: libpulse
Requires: capi-appfw-application
Requires: ico-uxf-utilities
#ico-app-vicsample
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(ecore-wayland)
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(aul)
BuildRequires: ico-uxf-weston-plugin-devel
BuildRequires: ico-uxf-homescreen-system-controller-devel >= 0.9.01
BuildRequires: ico-uxf-utilities-devel >= 0.9.04
BuildRequires: pkgconfig(capi-appfw-application)
Requires: weston >= 1.2
Requires: ico-uxf-weston-plugin
Requires: ico-uxf-homescreen >= 0.9.01
Requires: ecore
Requires: elementary
Requires: evas
Requires: dbus
Requires: dbus-glib
Requires: automotive-message-broker >= 0.10.804
Requires: capi-appfw-application
Requires: edbus
Requires: ico-uxf-utilities >= 0.9.04
Requires: ico-vic-amb-plugin >= 0.9.4
#ico-app-miscellaneous
Requires: weekeyboard
%description
HomeScreen sample application
%prep
%setup -q -n %{name}-%{version}
%build
autoreconf --install
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%make_install
# create tizen package metadata related directories
mkdir -p %{buildroot}%{_datadir}/packages/
mkdir -p %{buildroot}%{_datadir}/icons/default/small
# configurations(ico-app-soundsample)
%define sound_PREFIX /usr/apps/org.tizen.ico.app-soundsample
mkdir -p %{buildroot}%{sound_PREFIX}/bin/
mkdir -p %{buildroot}%{sound_PREFIX}/sounds/
mkdir -p %{buildroot}%{sound_PREFIX}/res/icons/default/small/
mkdir -p %{buildroot}%{sound_PREFIX}/res/images/
install -m 0644 ico-app-soundsample/soundsample_config.txt %{buildroot}%{sound_PREFIX}/res/
install -m 0644 ico-app-soundsample/sound_bg.png %{buildroot}%{sound_PREFIX}/res/images/
install -m 0644 ico-app-soundsample/org.tizen.ico.app-soundsample.png %{buildroot}%{sound_PREFIX}/res/icons/default/small/
install -m 0644 ico-app-soundsample/musicbox.wav %{buildroot}%{sound_PREFIX}/sounds/
install -m 0644 ico-app-soundsample/org.tizen.ico.app-soundsample.xml %{buildroot}%{_datadir}/packages/
# configurations(ico-app-vicsample)
%define vic_PREFIX /usr/apps/org.tizen.ico.app-vicsample
mkdir -p %{buildroot}%{vic_PREFIX}/bin/
mkdir -p %{buildroot}%{vic_PREFIX}/res/icons/default/small/
mkdir -p %{buildroot}%{vic_PREFIX}/res/images/
install -m 0644 ico-app-vicsample/vicsample_config.txt %{buildroot}%{vic_PREFIX}/res/
install -m 0644 ico-app-vicsample/vicinfo_bg.png %{buildroot}%{vic_PREFIX}/res/images/
install -m 0644 ico-app-vicsample/org.tizen.ico.app-vicsample.png %{buildroot}%{vic_PREFIX}/res/icons/default/small/
install -m 0644 ico-app-vicsample/org.tizen.ico.app-vicsample.xml %{buildroot}%{_datadir}/packages/
# configurations(ico-app-miscellaneous)
# install tizen package metadata for weston-terminal
install -m 0644 ico-app-miscellaneous/terminal.xml %{buildroot}%{_datadir}/packages/
# install browser package metadata for MiniBrowser
mkdir -p %{buildroot}%{_bindir}
install -m 0644 ico-app-miscellaneous/browser.xml %{buildroot}%{_datadir}/packages/
install -m 0644 ico-app-miscellaneous/browser.png %{buildroot}%{_datadir}/icons/default/small/
install -m 0755 ico-app-miscellaneous/browser %{buildroot}%{_bindir}
# install tizen package metadata for weekeyboard
install -m 0644 ico-app-miscellaneous/weekeyboard.xml %{buildroot}%{_datadir}/packages/
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
# files(ico-app-soundsample)
%{sound_PREFIX}/bin/ico-app-soundsample
%{sound_PREFIX}/res/soundsample_config.txt
%{sound_PREFIX}/res/images/sound_bg.png
%{sound_PREFIX}/res/icons/default/small/org.tizen.ico.app-soundsample.png
%{sound_PREFIX}/sounds/musicbox.wav
%{_datadir}/packages/org.tizen.ico.app-soundsample.xml
# files(ico-app-vicsample)
%{vic_PREFIX}/bin/ico-app-vicsample
%{vic_PREFIX}/res/vicsample_config.txt
%{vic_PREFIX}/res/images/vicinfo_bg.png
%{vic_PREFIX}/res/icons/default/small/org.tizen.ico.app-vicsample.png
/usr/share/packages/org.tizen.ico.app-vicsample.xml
# files(ico-app-miscellaneous)
%{_bindir}/browser
%{_datadir}/packages/browser.xml
%{_datadir}/packages/terminal.xml
%{_datadir}/packages/weekeyboard.xml
%{_datadir}/icons/default/small/browser.png
%post
/sbin/ldconfig
# This icon exists in main weston package so we don't package it in.
# Create a symbolic link to it instead.
ln -s %{_datadir}/weston/terminal.png %{_datadir}/icons/default/small/
# Update the app database.
%{_bindir}/pkginfo --imd /usr/share/packages/org.tizen.ico.app-soundsample.xml
%{_bindir}/pkginfo --imd /usr/share/packages/org.tizen.ico.app-vicsample.xml
%{_bindir}/pkginfo --imd /usr/share/packages/browser.xml
%{_bindir}/pkginfo --imd /usr/share/packages/terminal.xml
%preun
# Update the app database.
%{_bindir}/pkginfo --rmd /usr/share/packages/org.tizen.ico.app-soundsample.xml
%{_bindir}/pkginfo --rmd /usr/share/packages/org.tizen.ico.app-vicsample.xml
%{_bindir}/pkginfo --rmd /usr/share/packages/browser.xml
%{_bindir}/pkginfo --rmd /usr/share/packages/terminal.xml
%postun
/sbin/ldconfig
rm -f /usr/share/applications/org.tizen.ico.app-soundsample.desktop
rm -f /usr/share/applications/org.tizen.ico.app-vicsample.desktop
rm -f /usr/share/applications/browser.desktop
rm -f /usr/share/applications/terminal.desktop
rm -f %{_datadir}/icons/default/small/terminal.png
|