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 BuildRequires: pkgconfig(key-manager)
26 BuildRequires: pkgconfig(ode)
27 BuildRequires: pkgconfig(capi-system-system-settings)
28 Requires: ise-engine-tables
29 Requires: ise-engine-tables-zh
30 Requires: ise-engine-hangul
31 Requires: ise-engine-glm
32 Requires: ise-engine-anthy
33 Requires: ise-engine-default
35 # This is for old profile-based OBS project optimizations.
36 # In 4.0 unified build env, this if statement is always true.
37 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
38 BuildRequires: pkgconfig(cbhm)
40 Requires: %{name}-compat = %{version}-%{release}
41 # This is for old profile-based OBS project optimizations.
42 # In 4.0 unified build env, this if statement is always true.
43 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
44 Recommends: %{name}-profile_common = %{version}-%{release}
48 Description: Tizen keyboard
51 # This is for old profile-based OBS project optimizations.
52 # In 4.0 unified build env, this if statement is always true.
53 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
54 %package profile_common
55 Summary: ise-default binaries and resources without flavors
56 Provides: %{name}-compat = %{version}-%{release}
57 Conflicts: %{name}-profile_mobile
58 Conflicts: %{name}-profile_tv
59 Conflicts: %{name}-profile_wearable
60 Conflicts: %{name}-profile_ivi
61 %description profile_common
62 Tizen keyboard (ise-default) binaries and resources without flavors, intended
63 to support common profiles, which does not supply any additional options
67 # This is for old profile-based OBS project optimizations.
68 # In 4.0 unified build env, this if statement is always true.
69 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
70 %package profile_mobile
71 Summary: ise-default binaries and resources with mobile profile
72 Provides: %{name}-compat = %{version}-%{release}
73 Conflicts: %{name}-profile_common
74 Conflicts: %{name}-profile_tv
75 Conflicts: %{name}-profile_wearable
76 Conflicts: %{name}-profile_ivi
77 %description profile_mobile
78 Tizen keyboard (ise-default) binaries and resources with mobile options.
79 This is intended to support mobile profiles.
82 # This is for old profile-based OBS project optimizations.
83 # In 4.0 unified build env, this if statement is always true.
84 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
86 Summary: ise-default binaries and resources with tv profile
87 Provides: %{name}-compat = %{version}-%{release}
88 Conflicts: %{name}-profile_common
89 Conflicts: %{name}-profile_mobile
90 Conflicts: %{name}-profile_wearable
91 Conflicts: %{name}-profile_ivi
92 %description profile_tv
93 Tizen keyboard (ise-default) binaries and resources with tv options.
94 This is intended to support tv profiles.
97 # This is for old profile-based OBS project optimizations.
98 # In 4.0 unified build env, this if statement is always true.
99 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
101 Summary: ise-default binaries and resources with ivi profile
102 Provides: %{name}-compat = %{version}-%{release}
103 Conflicts: %{name}-profile_common
104 Conflicts: %{name}-profile_mobile
105 Conflicts: %{name}-profile_wearable
106 Conflicts: %{name}-profile_tv
107 %description profile_ivi
108 Tizen keyboard (ise-default) binaries and resources with ivi options.
109 This is intended to support ivi profiles.
112 # This is for old profile-based OBS project optimizations.
113 # In 4.0 unified build env, this if statement is always true.
114 # Common is blocked because wearable has extra efl-ext entries, which will be
115 # removed for unified build env later.
116 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
117 %package profile_wearable
118 Summary: Meta package of ise-default for wearable profiles. (circle/rectangle)
119 Provides: %{name}-compat = %{version}-%{release}
120 Conflicts: %{name}-profile_common
121 Conflicts: %{name}-profile_mobile
122 Conflicts: %{name}-profile_tv
123 Conflicts: %{name}-profile_ivi
124 Requires: %{name}-profile_wearable-extension = %{version}-%{release}
125 Recommends: %{name}-profile_wearable-extension-circle = %{version}-%{release}
126 %description profile_wearable
127 Meta package of Tizen keyboard (ise-default) binaries and resources with
130 %package profile_wearable-extension-circle
131 Summary: ise-default binaries and resources with wearable profile (circle)
132 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
133 Conflicts: %{name}-profile_wearable-extension-rectangle
134 %description profile_wearable-extension-circle
135 Tizen keyboard (ise-default) binaries and resources with wearable options.
136 This is intended to support wearable profiles with circle display.
138 %package profile_wearable-extension-rectangle
139 Summary: ise-default binaries and resources with wearable profile (rectangle)
140 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
141 Conflicts: %{name}-profile_wearable-extension-circle
142 %description profile_wearable-extension-rectangle
143 Tizen keyboard (ise-default) binaries and resources with wearable options.
144 This is intended to support wearable profiles with rectangle display.
152 export CFLAGS_BASE="${CFLAGS} -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
153 export CXXFLAGS_BASE="${CXXFLAGS} -DTIZEN_DEBUG_ENABLE -std=c++11 -fvisibility-inlines-hidden -fvisibility=hidden"
154 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
157 rm -rf CMakeCache.txt
159 # This is for old profile-based OBS project optimizations.
160 # In 4.0 unified build env, this if statement is always true.
161 # Common is blocked because wearable has extra efl-ext entries, which will be
162 # removed for unified build env later.
163 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
164 mkdir -p build_wearable_rec
165 pushd build_wearable_rec
166 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE";
167 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE";
168 %cmake .. -DTARGET=wearable \
169 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
170 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
172 make %{?jobs:-j%jobs}
175 mkdir -p build_wearable_cir
176 pushd build_wearable_cir
177 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
178 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
179 %cmake .. -DTARGET=wearable \
180 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
181 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
183 make %{?jobs:-j%jobs}
188 # This is for old profile-based OBS project optimizations.
189 # In 4.0 unified build env, this if statement is always true.
190 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
191 mkdir -p build_mobile
193 export CFLAGS="${CFLAGS_BASE} -D_MOBILE";
194 export CXXFLAGS="${CXXFLAGS_BASE} -D_MOBILE";
195 %cmake .. -DTARGET=mobile \
196 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
197 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
200 make %{?jobs:-j%jobs}
204 # This is for old profile-based OBS project optimizations.
205 # In 4.0 unified build env, this if statement is always true.
206 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
209 export CFLAGS="${CFLAGS_BASE} -D_TV";
210 export CXXFLAGS="${CXXFLAGS_BASE} -D_TV";
211 %cmake .. -DTARGET=tv \
212 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
213 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
215 make %{?jobs:-j%jobs}
219 # This is for old profile-based OBS project optimizations.
220 # In 4.0 unified build env, this if statement is always true.
221 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
224 export CFLAGS="${CFLAGS_BASE} -D_IVI";
225 export CXXFLAGS="${CXXFLAGS_BASE} -D_IVI";
226 %cmake .. -DTARGET=ivi \
227 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
228 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
230 make %{?jobs:-j%jobs}
234 # This is for old profile-based OBS project optimizations.
235 # In 4.0 unified build env, this if statement is always true.
236 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
237 export CFLAGS="${CFLAGS_BASE} -D_COMMON";
238 export CXXFLAGS="${CXXFLAGS_BASE} -D_COMMON";
239 %cmake . -DTARGET=common \
240 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
241 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
243 make %{?jobs:-j%jobs}
249 # This is for old profile-based OBS project optimizations.
250 # In 4.0 unified build env, this if statement is always true.
251 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
253 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/common
254 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
258 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../common/res/; fi; done
263 # This is for old profile-based OBS project optimizations.
264 # In 4.0 unified build env, this if statement is always true.
265 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
269 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/mobile
270 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
274 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../mobile/res/; fi; done
279 # This is for old profile-based OBS project optimizations.
280 # In 4.0 unified build env, this if statement is always true.
281 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
285 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/tv
286 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
290 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../tv/res/; fi; done
295 # This is for old profile-based OBS project optimizations.
296 # In 4.0 unified build env, this if statement is always true.
297 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
301 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/ivi
302 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
306 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../ivi/res/; fi; done
311 # This is for old profile-based OBS project optimizations.
312 # In 4.0 unified build env, this if statement is always true.
313 # Common is blocked because wearable has extra efl-ext entries, which will be
314 # removed for unified build env later.
315 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
316 pushd build_wearable_cir
319 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-circle
320 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
321 mv bin wearable-circle/
322 mkdir -p wearable-circle/res
324 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-circle/res/; fi; done
328 pushd build_wearable_rec
331 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-rectangle
332 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
333 mv bin wearable-rectangle/
334 mkdir -p wearable-rectangle/res
336 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-rectangle/res/; fi; done
343 %files -f %{name}.lang
344 %manifest %{name}.manifest
345 %defattr(-,root,root,-)
346 %{TZ_SYS_RO_PACKAGES}/%{name}.xml
349 # This is for old profile-based OBS project optimizations.
350 # In 4.0 unified build env, this if statement is always true.
351 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
353 pushd %{TZ_SYS_RO_APP}/ise-default/common/
356 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
357 if [ "$1" = "2" ]; then
360 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
363 for FILE in bin/*; do ln -sf "../common/${FILE}" ../bin; done
364 for FILE in res/*; do ln -sf "../common/${FILE}" ../res; done
366 %preun profile_common
367 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
368 if [ "$1" = "0" ]; then
369 pushd %{TZ_SYS_RO_APP}/ise-default
372 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
376 %files profile_common
377 %manifest %{name}.manifest
378 %defattr(-,root,root,-)
379 %{TZ_SYS_RO_APP}/ise-default/common/*
383 # This is for old profile-based OBS project optimizations.
384 # In 4.0 unified build env, this if statement is always true.
385 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
387 pushd %{TZ_SYS_RO_APP}/ise-default/mobile/
390 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
391 if [ "$1" = "2" ]; then
394 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
397 for FILE in bin/*; do ln -sf "../mobile/${FILE}" ../bin; done
398 for FILE in res/*; do ln -sf "../mobile/${FILE}" ../res; done
400 %preun profile_mobile
401 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
402 if [ "$1" = "0" ]; then
403 pushd %{TZ_SYS_RO_APP}/ise-default
406 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
410 %files profile_mobile
411 %manifest %{name}.manifest
412 %defattr(-,root,root,-)
413 %{TZ_SYS_RO_APP}/ise-default/mobile/*
417 # This is for old profile-based OBS project optimizations.
418 # In 4.0 unified build env, this if statement is always true.
419 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
421 pushd %{TZ_SYS_RO_APP}/ise-default/tv/
424 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
425 if [ "$1" = "2" ]; then
428 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
431 for FILE in bin/*; do ln -sf "../tv/${FILE}" ../bin; done
432 for FILE in res/*; do ln -sf "../tv/${FILE}" ../res; done
435 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
436 if [ "$1" = "0" ]; then
437 pushd %{TZ_SYS_RO_APP}/ise-default
440 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
445 %manifest %{name}.manifest
446 %defattr(-,root,root,-)
447 %{TZ_SYS_RO_APP}/ise-default/tv/*
451 # This is for old profile-based OBS project optimizations.
452 # In 4.0 unified build env, this if statement is always true.
453 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
455 pushd %{TZ_SYS_RO_APP}/ise-default/ivi/
458 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
459 if [ "$1" = "2" ]; then
462 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
465 for FILE in bin/*; do ln -sf "../ivi/${FILE}" ../bin; done
466 for FILE in res/*; do ln -sf "../ivi/${FILE}" ../res; done
469 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
470 if [ "$1" = "0" ]; then
471 pushd %{TZ_SYS_RO_APP}/ise-default
474 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
479 %manifest %{name}.manifest
480 %defattr(-,root,root,-)
481 %{TZ_SYS_RO_APP}/ise-default/ivi/*
485 # This is for old profile-based OBS project optimizations.
486 # In 4.0 unified build env, this if statement is always true.
487 # Common is blocked because wearable has extra efl-ext entries, which will be
488 # removed for unified build env later.
489 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
490 %files profile_wearable
492 %post profile_wearable-extension-circle
493 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-circle/
496 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
497 if [ "$1" = "2" ]; then
500 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
503 for FILE in bin/*; do ln -sf "../wearable-circle/${FILE}" ../bin; done
504 for FILE in res/*; do ln -sf "../wearable-circle/${FILE}" ../res; done
506 %preun profile_wearable-extension-circle
507 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
508 if [ "$1" = "0" ]; then
509 pushd %{TZ_SYS_RO_APP}/ise-default
512 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
516 %files profile_wearable-extension-circle
517 %manifest %{name}.manifest
518 %defattr(-,root,root,-)
519 %{TZ_SYS_RO_APP}/ise-default/wearable-circle/*
522 %post profile_wearable-extension-rectangle
523 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/
526 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
527 if [ "$1" = "2" ]; then
530 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
533 for FILE in bin/*; do ln -sf "../wearable-rectangle/${FILE}" ../bin; done
534 for FILE in res/*; do ln -sf "../wearable-rectangle/${FILE}" ../res; done
536 %preun profile_wearable-extension-rectangle
537 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
538 if [ "$1" = "0" ]; then
539 pushd %{TZ_SYS_RO_APP}/ise-default
542 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
546 %files profile_wearable-extension-rectangle
547 %manifest %{name}.manifest
548 %defattr(-,root,root,-)
549 %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/*