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-appfw-package-manager)
23 BuildRequires: pkgconfig(capi-media-sound-manager)
24 BuildRequires: pkgconfig(capi-ui-inputmethod)
25 BuildRequires: pkgconfig(smartreply)
26 BuildRequires: pkgconfig(key-manager)
27 BuildRequires: pkgconfig(ode)
28 BuildRequires: pkgconfig(capi-system-system-settings)
29 BuildRequires: pkgconfig(glib-2.0)
30 BuildRequires: pkgconfig(dbus-1)
31 BuildRequires: pkgconfig(gio-2.0)
32 BuildRequires: pkgconfig(pkgmgr-info)
33 BuildRequires: pkgconfig(capi-ui-sticker-consumer)
34 BuildRequires: pkgconfig(capi-content-mime-type)
35 BuildRequires: pkgconfig(json-glib-1.0)
36 BuildRequires: pkgconfig(bundle)
37 BuildRequires: pkgconfig(rpc-port)
38 BuildRequires: pkgconfig(capi-appfw-event)
39 BuildRequires: pkgconfig(notification)
40 Requires: ise-engine-glm
41 Requires: ise-engine-default
43 # This is for old profile-based OBS project optimizations.
44 # In 4.0 unified build env, this if statement is always true.
45 Requires: %{name}-compat = %{version}-%{release}
46 # This is for old profile-based OBS project optimizations.
47 # In 4.0 unified build env, this if statement is always true.
48 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
49 Recommends: %{name}-profile_common = %{version}-%{release}
53 Description: Tizen keyboard
56 # This is for old profile-based OBS project optimizations.
57 # In 4.0 unified build env, this if statement is always true.
58 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
59 %package profile_common
60 Summary: ise-default binaries and resources without flavors
61 Provides: %{name}-compat = %{version}-%{release}
62 Conflicts: %{name}-profile_mobile
63 Conflicts: %{name}-profile_tv
64 Conflicts: %{name}-profile_wearable
65 Conflicts: %{name}-profile_ivi
66 %description profile_common
67 Tizen keyboard (ise-default) binaries and resources without flavors, intended
68 to support common profiles, which does not supply any additional options
72 # This is for old profile-based OBS project optimizations.
73 # In 4.0 unified build env, this if statement is always true.
74 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
75 %package profile_mobile
76 Summary: ise-default binaries and resources with mobile profile
77 Provides: %{name}-compat = %{version}-%{release}
78 Conflicts: %{name}-profile_common
79 Conflicts: %{name}-profile_tv
80 Conflicts: %{name}-profile_wearable
81 Conflicts: %{name}-profile_ivi
82 %description profile_mobile
83 Tizen keyboard (ise-default) binaries and resources with mobile options.
84 This is intended to support mobile profiles.
87 # This is for old profile-based OBS project optimizations.
88 # In 4.0 unified build env, this if statement is always true.
89 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
91 Summary: ise-default binaries and resources with tv profile
92 Provides: %{name}-compat = %{version}-%{release}
93 Conflicts: %{name}-profile_common
94 Conflicts: %{name}-profile_mobile
95 Conflicts: %{name}-profile_wearable
96 Conflicts: %{name}-profile_ivi
97 %description profile_tv
98 Tizen keyboard (ise-default) binaries and resources with tv options.
99 This is intended to support tv profiles.
102 # This is for old profile-based OBS project optimizations.
103 # In 4.0 unified build env, this if statement is always true.
104 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv"
106 Summary: ise-default binaries and resources with ivi profile
107 Provides: %{name}-compat = %{version}-%{release}
108 Conflicts: %{name}-profile_common
109 Conflicts: %{name}-profile_mobile
110 Conflicts: %{name}-profile_wearable
111 Conflicts: %{name}-profile_tv
112 %description profile_ivi
113 Tizen keyboard (ise-default) binaries and resources with ivi options.
114 This is intended to support ivi profiles.
117 # This is for old profile-based OBS project optimizations.
118 # In 4.0 unified build env, this if statement is always true.
119 # Common is blocked because wearable has extra efl-ext entries, which will be
120 # removed for unified build env later.
121 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
122 %package profile_wearable
123 Summary: Meta package of ise-default for wearable profiles. (circle/rectangle)
124 Provides: %{name}-compat = %{version}-%{release}
125 Conflicts: %{name}-profile_common
126 Conflicts: %{name}-profile_mobile
127 Conflicts: %{name}-profile_tv
128 Conflicts: %{name}-profile_ivi
129 Requires: %{name}-profile_wearable-extension = %{version}-%{release}
130 Recommends: %{name}-profile_wearable-extension-circle = %{version}-%{release}
131 %description profile_wearable
132 Meta package of Tizen keyboard (ise-default) binaries and resources with
135 %package profile_wearable-extension-circle
136 Summary: ise-default binaries and resources with wearable profile (circle)
137 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
138 Conflicts: %{name}-profile_wearable-extension-rectangle
139 %description profile_wearable-extension-circle
140 Tizen keyboard (ise-default) binaries and resources with wearable options.
141 This is intended to support wearable profiles with circle display.
143 %package profile_wearable-extension-rectangle
144 Summary: ise-default binaries and resources with wearable profile (rectangle)
145 Provides: %{name}-profile_wearable-extension = %{version}-%{release}
146 Conflicts: %{name}-profile_wearable-extension-circle
147 %description profile_wearable-extension-rectangle
148 Tizen keyboard (ise-default) binaries and resources with wearable options.
149 This is intended to support wearable profiles with rectangle display.
152 %package -n ise-default-config
153 Summary: ISE config file
155 Requires: %{name} = %{version}-%{release}
157 %description -n ise-default-config
158 ISE configuration file for default setting
165 export CFLAGS_BASE="${CFLAGS} -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
166 export CXXFLAGS_BASE="${CXXFLAGS} -DTIZEN_DEBUG_ENABLE -std=c++11 -fvisibility-inlines-hidden -fvisibility=hidden"
167 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE"
169 export LD_LIBRARY_PATH=%{TZ_SYS_RO_APP}/ise-default/lib
172 rm -rf CMakeCache.txt
174 # This is for old profile-based OBS project optimizations.
175 # In 4.0 unified build env, this if statement is always true.
176 # Common is blocked because wearable has extra efl-ext entries, which will be
177 # removed for unified build env later.
178 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
179 mkdir -p build_wearable_rec
180 pushd build_wearable_rec
181 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE";
182 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE";
183 %cmake .. -DTARGET=wearable \
184 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
185 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
187 make %{?jobs:-j%jobs}
190 mkdir -p build_wearable_cir
191 pushd build_wearable_cir
192 export CFLAGS="${CFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
193 export CXXFLAGS="${CXXFLAGS_BASE} -D_WEARABLE -D_CIRCLE";
194 %cmake .. -DTARGET=wearable \
195 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
196 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
198 make %{?jobs:-j%jobs}
203 # This is for old profile-based OBS project optimizations.
204 # In 4.0 unified build env, this if statement is always true.
205 %if "%{?profile}" != "tv" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
206 mkdir -p build_mobile
208 export CFLAGS="${CFLAGS_BASE} -D_MOBILE";
209 export CXXFLAGS="${CXXFLAGS_BASE} -D_MOBILE";
210 %cmake .. -DTARGET=mobile \
211 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
212 -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}" != "ivi" && "%{?profile}" != "common"
224 export CFLAGS="${CFLAGS_BASE} -D_TV";
225 export CXXFLAGS="${CXXFLAGS_BASE} -D_TV";
226 %cmake .. -DTARGET=tv \
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}" != "common"
239 export CFLAGS="${CFLAGS_BASE} -D_IVI";
240 export CXXFLAGS="${CXXFLAGS_BASE} -D_IVI";
241 %cmake .. -DTARGET=ivi \
242 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
243 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
245 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"
252 export CFLAGS="${CFLAGS_BASE} -D_COMMON";
253 export CXXFLAGS="${CXXFLAGS_BASE} -D_COMMON";
254 %cmake . -DTARGET=common \
255 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \
256 -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \
259 make %{?jobs:-j%jobs}
266 %__mkdir_p %{buildroot}%{_sysconfdir}/ise/conf
267 %__cp ise-default-config/config/* %{buildroot}%{_sysconfdir}/ise/conf
269 # This is for old profile-based OBS project optimizations.
270 # In 4.0 unified build env, this if statement is always true.
271 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
273 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/common
274 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
278 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../common/res/; fi; done
283 # This is for old profile-based OBS project optimizations.
284 # In 4.0 unified build env, this if statement is always true.
285 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
289 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/mobile
290 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
294 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../mobile/res/; fi; done
299 # This is for old profile-based OBS project optimizations.
300 # In 4.0 unified build env, this if statement is always true.
301 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
305 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/tv
306 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
310 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../tv/res/; fi; done
315 # This is for old profile-based OBS project optimizations.
316 # In 4.0 unified build env, this if statement is always true.
317 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
321 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/ivi
322 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
326 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../ivi/res/; fi; done
331 # This is for old profile-based OBS project optimizations.
332 # In 4.0 unified build env, this if statement is always true.
333 # Common is blocked because wearable has extra efl-ext entries, which will be
334 # removed for unified build env later.
335 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
336 pushd build_wearable_cir
339 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-circle
340 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
341 mv bin wearable-circle/
342 mkdir -p wearable-circle/res
344 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-circle/res/; fi; done
348 pushd build_wearable_rec
351 mkdir -p %{buildroot}%{TZ_SYS_RO_APP}/ise-default/wearable-rectangle
352 pushd %{buildroot}%{TZ_SYS_RO_APP}/ise-default/
353 mv bin wearable-rectangle/
354 mkdir -p wearable-rectangle/res
356 for FILE in *; do if [[ $FILE =~ ^locale$ ]]; then echo skip commonly used "${FILE}"; else mv "${FILE}" ../wearable-rectangle/res/; fi; done
363 %files -f %{name}.lang
364 %manifest %{name}.manifest
365 %defattr(-,root,root,-)
366 %{TZ_SYS_RO_PACKAGES}/%{name}.xml
367 %ifarch %{arm} aarch64
368 %{TZ_SYS_RO_APP}/ise-default/lib/*
372 # This is for old profile-based OBS project optimizations.
373 # In 4.0 unified build env, this if statement is always true.
374 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
376 pushd %{TZ_SYS_RO_APP}/ise-default/common/
379 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
380 if [ "$1" = "2" ]; then
383 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
386 for FILE in bin/*; do ln -sf "../common/${FILE}" ../bin; done
387 for FILE in res/*; do ln -sf "../common/${FILE}" ../res; done
389 %preun profile_common
390 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
391 if [ "$1" = "0" ]; then
392 pushd %{TZ_SYS_RO_APP}/ise-default
395 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
399 %files profile_common
400 %manifest %{name}.manifest
401 %defattr(-,root,root,-)
402 %{TZ_SYS_RO_APP}/ise-default/common/*
406 # This is for old profile-based OBS project optimizations.
407 # In 4.0 unified build env, this if statement is always true.
408 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
410 pushd %{TZ_SYS_RO_APP}/ise-default/mobile/
413 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
414 if [ "$1" = "2" ]; then
417 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
420 for FILE in bin/*; do ln -sf "../mobile/${FILE}" ../bin; done
421 for FILE in res/*; do ln -sf "../mobile/${FILE}" ../res; done
423 %preun profile_mobile
424 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
425 if [ "$1" = "0" ]; then
426 pushd %{TZ_SYS_RO_APP}/ise-default
429 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
433 %files profile_mobile
434 %manifest %{name}.manifest
435 %defattr(-,root,root,-)
436 %{TZ_SYS_RO_APP}/ise-default/mobile/*
440 # This is for old profile-based OBS project optimizations.
441 # In 4.0 unified build env, this if statement is always true.
442 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
444 pushd %{TZ_SYS_RO_APP}/ise-default/tv/
447 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
448 if [ "$1" = "2" ]; then
451 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
454 for FILE in bin/*; do ln -sf "../tv/${FILE}" ../bin; done
455 for FILE in res/*; do ln -sf "../tv/${FILE}" ../res; done
458 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
459 if [ "$1" = "0" ]; then
460 pushd %{TZ_SYS_RO_APP}/ise-default
463 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
468 %manifest %{name}.manifest
469 %defattr(-,root,root,-)
470 %{TZ_SYS_RO_APP}/ise-default/tv/*
474 # This is for old profile-based OBS project optimizations.
475 # In 4.0 unified build env, this if statement is always true.
476 %if "%{?profile}" != "mobile" && "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common"
478 pushd %{TZ_SYS_RO_APP}/ise-default/ivi/
481 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
482 if [ "$1" = "2" ]; then
485 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
488 for FILE in bin/*; do ln -sf "../ivi/${FILE}" ../bin; done
489 for FILE in res/*; do ln -sf "../ivi/${FILE}" ../res; done
492 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
493 if [ "$1" = "0" ]; then
494 pushd %{TZ_SYS_RO_APP}/ise-default
497 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
502 %manifest %{name}.manifest
503 %defattr(-,root,root,-)
504 %{TZ_SYS_RO_APP}/ise-default/ivi/*
508 # This is for old profile-based OBS project optimizations.
509 # In 4.0 unified build env, this if statement is always true.
510 # Common is blocked because wearable has extra efl-ext entries, which will be
511 # removed for unified build env later.
512 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "ivi"
513 %files profile_wearable
515 %post profile_wearable-extension-circle
516 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-circle/
519 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
520 if [ "$1" = "2" ]; then
523 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
526 for FILE in bin/*; do ln -sf "../wearable-circle/${FILE}" ../bin; done
527 for FILE in res/*; do ln -sf "../wearable-circle/${FILE}" ../res; done
529 %preun profile_wearable-extension-circle
530 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
531 if [ "$1" = "0" ]; then
532 pushd %{TZ_SYS_RO_APP}/ise-default
535 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
539 %files profile_wearable-extension-circle
540 %manifest %{name}.manifest
541 %defattr(-,root,root,-)
542 %{TZ_SYS_RO_APP}/ise-default/wearable-circle/*
545 %post profile_wearable-extension-rectangle
546 pushd %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/
549 # If we are upgrading this package, remove existing files before copying (1:install / 2:upgrade)
550 if [ "$1" = "2" ]; then
553 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
556 for FILE in bin/*; do ln -sf "../wearable-rectangle/${FILE}" ../bin; done
557 for FILE in res/*; do ln -sf "../wearable-rectangle/${FILE}" ../res; done
559 %preun profile_wearable-extension-rectangle
560 # Perform file removal only when uninstalling (0:uninstall / 1:upgrade)
561 if [ "$1" = "0" ]; then
562 pushd %{TZ_SYS_RO_APP}/ise-default
565 for FILE in *; do if [[ $FILE =~ locale$ ]]; then echo skip "${FILE}"; else rm -Rf "${FILE}"; fi; done
569 %files profile_wearable-extension-rectangle
570 %manifest %{name}.manifest
571 %defattr(-,root,root,-)
572 %{TZ_SYS_RO_APP}/ise-default/wearable-rectangle/*
575 %files -n ise-default-config
576 %manifest ise-default-config/ise-default-config.manifest
577 %{_sysconfdir}/ise/conf/*