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 BuildRequires: pkgconfig(glib-2.0)
29 BuildRequires: pkgconfig(gio-2.0)
31 # This is for old profile-based OBS project optimizations.
32 # In 4.0 unified build env, this if statement is always true.
33 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
34 BuildRequires: pkgconfig(cbhm)
36 Requires: %{name}-compat = %{version}-%{release}
37 # This is for old profile-based OBS project optimizations.
38 # In 4.0 unified build env, this if statement is always true.
39 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
40 Recommends: %{name}-profile_common = %{version}-%{release}
44 Description: Tizen keyboard
47 # This is for old profile-based OBS project optimizations.
48 # In 4.0 unified build env, this if statement is always true.
49 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
50 %package profile_common
51 Summary: ise-default binaries and resources without flavors
52 Provides: %{name}-compat = %{version}-%{release}
53 Conflicts: %{name}-profile_mobile
54 Conflicts: %{name}-profile_tv
55 Conflicts: %{name}-profile_wearable
56 Conflicts: %{name}-profile_ivi
57 %description profile_common
58 Tizen keyboard (ise-default) binaries and resources without flavors, intended
59 to support common profiles, which does not supply any additional options
63 # This is for old profile-based OBS project optimizations.
64 # In 4.0 unified build env, this if statement is always true.
65 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
66 %package profile_mobile
67 Summary: ise-default binaries and resources with mobile profile
68 Provides: %{name}-compat = %{version}-%{release}
69 Conflicts: %{name}-profile_common
70 Conflicts: %{name}-profile_tv
71 Conflicts: %{name}-profile_wearable
72 Conflicts: %{name}-profile_ivi
73 %description profile_mobile
74 Tizen keyboard (ise-default) binaries and resources with mobile options.
75 This is intended to support mobile profiles.
78 # This is for old profile-based OBS project optimizations.
79 # In 4.0 unified build env, this if statement is always true.
80 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
82 Summary: ise-default binaries and resources with tv profile
83 Provides: %{name}-compat = %{version}-%{release}
84 Conflicts: %{name}-profile_common
85 Conflicts: %{name}-profile_mobile
86 Conflicts: %{name}-profile_wearable
87 Conflicts: %{name}-profile_ivi
88 %description profile_tv
89 Tizen keyboard (ise-default) binaries and resources with tv options.
90 This is intended to support tv profiles.
93 # This is for old profile-based OBS project optimizations.
94 # In 4.0 unified build env, this if statement is always true.
95 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
97 Summary: ise-default binaries and resources with ivi profile
98 Provides: %{name}-compat = %{version}-%{release}
99 Conflicts: %{name}-profile_common
100 Conflicts: %{name}-profile_mobile
101 Conflicts: %{name}-profile_wearable
102 Conflicts: %{name}-profile_tv
103 %description profile_ivi
104 Tizen keyboard (ise-default) binaries and resources with ivi options.
105 This is intended to support ivi profiles.
108 # This is for old profile-based OBS project optimizations.
109 # In 4.0 unified build env, this if statement is always true.
110 # Common is blocked because wearable has extra efl-ext entries, which will be
111 # removed for unified build env later.
112 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
113 %package profile_wearable
114 Summary: Meta package of ise-default for wearable profiles. (circle/rectangle)
115 Provides: %{name}-compat = %{version}-%{release}
116 Conflicts: %{name}-profile_common
117 Conflicts: %{name}-profile_mobile
118 Conflicts: %{name}-profile_tv
119 Conflicts: %{name}-profile_ivi
120 Requires: %{name}-profile_wearable-extension = %{version}-%{release}
121 Recommends: %{name}-profile_wearable-extension-circle = %{version}-%{release}
122 %description profile_wearable
123 Meta package of Tizen keyboard (ise-default) binaries and resources with
126 %package profile_wearable-extension-circle
127 Summary: ise-default binaries and resources with wearable profile (circle)
128 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
129 Conflicts: %{name}-profile_wearable-extension-rectangle
130 %description profile_wearable-extension-circle
131 Tizen keyboard (ise-default) binaries and resources with wearable options.
132 This is intended to support wearable profiles with circle display.
134 %package profile_wearable-extension-rectangle
135 Summary: ise-default binaries and resources with wearable profile (rectangle)
136 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
137 Conflicts: %{name}-profile_wearable-extension-circle
138 %description profile_wearable-extension-rectangle
139 Tizen keyboard (ise-default) binaries and resources with wearable options.
140 This is intended to support wearable profiles with rectangle display.
148 export CFLAGS_BASE="${CFLAGS} -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
149 export CXXFLAGS_BASE="${CXXFLAGS} -DTIZEN_DEBUG_ENABLE -std=c++11 -fvisibility-inlines-hidden -fvisibility=hidden"
150 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
153 rm -rf CMakeCache.txt
155 # This is for old profile-based OBS project optimizations.
156 # In 4.0 unified build env, this if statement is always true.
157 # Common is blocked because wearable has extra efl-ext entries, which will be
158 # removed for unified build env later.
159 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
160 mkdir -p build_wearable_rec
161 pushd build_wearable_rec
162 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE";
163 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE";
164 %cmake .. -DTARGET=wearable \
165 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
166 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
168 make %{?jobs:-j%jobs}
171 mkdir -p build_wearable_cir
172 pushd build_wearable_cir
173 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
174 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
175 %cmake .. -DTARGET=wearable \
176 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
177 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
179 make %{?jobs:-j%jobs}
184 # This is for old profile-based OBS project optimizations.
185 # In 4.0 unified build env, this if statement is always true.
186 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
187 mkdir -p build_mobile
189 export CFLAGS="${CFLAGS_BASE} -D_MOBILE";
190 export CXXFLAGS="${CXXFLAGS_BASE} -D_MOBILE";
191 %cmake .. -DTARGET=mobile \
192 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
193 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
196 make %{?jobs:-j%jobs}
200 # This is for old profile-based OBS project optimizations.
201 # In 4.0 unified build env, this if statement is always true.
202 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
205 export CFLAGS="${CFLAGS_BASE} -D_TV";
206 export CXXFLAGS="${CXXFLAGS_BASE} -D_TV";
207 %cmake .. -DTARGET=tv \
208 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
209 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
211 make %{?jobs:-j%jobs}
215 # This is for old profile-based OBS project optimizations.
216 # In 4.0 unified build env, this if statement is always true.
217 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
220 export CFLAGS="${CFLAGS_BASE} -D_IVI";
221 export CXXFLAGS="${CXXFLAGS_BASE} -D_IVI";
222 %cmake .. -DTARGET=ivi \
223 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
224 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
226 make %{?jobs:-j%jobs}
230 # This is for old profile-based OBS project optimizations.
231 # In 4.0 unified build env, this if statement is always true.
232 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
233 export CFLAGS="${CFLAGS_BASE}";
234 export CXXFLAGS="${CXXFLAGS_BASE}";
235 %cmake . -DTARGET=common \
236 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
237 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
239 make %{?jobs:-j%jobs}
245 # This is for old profile-based OBS project optimizations.
246 # In 4.0 unified build env, this if statement is always true.
247 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
249 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/common
250 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
254 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../common/res/; fi; done
259 # This is for old profile-based OBS project optimizations.
260 # In 4.0 unified build env, this if statement is always true.
261 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
265 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/mobile
266 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
270 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../mobile/res/; fi; done
275 # This is for old profile-based OBS project optimizations.
276 # In 4.0 unified build env, this if statement is always true.
277 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
281 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/tv
282 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
286 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../tv/res/; fi; done
291 # This is for old profile-based OBS project optimizations.
292 # In 4.0 unified build env, this if statement is always true.
293 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
297 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/ivi
298 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
302 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../ivi/res/; fi; done
307 # This is for old profile-based OBS project optimizations.
308 # In 4.0 unified build env, this if statement is always true.
309 # Common is blocked because wearable has extra efl-ext entries, which will be
310 # removed for unified build env later.
311 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
312 pushd build_wearable_cir
315 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-circle
316 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
317 mv bin wearable-circle/
318 mkdir -p wearable-circle/res
320 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-circle/res/; fi; done
324 pushd build_wearable_rec
327 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-rectangle
328 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
329 mv bin wearable-rectangle/
330 mkdir -p wearable-rectangle/res
332 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-rectangle/res/; fi; done
339 %files -f %{name}.lang
340 %manifest %{name}.manifest
341 %defattr(-,root,root,-)
342 %{TZ_SYS_RO_PACKAGES}/%{name}.xml
345 # This is for old profile-based OBS project optimizations.
346 # In 4.0 unified build env, this if statement is always true.
347 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
349 pushd %{TZ_SYS_RO_APP}/ise-default/common/
352 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
353 if [ "$1" = "2" ]; then
356 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
359 for FILE in bin/*; do ln -sf "../common/${FILE}" ../bin; done
360 for FILE in res/*; do ln -sf "../common/${FILE}" ../res; done
362 %preun profile_common
363 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
364 if [ "$1" = "0" ]; then
365 pushd %{TZ_SYS_RO_APP}/ise-default
368 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
372 %files profile_common
373 %manifest %{name}.manifest
374 %defattr(-,root,root,-)
375 %{TZ_SYS_RO_APP}/ise-default/common/*
379 # This is for old profile-based OBS project optimizations.
380 # In 4.0 unified build env, this if statement is always true.
381 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
383 pushd %{TZ_SYS_RO_APP}/ise-default/mobile/
386 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
387 if [ "$1" = "2" ]; then
390 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
393 for FILE in bin/*; do ln -sf "../mobile/${FILE}" ../bin; done
394 for FILE in res/*; do ln -sf "../mobile/${FILE}" ../res; done
396 %preun profile_mobile
397 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
398 if [ "$1" = "0" ]; then
399 pushd %{TZ_SYS_RO_APP}/ise-default
402 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
406 %files profile_mobile
407 %manifest %{name}.manifest
408 %defattr(-,root,root,-)
409 %{TZ_SYS_RO_APP}/ise-default/mobile/*
413 # This is for old profile-based OBS project optimizations.
414 # In 4.0 unified build env, this if statement is always true.
415 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
417 pushd %{TZ_SYS_RO_APP}/ise-default/tv/
420 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
421 if [ "$1" = "2" ]; then
424 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
427 for FILE in bin/*; do ln -sf "../tv/${FILE}" ../bin; done
428 for FILE in res/*; do ln -sf "../tv/${FILE}" ../res; done
431 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
432 if [ "$1" = "0" ]; then
433 pushd %{TZ_SYS_RO_APP}/ise-default
436 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
441 %manifest %{name}.manifest
442 %defattr(-,root,root,-)
443 %{TZ_SYS_RO_APP}/ise-default/tv/*
447 # This is for old profile-based OBS project optimizations.
448 # In 4.0 unified build env, this if statement is always true.
449 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
451 pushd %{TZ_SYS_RO_APP}/ise-default/ivi/
454 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
455 if [ "$1" = "2" ]; then
458 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
461 for FILE in bin/*; do ln -sf "../ivi/${FILE}" ../bin; done
462 for FILE in res/*; do ln -sf "../ivi/${FILE}" ../res; done
465 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
466 if [ "$1" = "0" ]; then
467 pushd %{TZ_SYS_RO_APP}/ise-default
470 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
475 %manifest %{name}.manifest
476 %defattr(-,root,root,-)
477 %{TZ_SYS_RO_APP}/ise-default/ivi/*
481 # This is for old profile-based OBS project optimizations.
482 # In 4.0 unified build env, this if statement is always true.
483 # Common is blocked because wearable has extra efl-ext entries, which will be
484 # removed for unified build env later.
485 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
486 %files profile_wearable
488 %post profile_wearable-extension-circle
489 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-circle/
492 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
493 if [ "$1" = "2" ]; then
496 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
499 for FILE in bin/*; do ln -sf "../wearable-circle/${FILE}" ../bin; done
500 for FILE in res/*; do ln -sf "../wearable-circle/${FILE}" ../res; done
502 %preun profile_wearable-extension-circle
503 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
504 if [ "$1" = "0" ]; then
505 pushd %{TZ_SYS_RO_APP}/ise-default
508 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
512 %files profile_wearable-extension-circle
513 %manifest %{name}.manifest
514 %defattr(-,root,root,-)
515 %{TZ_SYS_RO_APP}/ise-default/wearable-circle/*
518 %post profile_wearable-extension-rectangle
519 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/
522 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
523 if [ "$1" = "2" ]; then
526 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
529 for FILE in bin/*; do ln -sf "../wearable-rectangle/${FILE}" ../bin; done
530 for FILE in res/*; do ln -sf "../wearable-rectangle/${FILE}" ../res; done
532 %preun profile_wearable-extension-rectangle
533 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
534 if [ "$1" = "0" ]; then
535 pushd %{TZ_SYS_RO_APP}/ise-default
538 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
542 %files profile_wearable-extension-rectangle
543 %manifest %{name}.manifest
544 %defattr(-,root,root,-)
545 %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/*