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 Requires: ise-engine-tables
27 Requires: ise-engine-tables-zh
28 Requires: ise-engine-hangul
29 Requires: ise-engine-glm
30 Requires: ise-engine-anthy
31 Requires: ise-engine-default
33 # This is for old profile-based OBS project optimizations.
34 # In 4.0 unified build env, this if statement is always true.
35 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
36 BuildRequires: pkgconfig(cbhm)
38 Requires: %{name}-compat = %{version}-%{release}
39 # This is for old profile-based OBS project optimizations.
40 # In 4.0 unified build env, this if statement is always true.
41 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
42 Recommends: %{name}-profile_common = %{version}-%{release}
46 Description: Tizen keyboard
49 # This is for old profile-based OBS project optimizations.
50 # In 4.0 unified build env, this if statement is always true.
51 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
52 %package profile_common
53 Summary: ise-default binaries and resources without flavors
54 Provides: %{name}-compat = %{version}-%{release}
55 Conflicts: %{name}-profile_mobile
56 Conflicts: %{name}-profile_tv
57 Conflicts: %{name}-profile_wearable
58 Conflicts: %{name}-profile_ivi
59 %description profile_common
60 Tizen keyboard (ise-default) binaries and resources without flavors, intended
61 to support common profiles, which does not supply any additional options
65 # This is for old profile-based OBS project optimizations.
66 # In 4.0 unified build env, this if statement is always true.
67 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
68 %package profile_mobile
69 Summary: ise-default binaries and resources with mobile profile
70 Provides: %{name}-compat = %{version}-%{release}
71 Conflicts: %{name}-profile_common
72 Conflicts: %{name}-profile_tv
73 Conflicts: %{name}-profile_wearable
74 Conflicts: %{name}-profile_ivi
75 %description profile_mobile
76 Tizen keyboard (ise-default) binaries and resources with mobile options.
77 This is intended to support mobile profiles.
80 # This is for old profile-based OBS project optimizations.
81 # In 4.0 unified build env, this if statement is always true.
82 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
84 Summary: ise-default binaries and resources with tv profile
85 Provides: %{name}-compat = %{version}-%{release}
86 Conflicts: %{name}-profile_common
87 Conflicts: %{name}-profile_mobile
88 Conflicts: %{name}-profile_wearable
89 Conflicts: %{name}-profile_ivi
90 %description profile_tv
91 Tizen keyboard (ise-default) binaries and resources with tv options.
92 This is intended to support tv profiles.
95 # This is for old profile-based OBS project optimizations.
96 # In 4.0 unified build env, this if statement is always true.
97 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
99 Summary: ise-default binaries and resources with ivi profile
100 Provides: %{name}-compat = %{version}-%{release}
101 Conflicts: %{name}-profile_common
102 Conflicts: %{name}-profile_mobile
103 Conflicts: %{name}-profile_wearable
104 Conflicts: %{name}-profile_tv
105 %description profile_ivi
106 Tizen keyboard (ise-default) binaries and resources with ivi options.
107 This is intended to support ivi profiles.
110 # This is for old profile-based OBS project optimizations.
111 # In 4.0 unified build env, this if statement is always true.
112 # Common is blocked because wearable has extra efl-ext entries, which will be
113 # removed for unified build env later.
114 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
115 %package profile_wearable
116 Summary: Meta package of ise-default for wearable profiles. (circle/rectangle)
117 Provides: %{name}-compat = %{version}-%{release}
118 Conflicts: %{name}-profile_common
119 Conflicts: %{name}-profile_mobile
120 Conflicts: %{name}-profile_tv
121 Conflicts: %{name}-profile_ivi
122 Requires: %{name}-profile_wearable-extension = %{version}-%{release}
123 Recommends: %{name}-profile_wearable-extension-circle = %{version}-%{release}
124 %description profile_wearable
125 Meta package of Tizen keyboard (ise-default) binaries and resources with
128 %package profile_wearable-extension-circle
129 Summary: ise-default binaries and resources with wearable profile (circle)
130 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
131 Conflicts: %{name}-profile_wearable-extension-rectangle
132 %description profile_wearable-extension-circle
133 Tizen keyboard (ise-default) binaries and resources with wearable options.
134 This is intended to support wearable profiles with circle display.
136 %package profile_wearable-extension-rectangle
137 Summary: ise-default binaries and resources with wearable profile (rectangle)
138 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
139 Conflicts: %{name}-profile_wearable-extension-circle
140 %description profile_wearable-extension-rectangle
141 Tizen keyboard (ise-default) binaries and resources with wearable options.
142 This is intended to support wearable profiles with rectangle display.
150 export CFLAGS_BASE="${CFLGAS} -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
151 export CXXFLAGS_BASE="${CXXFLAGS} -DTIZEN_DEBUG_ENABLE -std=c++11 -fvisibility-inlines-hidden"
152 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
155 rm -rf CMakeCache.txt
157 # This is for old profile-based OBS project optimizations.
158 # In 4.0 unified build env, this if statement is always true.
159 # Common is blocked because wearable has extra efl-ext entries, which will be
160 # removed for unified build env later.
161 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
162 mkdir -p build_wearable_rec
163 pushd build_wearable_rec
164 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE";
165 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE";
166 %cmake .. -DTARGET=wearable \
167 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
168 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
170 make %{?jobs:-j%jobs}
173 mkdir -p build_wearable_cir
174 pushd build_wearable_cir
175 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
176 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
177 %cmake .. -DTARGET=wearable \
178 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
179 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
181 make %{?jobs:-j%jobs}
186 # This is for old profile-based OBS project optimizations.
187 # In 4.0 unified build env, this if statement is always true.
188 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
189 mkdir -p build_mobile
191 export CFLAGS="${CFLAGS_BASE} -D_MOBILE";
192 export CXXFLAGS="${CXXFLAGS_BASE} -D_MOBILE";
193 %cmake .. -DTARGET=mobile \
194 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
195 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
198 make %{?jobs:-j%jobs}
202 # This is for old profile-based OBS project optimizations.
203 # In 4.0 unified build env, this if statement is always true.
204 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
207 export CFLAGS="${CFLAGS_BASE} -D_TV";
208 export CXXFLAGS="${CXXFLAGS_BASE} -D_TV";
209 %cmake .. -DTARGET=tv \
210 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
211 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
213 make %{?jobs:-j%jobs}
217 # This is for old profile-based OBS project optimizations.
218 # In 4.0 unified build env, this if statement is always true.
219 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
222 export CFLAGS="${CFLAGS_BASE} -D_IVI";
223 export CXXFLAGS="${CXXFLAGS_BASE} -D_IVI";
224 %cmake .. -DTARGET=ivi \
225 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
226 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
228 make %{?jobs:-j%jobs}
232 # This is for old profile-based OBS project optimizations.
233 # In 4.0 unified build env, this if statement is always true.
234 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
235 export CFLAGS="${CFLAGS_BASE}";
236 export CXXFLAGS="${CXXFLAGS_BASE}";
237 %cmake . -DTARGET=common \
238 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
239 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
241 make %{?jobs:-j%jobs}
247 # This is for old profile-based OBS project optimizations.
248 # In 4.0 unified build env, this if statement is always true.
249 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
251 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/common
252 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
256 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../common/res/; fi; done
261 # This is for old profile-based OBS project optimizations.
262 # In 4.0 unified build env, this if statement is always true.
263 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
267 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/mobile
268 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
272 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../mobile/res/; fi; done
277 # This is for old profile-based OBS project optimizations.
278 # In 4.0 unified build env, this if statement is always true.
279 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
283 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/tv
284 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
288 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../tv/res/; fi; done
293 # This is for old profile-based OBS project optimizations.
294 # In 4.0 unified build env, this if statement is always true.
295 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
299 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/ivi
300 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
304 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../ivi/res/; fi; done
309 # This is for old profile-based OBS project optimizations.
310 # In 4.0 unified build env, this if statement is always true.
311 # Common is blocked because wearable has extra efl-ext entries, which will be
312 # removed for unified build env later.
313 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
314 pushd build_wearable_cir
317 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-circle
318 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
319 mv bin wearable-circle/
320 mkdir -p wearable-circle/res
322 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-circle/res/; fi; done
326 pushd build_wearable_rec
329 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-rectangle
330 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
331 mv bin wearable-rectangle/
332 mkdir -p wearable-rectangle/res
334 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-rectangle/res/; fi; done
341 %files -f %{name}.lang
342 %manifest %{name}.manifest
343 %defattr(-,root,root,-)
344 %{TZ_SYS_RO_PACKAGES}/%{name}.xml
347 # This is for old profile-based OBS project optimizations.
348 # In 4.0 unified build env, this if statement is always true.
349 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
351 pushd %{TZ_SYS_RO_APP}/ise-default/common/
354 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
355 if [ "$1" = "2" ]; then
358 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
361 for FILE in bin/*; do ln -sf "../common/${FILE}" ../bin; done
362 for FILE in res/*; do ln -sf "../common/${FILE}" ../res; done
364 %preun profile_common
365 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
366 if [ "$1" = "0" ]; then
367 pushd %{TZ_SYS_RO_APP}/ise-default
370 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
374 %files profile_common
375 %manifest %{name}.manifest
376 %defattr(-,root,root,-)
377 %{TZ_SYS_RO_APP}/ise-default/common/*
381 # This is for old profile-based OBS project optimizations.
382 # In 4.0 unified build env, this if statement is always true.
383 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
385 pushd %{TZ_SYS_RO_APP}/ise-default/mobile/
388 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
389 if [ "$1" = "2" ]; then
392 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
395 for FILE in bin/*; do ln -sf "../mobile/${FILE}" ../bin; done
396 for FILE in res/*; do ln -sf "../mobile/${FILE}" ../res; done
398 %preun profile_mobile
399 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
400 if [ "$1" = "0" ]; then
401 pushd %{TZ_SYS_RO_APP}/ise-default
404 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
408 %files profile_mobile
409 %manifest %{name}.manifest
410 %defattr(-,root,root,-)
411 %{TZ_SYS_RO_APP}/ise-default/mobile/*
415 # This is for old profile-based OBS project optimizations.
416 # In 4.0 unified build env, this if statement is always true.
417 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
419 pushd %{TZ_SYS_RO_APP}/ise-default/tv/
422 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
423 if [ "$1" = "2" ]; then
426 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
429 for FILE in bin/*; do ln -sf "../tv/${FILE}" ../bin; done
430 for FILE in res/*; do ln -sf "../tv/${FILE}" ../res; done
433 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
434 if [ "$1" = "0" ]; then
435 pushd %{TZ_SYS_RO_APP}/ise-default
438 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
443 %manifest %{name}.manifest
444 %defattr(-,root,root,-)
445 %{TZ_SYS_RO_APP}/ise-default/tv/*
449 # This is for old profile-based OBS project optimizations.
450 # In 4.0 unified build env, this if statement is always true.
451 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
453 pushd %{TZ_SYS_RO_APP}/ise-default/ivi/
456 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
457 if [ "$1" = "2" ]; then
460 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
463 for FILE in bin/*; do ln -sf "../ivi/${FILE}" ../bin; done
464 for FILE in res/*; do ln -sf "../ivi/${FILE}" ../res; done
467 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
468 if [ "$1" = "0" ]; then
469 pushd %{TZ_SYS_RO_APP}/ise-default
472 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
477 %manifest %{name}.manifest
478 %defattr(-,root,root,-)
479 %{TZ_SYS_RO_APP}/ise-default/ivi/*
483 # This is for old profile-based OBS project optimizations.
484 # In 4.0 unified build env, this if statement is always true.
485 # Common is blocked because wearable has extra efl-ext entries, which will be
486 # removed for unified build env later.
487 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
488 %files profile_wearable
490 %post profile_wearable-extension-circle
491 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-circle/
494 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
495 if [ "$1" = "2" ]; then
498 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
501 for FILE in bin/*; do ln -sf "../wearable-circle/${FILE}" ../bin; done
502 for FILE in res/*; do ln -sf "../wearable-circle/${FILE}" ../res; done
504 %preun profile_wearable-extension-circle
505 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
506 if [ "$1" = "0" ]; then
507 pushd %{TZ_SYS_RO_APP}/ise-default
510 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
514 %files profile_wearable-extension-circle
515 %manifest %{name}.manifest
516 %defattr(-,root,root,-)
517 %{TZ_SYS_RO_APP}/ise-default/wearable-circle/*
520 %post profile_wearable-extension-rectangle
521 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/
524 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
525 if [ "$1" = "2" ]; then
528 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
531 for FILE in bin/*; do ln -sf "../wearable-rectangle/${FILE}" ../bin; done
532 for FILE in res/*; do ln -sf "../wearable-rectangle/${FILE}" ../res; done
534 %preun profile_wearable-extension-rectangle
535 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
536 if [ "$1" = "0" ]; then
537 pushd %{TZ_SYS_RO_APP}/ise-default
540 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
544 %files profile_wearable-extension-rectangle
545 %manifest %{name}.manifest
546 %defattr(-,root,root,-)
547 %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/*