2 Summary: Tizen keyboard
5 Group: Graphics & UI Framework/Input
7 Source0: ise-default-%{version}.tar.gz
8 BuildRequires: gettext-tools
9 BuildRequires: edje-bin
11 BuildRequires: pkgconfig(elementary)
12 BuildRequires: pkgconfig(vconf)
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(libscl-ui)
15 BuildRequires: pkgconfig(ecore-imf)
16 BuildRequires: pkgconfig(libxml-2.0)
17 BuildRequires: pkgconfig(efl-extension)
18 BuildRequires: pkgconfig(libtzplatform-config)
19 BuildRequires: pkgconfig(stt)
20 BuildRequires: pkgconfig(capi-appfw-application)
21 BuildRequires: pkgconfig(capi-appfw-preference)
22 BuildRequires: pkgconfig(capi-media-audio-io)
23 BuildRequires: pkgconfig(capi-ui-inputmethod)
24 BuildRequires: pkgconfig(smartreply)
25 Requires: ise-engine-tables
26 Requires: ise-engine-tables-zh
27 Requires: ise-engine-hangul
28 Requires: ise-engine-glm
29 Requires: ise-engine-anthy
30 Requires: ise-engine-default
32 # This is for old profile-based OBS project optimizations.
33 # In 4.0 unified build env, this if statement is always true.
34 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
35 BuildRequires: pkgconfig(cbhm)
37 Requires: %{name}-compat = %{version}-%{release}
38 # This is for old profile-based OBS project optimizations.
39 # In 4.0 unified build env, this if statement is always true.
40 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
41 Recommends: %{name}-profile_common = %{version}-%{release}
45 Description: Tizen keyboard
48 # This is for old profile-based OBS project optimizations.
49 # In 4.0 unified build env, this if statement is always true.
50 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
51 %package profile_common
52 Summary: ise-default binaries and resources without flavors
53 Provides: %{name}-compat = %{version}-%{release}
54 Conflicts: %{name}-profile_mobile
55 Conflicts: %{name}-profile_tv
56 Conflicts: %{name}-profile_wearable
57 Conflicts: %{name}-profile_ivi
58 %description profile_common
59 Tizen keyboard (ise-default) binaries and resources without flavors, intended
60 to support common profiles, which does not supply any additional options
64 # This is for old profile-based OBS project optimizations.
65 # In 4.0 unified build env, this if statement is always true.
66 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
67 %package profile_mobile
68 Summary: ise-default binaries and resources with mobile profile
69 Provides: %{name}-compat = %{version}-%{release}
70 Conflicts: %{name}-profile_common
71 Conflicts: %{name}-profile_tv
72 Conflicts: %{name}-profile_wearable
73 Conflicts: %{name}-profile_ivi
74 %description profile_mobile
75 Tizen keyboard (ise-default) binaries and resources with mobile options.
76 This is intended to support mobile profiles.
79 # This is for old profile-based OBS project optimizations.
80 # In 4.0 unified build env, this if statement is always true.
81 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
83 Summary: ise-default binaries and resources with tv profile
84 Provides: %{name}-compat = %{version}-%{release}
85 Conflicts: %{name}-profile_common
86 Conflicts: %{name}-profile_mobile
87 Conflicts: %{name}-profile_wearable
88 Conflicts: %{name}-profile_ivi
89 %description profile_tv
90 Tizen keyboard (ise-default) binaries and resources with tv options.
91 This is intended to support tv profiles.
94 # This is for old profile-based OBS project optimizations.
95 # In 4.0 unified build env, this if statement is always true.
96 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
98 Summary: ise-default binaries and resources with ivi profile
99 Provides: %{name}-compat = %{version}-%{release}
100 Conflicts: %{name}-profile_common
101 Conflicts: %{name}-profile_mobile
102 Conflicts: %{name}-profile_wearable
103 Conflicts: %{name}-profile_tv
104 %description profile_ivi
105 Tizen keyboard (ise-default) binaries and resources with ivi options.
106 This is intended to support ivi profiles.
109 # This is for old profile-based OBS project optimizations.
110 # In 4.0 unified build env, this if statement is always true.
111 # Common is blocked because wearable has extra efl-ext entries, which will be
112 # removed for unified build env later.
113 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
114 %package profile_wearable
115 Summary: Meta package of ise-default for wearable profiles. (circle/rectangle)
116 Provides: %{name}-compat = %{version}-%{release}
117 Conflicts: %{name}-profile_common
118 Conflicts: %{name}-profile_mobile
119 Conflicts: %{name}-profile_tv
120 Conflicts: %{name}-profile_ivi
121 Requires: %{name}-profile_wearable-extension = %{version}-%{release}
122 Recommends: %{name}-profile_wearable-extension-circle = %{version}-%{release}
123 %description profile_wearable
124 Meta package of Tizen keyboard (ise-default) binaries and resources with
127 %package profile_wearable-extension-circle
128 Summary: ise-default binaries and resources with wearable profile (circle)
129 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
130 Conflicts: %{name}-profile_wearable-extension-rectangle
131 %description profile_wearable-extension-circle
132 Tizen keyboard (ise-default) binaries and resources with wearable options.
133 This is intended to support wearable profiles with circle display.
135 %package profile_wearable-extension-rectangle
136 Summary: ise-default binaries and resources with wearable profile (rectangle)
137 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
138 Conflicts: %{name}-profile_wearable-extension-circle
139 %description profile_wearable-extension-rectangle
140 Tizen keyboard (ise-default) binaries and resources with wearable options.
141 This is intended to support wearable profiles with rectangle display.
149 export CFLAGS_BASE="${CFLGAS} -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
150 export CXXFLAGS_BASE="${CXXFLAGS} -DTIZEN_DEBUG_ENABLE -std=c++11 -fvisibility-inlines-hidden"
151 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
154 rm -rf CMakeCache.txt
156 # This is for old profile-based OBS project optimizations.
157 # In 4.0 unified build env, this if statement is always true.
158 # Common is blocked because wearable has extra efl-ext entries, which will be
159 # removed for unified build env later.
160 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
161 mkdir -p build_wearable_rec
162 pushd build_wearable_rec
163 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE";
164 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE";
165 %cmake .. -DTARGET=wearable \
166 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
167 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
169 make %{?jobs:-j%jobs}
172 mkdir -p build_wearable_cir
173 pushd build_wearable_cir
174 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
175 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
176 %cmake .. -DTARGET=wearable \
177 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
178 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
180 make %{?jobs:-j%jobs}
185 # This is for old profile-based OBS project optimizations.
186 # In 4.0 unified build env, this if statement is always true.
187 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
188 mkdir -p build_mobile
190 export CFLAGS="${CFLAGS_BASE} -D_MOBILE";
191 export CXXFLAGS="${CXXFLAGS_BASE} -D_MOBILE";
192 %cmake .. -DTARGET=mobile \
193 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
194 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
197 make %{?jobs:-j%jobs}
201 # This is for old profile-based OBS project optimizations.
202 # In 4.0 unified build env, this if statement is always true.
203 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
206 export CFLAGS="${CFLAGS_BASE} -D_TV";
207 export CXXFLAGS="${CXXFLAGS_BASE} -D_TV";
208 %cmake .. -DTARGET=tv \
209 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
210 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
212 make %{?jobs:-j%jobs}
216 # This is for old profile-based OBS project optimizations.
217 # In 4.0 unified build env, this if statement is always true.
218 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
221 export CFLAGS="${CFLAGS_BASE} -D_IVI";
222 export CXXFLAGS="${CXXFLAGS_BASE} -D_IVI";
223 %cmake .. -DTARGET=ivi \
224 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
225 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
227 make %{?jobs:-j%jobs}
231 # This is for old profile-based OBS project optimizations.
232 # In 4.0 unified build env, this if statement is always true.
233 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
234 export CFLAGS="${CFLAGS_BASE}";
235 export CXXFLAGS="${CXXFLAGS_BASE}";
236 %cmake . -DTARGET=common \
237 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
238 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
240 make %{?jobs:-j%jobs}
246 # This is for old profile-based OBS project optimizations.
247 # In 4.0 unified build env, this if statement is always true.
248 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
250 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/common
251 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
255 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../common/res/; fi; done
260 # This is for old profile-based OBS project optimizations.
261 # In 4.0 unified build env, this if statement is always true.
262 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
266 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/mobile
267 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
271 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../mobile/res/; fi; done
276 # This is for old profile-based OBS project optimizations.
277 # In 4.0 unified build env, this if statement is always true.
278 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
282 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/tv
283 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
287 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../tv/res/; fi; done
292 # This is for old profile-based OBS project optimizations.
293 # In 4.0 unified build env, this if statement is always true.
294 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
298 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/ivi
299 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
303 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../ivi/res/; fi; done
308 # This is for old profile-based OBS project optimizations.
309 # In 4.0 unified build env, this if statement is always true.
310 # Common is blocked because wearable has extra efl-ext entries, which will be
311 # removed for unified build env later.
312 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
313 pushd build_wearable_cir
316 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-circle
317 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
318 mv bin wearable-circle/
319 mkdir -p wearable-circle/res
321 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-circle/res/; fi; done
325 pushd build_wearable_rec
328 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-rectangle
329 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
330 mv bin wearable-rectangle/
331 mkdir -p wearable-rectangle/res
333 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-rectangle/res/; fi; done
340 %files -f %{name}.lang
341 %manifest %{name}.manifest
342 %defattr(-,root,root,-)
343 %{TZ_SYS_RO_PACKAGES}/%{name}.xml
346 # This is for old profile-based OBS project optimizations.
347 # In 4.0 unified build env, this if statement is always true.
348 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
350 pushd %{TZ_SYS_RO_APP}/ise-default/common/
353 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
354 if [ "$1" = "2" ]; then
357 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
360 for FILE in bin/*; do ln -sf "../common/${FILE}" ../bin; done
361 for FILE in res/*; do ln -sf "../common/${FILE}" ../res; done
363 %preun profile_common
364 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
365 if [ "$1" = "0" ]; then
366 pushd %{TZ_SYS_RO_APP}/ise-default
369 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
373 %files profile_common
374 %manifest %{name}.manifest
375 %defattr(-,root,root,-)
376 %{TZ_SYS_RO_APP}/ise-default/common/*
380 # This is for old profile-based OBS project optimizations.
381 # In 4.0 unified build env, this if statement is always true.
382 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
384 pushd %{TZ_SYS_RO_APP}/ise-default/mobile/
387 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
388 if [ "$1" = "2" ]; then
391 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
394 for FILE in bin/*; do ln -sf "../mobile/${FILE}" ../bin; done
395 for FILE in res/*; do ln -sf "../mobile/${FILE}" ../res; done
397 %preun profile_mobile
398 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
399 if [ "$1" = "0" ]; then
400 pushd %{TZ_SYS_RO_APP}/ise-default
403 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
407 %files profile_mobile
408 %manifest %{name}.manifest
409 %defattr(-,root,root,-)
410 %{TZ_SYS_RO_APP}/ise-default/mobile/*
414 # This is for old profile-based OBS project optimizations.
415 # In 4.0 unified build env, this if statement is always true.
416 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
418 pushd %{TZ_SYS_RO_APP}/ise-default/tv/
421 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
422 if [ "$1" = "2" ]; then
425 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
428 for FILE in bin/*; do ln -sf "../tv/${FILE}" ../bin; done
429 for FILE in res/*; do ln -sf "../tv/${FILE}" ../res; done
432 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
433 if [ "$1" = "0" ]; then
434 pushd %{TZ_SYS_RO_APP}/ise-default
437 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
442 %manifest %{name}.manifest
443 %defattr(-,root,root,-)
444 %{TZ_SYS_RO_APP}/ise-default/tv/*
448 # This is for old profile-based OBS project optimizations.
449 # In 4.0 unified build env, this if statement is always true.
450 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
452 pushd %{TZ_SYS_RO_APP}/ise-default/ivi/
455 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
456 if [ "$1" = "2" ]; then
459 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
462 for FILE in bin/*; do ln -sf "../ivi/${FILE}" ../bin; done
463 for FILE in res/*; do ln -sf "../ivi/${FILE}" ../res; done
466 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
467 if [ "$1" = "0" ]; then
468 pushd %{TZ_SYS_RO_APP}/ise-default
471 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
476 %manifest %{name}.manifest
477 %defattr(-,root,root,-)
478 %{TZ_SYS_RO_APP}/ise-default/ivi/*
482 # This is for old profile-based OBS project optimizations.
483 # In 4.0 unified build env, this if statement is always true.
484 # Common is blocked because wearable has extra efl-ext entries, which will be
485 # removed for unified build env later.
486 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
487 %files profile_wearable
489 %post profile_wearable-extension-circle
490 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-circle/
493 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
494 if [ "$1" = "2" ]; then
497 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
500 for FILE in bin/*; do ln -sf "../wearable-circle/${FILE}" ../bin; done
501 for FILE in res/*; do ln -sf "../wearable-circle/${FILE}" ../res; done
503 %preun profile_wearable-extension-circle
504 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
505 if [ "$1" = "0" ]; then
506 pushd %{TZ_SYS_RO_APP}/ise-default
509 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
513 %files profile_wearable-extension-circle
514 %manifest %{name}.manifest
515 %defattr(-,root,root,-)
516 %{TZ_SYS_RO_APP}/ise-default/wearable-circle/*
519 %post profile_wearable-extension-rectangle
520 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/
523 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
524 if [ "$1" = "2" ]; then
527 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
530 for FILE in bin/*; do ln -sf "../wearable-rectangle/${FILE}" ../bin; done
531 for FILE in res/*; do ln -sf "../wearable-rectangle/${FILE}" ../res; done
533 %preun profile_wearable-extension-rectangle
534 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
535 if [ "$1" = "0" ]; then
536 pushd %{TZ_SYS_RO_APP}/ise-default
539 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
543 %files profile_wearable-extension-rectangle
544 %manifest %{name}.manifest
545 %defattr(-,root,root,-)
546 %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/*