summaryrefslogtreecommitdiff
path: root/packaging/ico-uxf-homescreen-sample-apps.spec
blob: 30d1791550595ab5f4a091ad9ea0795b401ba640 (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
Name:       ico-uxf-homescreen-sample-apps
Summary:    HomeScreen sample application
Version:    0.9.8
Release:    0
Group:      Automotive/ICO Homescreen
License:    Apache-2.0
URL:        http://www.toyota.com
Source0:    %{name}-%{version}.tar.bz2

#ico-app-soundsample
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(eina)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(edje)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(bundle)
BuildRequires: libpulse-devel
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: weston-ivi-shell-clients
Requires: ecore
Requires: elementary
Requires: evas
Requires: capi-appfw-application
Requires: ico-uxf-utilities

#ico-app-vicsample
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(edbus)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(aul)
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: 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: genivi-shell
Requires: weekeyboard

%description
HomeScreen sample application

%prep
%setup -q -n %{name}-%{version}

%build
%reconfigure
%__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}%{_datadir}/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}%{_datadir}/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 tizen package metadata for weekeyboard
install -m 0644 ico-app-miscellaneous/weekeyboard.xml %{buildroot}%{_datadir}/packages/

# install tizen package metadata for mock navigator
install -m 0644 ico-app-miscellaneous/navigator.xml %{buildroot}%{_datadir}/packages/
install -m 0644 ico-app-miscellaneous/navigator.png %{buildroot}%{_datadir}/icons/default/small/



%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}/sounds/musicbox.wav
%{_datadir}/icons/default/small/org.tizen.ico.app-soundsample.png
%{_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
%{_datadir}/icons/default/small/org.tizen.ico.app-vicsample.png
%{_datadir}/packages/org.tizen.ico.app-vicsample.xml

# files(ico-app-miscellaneous)
%{_datadir}/packages/terminal.xml
%{_datadir}/packages/navigator.xml
%{_datadir}/packages/weekeyboard.xml
%{_datadir}/icons/default/small/navigator.png

%post
/sbin/ldconfig
# This icons exists in main weston package so we don't package it in.
# Create a symbolic link to it instead.
ln -sf %{_datadir}/weston/terminal.png %{_datadir}/icons/default/small/
# Update the app database.
%{_bindir}/pkg_initdb
%{_bindir}/ail_initdb

%postun
if [ "$1" = "0" ]; then
/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/terminal.desktop
rm -f %{_datadir}/icons/default/small/terminal.png
# Update the app database.
%{_bindir}/pkg_initdb
%{_bindir}/ail_initdb
fi