blob: 621864ba530dffbb6b5866012b2b1197df6634d0 (
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
%define debug_package %{nil}
Name: unified-model-config
Summary: All Model configurations
Version: 9.0.0
Release: 0
Group: System/Configuration
BuildArch: noarch
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
%description
Model configuration data package
%package -n model-config-emulator-profile_mobile
Summary: A Model configuration for mobile profile
Provides: model-config
%description -n model-config-emulator-profile_mobile
Model configuiration data pacakge (emulator/mobile)
%package -n model-config-emulator-profile_wearable
Summary: A Model configuration for wearable profile
Provides: model-config
%description -n model-config-emulator-profile_wearable
Model configuiration data pacakge (emulator/wearable)
%package -n model-config-emulator-profile_tv
Summary: A Model configuration for tv profile
Provides: model-config
%description -n model-config-emulator-profile_tv
Model configuiration data pacakge (emulator/tv)
%package -n model-config-generic
Summary: A Model configuration
Provides: model-config
%description -n model-config-generic
Model configuration data package
%package -n model-config-default
Summary: Default Model configuration for IoT
Provides: model-config
%description -n model-config-default
Model configuration data package main body having default values for Tizen IOT
%package -n model-config-tm1
Summary: A Model configuration for tm1
Provides: model-config
%description -n model-config-tm1
Model configuiration data pacakge(tm1)
%package -n model-config-n4
Summary: A Model configuration for tm2
Provides: model-config
%description -n model-config-n4
Model configuiration data pacakge(tm2)
%package -n model-config-tw2
Summary: A Model configuration for tw2
Provides: model-config
%description -n model-config-tw2
Model configuiration data pacakge(tw2)
%package -n model-config-tw3
Summary: A Model configuration for tw3
Provides: model-config
%description -n model-config-tw3
Model configuiration data pacakge(tw3)
%package -n model-config-xu3-profile_tv
Summary: Model configuration of XU3 for TV profile
Provides: model-config
%description -n model-config-xu3-profile_tv
Model configuration data package main body supporting TV profile
%package -n model-config-rpi3-profile_tv
Summary: Model configuration of RPi3 for TV profile
Provides: model-config
%description -n model-config-rpi3-profile_tv
Model configuration data package main body supporting TV profile
%package -n model-config-generic-hal
Summary: Model configuration for HAL Backend
Provides: model-config
%description -n model-config-generic-hal
Model configuration data package for HAL Backend
%prep
%setup -q -n %{name}-%{version}
cp %{SOURCE1001} ./%{name}.manifest
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/config
###### For emulator ######
cp -f emulator/model-config_wearable.xml %{buildroot}%{_sysconfdir}/config/emul_wearable.xml
%ifarch x86_64
cp -f emulator/model-config_tv64.xml %{buildroot}%{_sysconfdir}/config/emul_tv.xml
cp -f emulator/model-config_mobile64.xml %{buildroot}%{_sysconfdir}/config/emul_mobile.xml
%else
cp -f emulator/model-config_tv.xml %{buildroot}%{_sysconfdir}/config/emul_tv.xml
cp -f emulator/model-config_mobile.xml %{buildroot}%{_sysconfdir}/config/emul_mobile.xml
%endif
###### For generic & iot ######
cp -f generic/model-config.xml %{buildroot}%{_sysconfdir}/config/generic.xml
cp -f generic/model-config-iot.xml %{buildroot}%{_sysconfdir}/config/iot.xml
###### For tm1 ######
cp -f tm1/model-config.xml %{buildroot}%{_sysconfdir}/config/tm1.xml
###### For tm2 ######
cp -f tm2/model-config.xml %{buildroot}%{_sysconfdir}/config/tm2.xml
###### For tw2 ######
cp -f tw2/model-config.xml %{buildroot}%{_sysconfdir}/config/tw2.xml
###### For tw3 ######
cp -f tw3/model-config.xml %{buildroot}%{_sysconfdir}/config/tw3.xml
###### For xu3 ######
cp -f xu3/model-config_tv.xml %{buildroot}%{_sysconfdir}/config/xu3_tv.xml
###### For rpi3 ######
cp -f rpi3/model-config_tv.xml %{buildroot}%{_sysconfdir}/config/rpi3_tv.xml
###### For generic hal ######
mkdir -p %{buildroot}%{_hal_sysconfdir}/config
cp -f generic/model-config-hal.xml %{buildroot}%{_hal_sysconfdir}/config/hal.xml
install -d %{buildroot}%{_hal_licensedir}/model-config-generic-hal/
install -m 664 LICENSE.Apache-2.0 %{buildroot}%{_hal_licensedir}/model-config-generic-hal/
install -d %{buildroot}%{_bindir}
install -m 755 scripts/model-config-cli %{buildroot}%{_bindir}
%post -n model-config-emulator-profile_mobile
ln -sf emul_mobile.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-emulator-profile_mobile
%manifest %{name}.manifest
%config %{_sysconfdir}/config/emul_mobile.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-emulator-profile_wearable
ln -sf emul_wearable.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-emulator-profile_wearable
%manifest %{name}.manifest
%config %{_sysconfdir}/config/emul_wearable.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-emulator-profile_tv
ln -sf emul_tv.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-emulator-profile_tv
%manifest %{name}.manifest
%config %{_sysconfdir}/config/emul_tv.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-generic
ln -sf generic.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-generic
%manifest %{name}.manifest
%config %{_sysconfdir}/config/generic.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-default
ln -sf iot.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-default
%manifest %{name}.manifest
%config %{_sysconfdir}/config/iot.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-tm1
ln -sf tm1.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-tm1
%manifest %{name}.manifest
%config %{_sysconfdir}/config/tm1.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-n4
ln -sf tm2.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-n4
%manifest %{name}.manifest
%config %{_sysconfdir}/config/tm2.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-tw2
ln -sf tw2.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-tw2
%manifest %{name}.manifest
%config %{_sysconfdir}/config/tw2.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-tw3
ln -sf tw3.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-tw3
%manifest %{name}.manifest
%config %{_sysconfdir}/config/tw3.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-xu3-profile_tv
ln -sf xu3_tv.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-xu3-profile_tv
%manifest %{name}.manifest
%config %{_sysconfdir}/config/xu3_tv.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-rpi3-profile_tv
ln -sf rpi3_tv.xml %{_sysconfdir}/config/model-config.xml
%files -n model-config-rpi3-profile_tv
%manifest %{name}.manifest
%config %{_sysconfdir}/config/rpi3_tv.xml
%{_bindir}/model-config-cli
%license LICENSE.Apache-2.0
%post -n model-config-generic-hal
ln -sf hal.xml %{_hal_sysconfdir}/config/model-config.xml
%files -n model-config-generic-hal
%manifest %{name}.manifest
%config %{_hal_sysconfdir}/config/hal.xml
%{_hal_licensedir}/model-config-generic-hal/LICENSE.Apache-2.0
|