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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
|
Name: ise-default
Summary: Tizen keyboard
Version: 1.11.2
Release: 1
Group: Graphics & UI Framework/Input
License: Apache-2.0
Source0: ise-default-%{version}.tar.gz
BuildRequires: gettext-tools
BuildRequires: edje-bin
BuildRequires: cmake
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(libscl-ui)
BuildRequires: pkgconfig(ecore-imf)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(efl-extension)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(stt)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(capi-appfw-preference)
BuildRequires: pkgconfig(capi-appfw-package-manager)
BuildRequires: pkgconfig(capi-media-sound-manager)
BuildRequires: pkgconfig(capi-ui-inputmethod)
BuildRequires: pkgconfig(smartreply)
BuildRequires: pkgconfig(key-manager)
BuildRequires: pkgconfig(capi-system-system-settings)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(capi-ui-sticker-consumer)
BuildRequires: pkgconfig(capi-content-mime-type)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(rpc-port)
BuildRequires: pkgconfig(capi-appfw-event)
BuildRequires: pkgconfig(notification)
Requires: ise-engine-glm
Requires: ise-engine-default
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
Requires: %{name}-compat = %{version}-%{release}
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
Recommends: %{name}-profile_common = %{version}-%{release}
%endif
%description
Description: Tizen keyboard
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
%package profile_common
Summary: ise-default binaries and resources without flavors
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_tv
Conflicts: %{name}-profile_wearable
Conflicts: %{name}-profile_ivi
%description profile_common
Tizen keyboard (ise-default) binaries and resources without flavors, intended
to support common profiles, which does not supply any additional options
for the build.
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
%package profile_mobile
Summary: ise-default binaries and resources with mobile profile
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_common
Conflicts: %{name}-profile_tv
Conflicts: %{name}-profile_wearable
Conflicts: %{name}-profile_ivi
%description profile_mobile
Tizen keyboard (ise-default) binaries and resources with mobile options.
This is intended to support mobile profiles.
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
%package profile_tv
Summary: ise-default binaries and resources with tv profile
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_common
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_wearable
Conflicts: %{name}-profile_ivi
%description profile_tv
Tizen keyboard (ise-default) binaries and resources with tv options.
This is intended to support tv profiles.
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
%package profile_ivi
Summary: ise-default binaries and resources with ivi profile
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_common
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_wearable
Conflicts: %{name}-profile_tv
%description profile_ivi
Tizen keyboard (ise-default) binaries and resources with ivi options.
This is intended to support ivi profiles.
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
# Common is blocked because wearable has extra efl-ext entries, which will be
# removed for unified build env later.
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
%package profile_wearable
Summary: Meta package of ise-default for wearable profiles. (circle/rectangle)
Provides: %{name}-compat = %{version}-%{release}
Conflicts: %{name}-profile_common
Conflicts: %{name}-profile_mobile
Conflicts: %{name}-profile_tv
Conflicts: %{name}-profile_ivi
Requires: %{name}-profile_wearable-extension = %{version}-%{release}
Recommends: %{name}-profile_wearable-extension-circle = %{version}-%{release}
%description profile_wearable
Meta package of Tizen keyboard (ise-default) binaries and resources with
wearable options.
%package profile_wearable-extension-circle
Summary: ise-default binaries and resources with wearable profile (circle)
Provides: %{name}-profile_wearable-extension = %{version}-%{release}
Conflicts: %{name}-profile_wearable-extension-rectangle
%description profile_wearable-extension-circle
Tizen keyboard (ise-default) binaries and resources with wearable options.
This is intended to support wearable profiles with circle display.
%package profile_wearable-extension-rectangle
Summary: ise-default binaries and resources with wearable profile (rectangle)
Provides: %{name}-profile_wearable-extension = %{version}-%{release}
Conflicts: %{name}-profile_wearable-extension-circle
%description profile_wearable-extension-rectangle
Tizen keyboard (ise-default) binaries and resources with wearable options.
This is intended to support wearable profiles with rectangle display.
%endif
%package -n ise-default-config
Summary: ISE config file
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description -n ise-default-config
ISE configuration file for default setting
%prep
%setup -q
%build
export CFLAGS_BASE="${CFLAGS} -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
export CXXFLAGS_BASE="${CXXFLAGS} -DTIZEN_DEBUG_ENABLE -std=c++11 -fvisibility-inlines-hidden -fvisibility=hidden -Wno-unused-function -Wno-unused-but-set-variable"
export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
export LD_LIBRARY_PATH=%{TZ_SYS_RO_APP}/ise-default/lib
rm -rf CMakeFiles
rm -rf CMakeCache.txt
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
# Common is blocked because wearable has extra efl-ext entries, which will be
# removed for unified build env later.
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
mkdir -p build_wearable_rec
pushd build_wearable_rec
export CFLAGS="${CFLAGS_BASE} -D_WEARABLE";
export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE";
%cmake .. -DTARGET=wearable \
-DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
-DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
make %{?jobs:-j%jobs}
popd
mkdir -p build_wearable_cir
pushd build_wearable_cir
export CFLAGS="${CFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
%cmake .. -DTARGET=wearable \
-DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
-DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
make %{?jobs:-j%jobs}
popd
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
mkdir -p build_mobile
pushd build_mobile
export CFLAGS="${CFLAGS_BASE} -D_MOBILE";
export CXXFLAGS="${CXXFLAGS_BASE} -D_MOBILE";
%cmake .. -DTARGET=mobile \
-DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
-DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
-Dwith_cbhm=TRUE
make %{?jobs:-j%jobs}
popd
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
mkdir -p build_tv
pushd build_tv
export CFLAGS="${CFLAGS_BASE} -D_TV";
export CXXFLAGS="${CXXFLAGS_BASE} -D_TV";
%cmake .. -DTARGET=tv \
-DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
-DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
make %{?jobs:-j%jobs}
popd
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
mkdir -p build_ivi
pushd build_ivi
export CFLAGS="${CFLAGS_BASE} -D_IVI";
export CXXFLAGS="${CXXFLAGS_BASE} -D_IVI";
%cmake .. -DTARGET=ivi \
-DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
-DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
make %{?jobs:-j%jobs}
popd
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
export CFLAGS="${CFLAGS_BASE} -D_COMMON";
export CXXFLAGS="${CXXFLAGS_BASE} -D_COMMON";
%cmake . -DTARGET=common \
-DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
-DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
-Dwith_cbhm=TRUE
make %{?jobs:-j%jobs}
%endif
%install
rm -rf %{buildroot}
%make_install
%__mkdir_p %{buildroot}%{_sysconfdir}/ise/conf
%__cp ise-default-config/config/* %{buildroot}%{_sysconfdir}/ise/conf
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%make_install
mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/common
pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
mv bin common/
mkdir -p common/res
pushd res
for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../common/res/; fi; done
popd
popd
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
pushd build_mobile
%make_install
popd
mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/mobile
pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
mv bin mobile/
mkdir -p mobile/res
pushd res
for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../mobile/res/; fi; done
popd
popd
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
pushd build_tv
%make_install
popd
mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/tv
pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
mv bin tv/
mkdir -p tv/res
pushd res
for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../tv/res/; fi; done
popd
popd
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
pushd build_ivi
%make_install
popd
mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/ivi
pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
mv bin ivi/
mkdir -p ivi/res
pushd res
for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../ivi/res/; fi; done
popd
popd
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
# Common is blocked because wearable has extra efl-ext entries, which will be
# removed for unified build env later.
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
pushd build_wearable_cir
%make_install
popd
mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-circle
pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
mv bin wearable-circle/
mkdir -p wearable-circle/res
pushd res
for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-circle/res/; fi; done
popd
popd
pushd build_wearable_rec
%make_install
popd
mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-rectangle
pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
mv bin wearable-rectangle/
mkdir -p wearable-rectangle/res
pushd res
for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-rectangle/res/; fi; done
popd
popd
%endif
%find_lang %{name}
%files -f %{name}.lang
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_PACKAGES}/%{name}.xml
%ifarch %{arm} aarch64
%{TZ_SYS_RO_APP}/ise-default/lib/*
%endif
%license LICENSE
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
%post profile_common
pushd %{TZ_SYS_RO_APP}/ise-default/common/
mkdir -p ../res
mkdir -p ../bin
# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
if [ "$1" = "2" ]; then
rm -Rf ../bin/*
pushd ../res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
fi
for FILE in bin/*; do ln -sf "../common/${FILE}" ../bin; done
for FILE in res/*; do ln -sf "../common/${FILE}" ../res; done
popd
%preun profile_common
# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
if [ "$1" = "0" ]; then
pushd %{TZ_SYS_RO_APP}/ise-default
rm -Rf bin
pushd res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
popd
fi
%files profile_common
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_APP}/ise-default/common/*
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_mobile
pushd %{TZ_SYS_RO_APP}/ise-default/mobile/
mkdir -p ../res
mkdir -p ../bin
# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
if [ "$1" = "2" ]; then
rm -Rf ../bin/*
pushd ../res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
fi
for FILE in bin/*; do ln -sf "../mobile/${FILE}" ../bin; done
for FILE in res/*; do ln -sf "../mobile/${FILE}" ../res; done
popd
%preun profile_mobile
# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
if [ "$1" = "0" ]; then
pushd %{TZ_SYS_RO_APP}/ise-default
rm -Rf bin
pushd res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
popd
fi
%files profile_mobile
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_APP}/ise-default/mobile/*
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
%post profile_tv
pushd %{TZ_SYS_RO_APP}/ise-default/tv/
mkdir -p ../res
mkdir -p ../bin
# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
if [ "$1" = "2" ]; then
rm -Rf ../bin/*
pushd ../res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
fi
for FILE in bin/*; do ln -sf "../tv/${FILE}" ../bin; done
for FILE in res/*; do ln -sf "../tv/${FILE}" ../res; done
popd
%preun profile_tv
# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
if [ "$1" = "0" ]; then
pushd %{TZ_SYS_RO_APP}/ise-default
rm -Rf bin
pushd res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
popd
fi
%files profile_tv
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_APP}/ise-default/tv/*
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
%if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
%post profile_ivi
pushd %{TZ_SYS_RO_APP}/ise-default/ivi/
mkdir -p ../res
mkdir -p ../bin
# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
if [ "$1" = "2" ]; then
rm -Rf ../bin/*
pushd ../res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
fi
for FILE in bin/*; do ln -sf "../ivi/${FILE}" ../bin; done
for FILE in res/*; do ln -sf "../ivi/${FILE}" ../res; done
popd
%preun profile_ivi
# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
if [ "$1" = "0" ]; then
pushd %{TZ_SYS_RO_APP}/ise-default
rm -Rf bin
pushd res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
popd
fi
%files profile_ivi
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_APP}/ise-default/ivi/*
%endif
# This is for old profile-based OBS project optimizations.
# In 4.0 unified build env, this if statement is always true.
# Common is blocked because wearable has extra efl-ext entries, which will be
# removed for unified build env later.
%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
%files profile_wearable
%post profile_wearable-extension-circle
pushd %{TZ_SYS_RO_APP}/ise-default/wearable-circle/
mkdir -p ../res
mkdir -p ../bin
# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
if [ "$1" = "2" ]; then
rm -Rf ../bin/*
pushd ../res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
fi
for FILE in bin/*; do ln -sf "../wearable-circle/${FILE}" ../bin; done
for FILE in res/*; do ln -sf "../wearable-circle/${FILE}" ../res; done
popd
%preun profile_wearable-extension-circle
# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
if [ "$1" = "0" ]; then
pushd %{TZ_SYS_RO_APP}/ise-default
rm -Rf bin
pushd res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
popd
fi
%files profile_wearable-extension-circle
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_APP}/ise-default/wearable-circle/*
%post profile_wearable-extension-rectangle
pushd %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/
mkdir -p ../res
mkdir -p ../bin
# If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
if [ "$1" = "2" ]; then
rm -Rf ../bin/*
pushd ../res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
fi
for FILE in bin/*; do ln -sf "../wearable-rectangle/${FILE}" ../bin; done
for FILE in res/*; do ln -sf "../wearable-rectangle/${FILE}" ../res; done
popd
%preun profile_wearable-extension-rectangle
# Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
if [ "$1" = "0" ]; then
pushd %{TZ_SYS_RO_APP}/ise-default
rm -Rf bin
pushd res
for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
popd
popd
fi
%files profile_wearable-extension-rectangle
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/*
%endif
%files -n ise-default-config
%manifest ise-default-config/ise-default-config.manifest
%{_sysconfdir}/ise/conf/*
%license LICENSE
|