[4.0] DALi version 1.2.75
[platform/core/uifw/dali-adaptor.git] / packaging / dali-adaptor.spec
1 # NOTES
2 # This spec file is used to build DALi Adaptor for different Tizen Profiles
3 # Current profiles are:  Mobile, TV, Wearable, Common
4 #
5 # The profile variable is defined outside of the spec file in a build.conf file.
6 # It will contain the profile and whether or not to build with X11 or Wayland
7 #
8 # gbs will try to download the build.conf for the platform automatically from the repo location when
9 # performing a gbs build ( use gbs build -v to see it download location) E.g.
10 # http://download.tizen.org/snapshots/tizen/tv/tizen-tv/repos/arm-wayland/packages/repodata/xxxx-build.conf.gz
11
12 # Do not provide .so automatically for the extensions.
13 # This if statement is for backward compatibility with GBM/Obsolete build systems
14 %if "%{?profile}" != "wearable" && "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
15 %global __provides_exclude_from ^.*\\.(wearable|mobile|tv|ivi|common)$
16 %endif
17
18 %bcond_with wayland
19
20 Name:       dali-adaptor
21 Summary:    The DALi Tizen Adaptor
22 Version:    1.2.75
23 Release:    1
24 Group:      System/Libraries
25 License:    Apache-2.0 and BSD-3-Clause and MIT
26 URL:        https://review.tizen.org/git/?p=platform/core/uifw/dali-adaptor.git;a=summary
27 Source0:    %{name}-%{version}.tar.gz
28
29 Requires(post): /sbin/ldconfig
30 Requires(postun): /sbin/ldconfig
31 Requires:       giflib
32
33 #need libtzplatform-config for directory if tizen version is 3.x
34
35 %if 0%{?tizen_version_major} >= 3
36 %define tizen_platform_config_supported 1
37 BuildRequires:  pkgconfig(libtzplatform-config)
38 %endif
39
40 %if 0%{?tizen_version_major} < 4
41 %define disable_cxx03_build 1
42 %endif
43
44 # Get the profile from tizen_profile_name if tizen version is 2.x and tizen_profile_name exists.
45
46 %if "%{tizen_version_major}" == "2" && 0%{?tizen_profile_name:1}
47 %define profile %{tizen_profile_name}
48 %endif
49
50 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
51 # if wearable || "undefined"
52 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
53 BuildRequires:  pkgconfig(capi-appfw-watch-application)
54 BuildRequires:  pkgconfig(appcore-watch)
55 BuildRequires:  pkgconfig(screen_connector_provider)
56 %endif
57
58 BuildRequires:  pkgconfig(gles20)
59 BuildRequires:  pkgconfig(glesv2)
60 BuildRequires:  pkgconfig(ttrace)
61
62 %if !0%{?disable_cxx03_build}
63 BuildRequires:  dali-devel-cxx03
64 BuildRequires:  dali-integration-devel-cxx03
65 %endif
66 BuildRequires:  dali-devel
67 BuildRequires:  dali-integration-devel
68
69 BuildRequires:  pkgconfig
70 BuildRequires:  gawk
71 BuildRequires:  giflib-devel
72 BuildRequires:  pkgconfig(fontconfig)
73 BuildRequires:  libjpeg-turbo-devel
74 BuildRequires:  pkgconfig(vconf)
75 BuildRequires:  tts-devel
76 BuildRequires:  pkgconfig(dlog)
77 BuildRequires:  libdrm-devel
78 BuildRequires:  pkgconfig(libexif)
79 BuildRequires:  pkgconfig(libpng)
80 BuildRequires:  pkgconfig(egl)
81 BuildRequires:  libcurl-devel
82 BuildRequires:  pkgconfig(harfbuzz)
83 BuildRequires:  fribidi-devel
84
85 BuildRequires:  pkgconfig(capi-system-info)
86 BuildRequires:  pkgconfig(capi-system-sensor)
87
88 %if %{with wayland}
89
90 ####### BUILDING FOR WAYLAND #######
91 BuildRequires:  pkgconfig(wayland-egl)
92 BuildRequires:  pkgconfig(wayland-client)
93 BuildRequires:  wayland-devel
94 BuildRequires:  wayland-extension-client-devel
95
96 # dali-adaptor uses ecore mainloop
97 BuildRequires:  pkgconfig(ecore-wayland)
98
99 # dali-adaptor needs tbm_surface in tizen 3.0 wayland
100 BuildRequires:  pkgconfig(libtbm)
101
102 # tpkp-curl (certificate pinning for libcurl functions) is only available in Tizen 3.0
103 %if !0%{?disable_cxx03_build}
104 BuildRequires:  pkgconfig(tpkp-curl-deprecated)
105 %endif
106 BuildRequires:  pkgconfig(tpkp-curl)
107
108 ####### BUILDING FOR X11#######
109 %else
110 BuildRequires:  pkgconfig(egl)
111 BuildRequires:  pkgconfig(xext)
112 BuildRequires:  pkgconfig(xi)
113 BuildRequires:  pkgconfig(xfixes)
114 BuildRequires:  pkgconfig(xdamage)
115 BuildRequires:  pkgconfig(utilX)
116 %endif
117
118 # for dali-adaptor
119 %if 0%{?tizen_version_major} == 3
120 BuildRequires:  pkgconfig(capi-appfw-application)
121 BuildRequires:  pkgconfig(elementary)
122 %else
123 BuildRequires:  pkgconfig(appcore-ui)
124 BuildRequires:  pkgconfig(appcore-widget-base)
125 BuildRequires:  pkgconfig(bundle)
126 BuildRequires:  pkgconfig(capi-appfw-app-common)
127 BuildRequires:  pkgconfig(capi-appfw-app-control)
128 BuildRequires:  pkgconfig(ecore-imf)
129 %endif
130
131 BuildRequires:  pkgconfig(capi-system-system-settings)
132
133 # for feedback plugin
134 BuildRequires:  pkgconfig(mm-sound)
135 %if 0%{?tizen_version_major} >= 3
136 BuildRequires:  pkgconfig(feedback)
137 %endif
138
139 # for Web Engine Lite Plugin
140 %if 0%{?enable_web_engine_lite}
141 BuildRequires: lightweight-web-engine
142 BuildRequires: lightweight-web-engine-devel
143 %endif
144
145 # for multiprofile
146 Requires:   %{name}-compat = %{version}-%{release}
147 Recommends: %{name}-profile_common = %{version}-%{release}
148
149 %description
150 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
151 platform abstraction and application shell
152
153 %if !0%{?disable_cxx03_build}
154 %package cxx03
155 Summary:        The DALi Tizen Adaptor with cxx03 abi
156 Provides:       %{name}-cxx03 = %{version}-%{release}
157
158 %description cxx03
159 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
160 platform abstraction and application shell
161 %endif
162
163 ###########################################
164 # Dali adapter for profiles
165 ###########################################
166
167 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
168 # if mobile || "undefined"
169 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
170 %package profile_mobile
171 Summary:        The DALi Tizen Adaptor for mobile
172 Provides:       %{name}-compat = %{version}-%{release}
173 Conflicts:      %{name}-profile_tv
174 Conflicts:      %{name}-profile_wearable
175 Conflicts:      %{name}-profile_ivi
176 Conflicts:      %{name}-profile_common
177 %description profile_mobile
178 The DALi Tizen Adaptor for mobile.
179 %endif
180
181 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
182 # if tv ||"undefined"
183 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
184 %package profile_tv
185 Summary:        The DALi Tizen Adaptor for tv
186 Provides:       %{name}-compat = %{version}-%{release}
187 Conflicts:      %{name}-profile_mobile
188 Conflicts:      %{name}-profile_wearable
189 Conflicts:      %{name}-profile_ivi
190 Conflicts:      %{name}-profile_common
191 %description profile_tv
192 The DALi Tizen Adaptor for tv.
193 %endif
194
195 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
196 # if wearable || "undefined"
197 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
198 %package profile_wearable
199 Summary:        The DALi Tizen Adaptor for wearable
200 Provides:       %{name}-compat = %{version}-%{release}
201 Conflicts:      %{name}-profile_mobile
202 Conflicts:      %{name}-profile_tv
203 Conflicts:      %{name}-profile_ivi
204 Conflicts:      %{name}-profile_common
205 %description profile_wearable
206 The DALi Tizen Adaptor for wearable.
207 %endif
208
209 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
210 # if ivi ||"undefined"
211 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
212 %package profile_ivi
213 Summary:        The DALi Tizen Adaptor for ivi
214 Provides:       %{name}-compat = %{version}-%{release}
215 Conflicts:      %{name}-profile_mobile
216 Conflicts:      %{name}-profile_wearable
217 Conflicts:      %{name}-profile_tv
218 Conflicts:      %{name}-profile_common
219 %description profile_ivi
220 The DALi Tizen Adaptor for ivi.
221 %endif
222
223 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
224 # if common ||"undefined"
225 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
226 # Currently Tizen Common we use does not have wayland extensions like xdg-shell
227 %package profile_common
228 %define tizen_2_2_compatibility 0
229 Summary:        The DALi Tizen Adaptor for common
230 Provides:       %{name}-compat = %{version}-%{release}
231 Conflicts:      %{name}-profile_mobile
232 Conflicts:      %{name}-profile_wearable
233 Conflicts:      %{name}-profile_tv
234 Conflicts:      %{name}-profile_ivi
235 %description profile_common
236 The DALi Tizen Adaptor for common.
237 %endif
238
239 %if !0%{?disable_cxx03_build}
240 ###########################################
241 # Dali adapter for profiles for cxx03 ABI
242 ###########################################
243
244 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
245 # if mobile || "undefined"
246 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
247 %package profile_mobile-cxx03
248 Summary:        The DALi Tizen Adaptor for mobile with cxx03 abi
249 Provides:       %{name}-cxx03-compat = %{version}-%{release}
250 Conflicts:      %{name}-profile_tv-cxx03
251 Conflicts:      %{name}-profile_wearable-cxx03
252 Conflicts:      %{name}-profile_ivi-cxx03
253 Conflicts:      %{name}-profile_common-cxx03
254 %description profile_mobile-cxx03
255 The DALi Tizen Adaptor for mobile.
256 %endif
257
258 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
259 # if tv ||"undefined"
260 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
261 %package profile_tv-cxx03
262 Summary:        The DALi Tizen Adaptor for tv with cxx03 abi
263 Provides:       %{name}-cxx03-compat = %{version}-%{release}
264 Conflicts:      %{name}-profile_mobile-cxx03
265 Conflicts:      %{name}-profile_wearable-cxx03
266 Conflicts:      %{name}-profile_ivi-cxx03
267 Conflicts:      %{name}-profile_common-cxx03
268 %description profile_tv-cxx03
269 The DALi Tizen Adaptor for tv.
270 %endif
271
272 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
273 # if wearable || "undefined"
274 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
275 %package profile_wearable-cxx03
276 Summary:        The DALi Tizen Adaptor for wearable with cxx03 abi
277 Provides:       %{name}-cxx03-compat = %{version}-%{release}
278 Conflicts:      %{name}-profile_mobile-cxx03
279 Conflicts:      %{name}-profile_tv-cxx03
280 Conflicts:      %{name}-profile_ivi-cxx03
281 Conflicts:      %{name}-profile_common-cxx03
282 %description profile_wearable-cxx03
283 The DALi Tizen Adaptor for wearable.
284 %endif
285
286 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
287 # if ivi ||"undefined"
288 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
289 %package profile_ivi-cxx03
290 Summary:        The DALi Tizen Adaptor for ivi with cxx03 abi
291 Provides:       %{name}-cxx03-compat = %{version}-%{release}
292 Conflicts:      %{name}-profile_mobile-cxx03
293 Conflicts:      %{name}-profile_wearable-cxx03
294 Conflicts:      %{name}-profile_tv-cxx03
295 Conflicts:      %{name}-profile_common-cxx03
296 %description profile_ivi-cxx03
297 The DALi Tizen Adaptor for ivi.
298 %endif
299
300 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
301 # if common ||"undefined"
302 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
303 # Currently Tizen Common we use does not have wayland extensions like xdg-shell
304 %package profile_common-cxx03
305 %define tizen_2_2_compatibility 0
306 Summary:  The DALi Tizen Adaptor for common with cxx03 abi
307 Provides:       %{name}-cxx03-compat = %{version}-%{release}
308 Conflicts:      %{name}-profile_mobile-cxx03
309 Conflicts:      %{name}-profile_wearable-cxx03
310 Conflicts:      %{name}-profile_tv-cxx03
311 Conflicts:      %{name}-profile_ivi-cxx03
312 %description profile_common-cxx03
313 The DALi Tizen Adaptor for common.
314 %endif
315 %endif
316
317 ##############################
318 # devel
319 ##############################
320 %package devel
321 Summary:    Development components for the DALi Tizen Adaptor
322 Group:      Development/Building
323 Requires:   %{name} = %{version}-%{release}
324 Requires:   %{name}-integration-devel = %{version}-%{release}
325
326 %description devel
327 Development components for the DALi Tizen Adaptor - public headers and package configs
328
329 ##############################
330 # integration-devel
331 ##############################
332 %package integration-devel
333 Summary:    Integration development package for the Adaptor
334 Group:      Development/Building
335 Requires:   %{name} = %{version}-%{release}
336
337 %description integration-devel
338 Integration development package for the Adaptor - headers for integrating with an adaptor library.
339
340 %if !0%{?disable_cxx03_build}
341 ##############################
342 # devel cxx03
343 ##############################
344 %package devel-cxx03
345 Summary:    Development components for the DALi Tizen Adaptor with cxx03 abi
346 Group:      Development/Building
347 Requires:   %{name}-cxx03 = %{version}-%{release}
348 Requires:   %{name}-integration-devel-cxx03 = %{version}-%{release}
349
350 %description devel-cxx03
351 Development components for the DALi Tizen Adaptor - public headers and package configs
352
353 ##############################
354 # integration-devel cxx03
355 ##############################
356 %package integration-devel-cxx03
357 Summary:    Integration development package for the Adaptor with cxx03 abi
358 Group:      Development/Building
359 Requires:   %{name}-cxx03 = %{version}-%{release}
360
361 %description integration-devel-cxx03
362 Integration development package for the Adaptor - headers for integrating with an adaptor library.
363 %endif
364
365 ##############################
366 # Dali Feedback Plugin
367 ##############################
368 %package dali-feedback-plugin
369 Summary:    Plugin to play haptic and audio feedback for Dali
370 Group:      System/Libraries
371 Requires:   %{name} = %{version}-%{release}
372 %description dali-feedback-plugin
373 Feedback plugin to play haptic and audio feedback for Dali
374
375 ##############################
376 # Dali WebEngineLite Plugin
377 ##############################
378
379 %package dali-web-engine-lite-plugin
380 Summary:    Plugin WebEngineLite for Dali
381 Group:      System/Libraries
382 %description dali-web-engine-lite-plugin
383 WebEngineLite plugin for Dali
384
385 %if !0%{?disable_cxx03_build}
386 ##############################
387 # Dali Feedback Plugin cxx03
388 ##############################
389
390 %package dali-feedback-plugin-cxx03
391 Summary:    Plugin to play haptic and audio feedback for Dali with cxx03 abi
392 Group:      System/Libraries
393 Requires:   %{name}-cxx03 = %{version}-%{release}
394 %description dali-feedback-plugin-cxx03
395 Feedback plugin to play haptic and audio feedback for Dali
396
397 ##############################
398 # Dali WebEngineLite Plugin
399 ##############################
400
401 %package dali-web-engine-lite-plugin-cxx03
402 Summary:    Plugin WebEngineLite for Dali with cxx03 abi
403 Group:      System/Libraries
404 %description dali-web-engine-lite-plugin-cxx03
405 WebEngineLite plugin for Dali
406 %endif
407
408 ##############################
409 # Preparation
410 ##############################
411 %prep
412 %setup -q
413
414 #Use TZ_PATH when tizen version is 3.x or greater
415
416 %if 0%{?tizen_version_major} >= 3
417 %define dali_data_rw_dir         %TZ_SYS_RO_SHARE/dali/
418 %define dali_data_ro_dir         %TZ_SYS_RO_SHARE/dali/
419 %define font_preloaded_path      %TZ_SYS_RO_SHARE/fonts/
420 %define font_downloaded_path     %TZ_SYS_SHARE/fonts/
421 %define font_application_path    %TZ_SYS_RO_SHARE/app_fonts/
422 %define font_configuration_file  %TZ_SYS_ETC/fonts/conf.avail/99-slp.conf
423 %else
424 %define dali_data_rw_dir         /usr/share/dali/
425 %define dali_data_ro_dir         /usr/share/dali/
426 %define font_preloaded_path      /usr/share/fonts/
427 %define font_downloaded_path     /opt/share/fonts/
428 %define font_application_path    /usr/share/app_fonts/
429 %define font_configuration_file  /opt/etc/fonts/conf.avail/99-slp.conf
430 %endif
431
432 %define user_shader_cache_dir    %{dali_data_ro_dir}/core/shaderbin/
433 %define dali_plugin_sound_files  /plugins/sounds/
434 %define dev_include_path %{_includedir}
435
436 ##############################
437 # Build
438 ##############################
439 %build
440 PREFIX+="/usr"
441 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
442 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
443
444 %ifarch %{arm}
445 CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
446 %endif
447
448 %if %{with wayland}
449 CFLAGS+=" -DWAYLAND"
450 CXXFLAGS+=" -DWAYLAND"
451 configure_flags="--enable-wayland"
452 %endif
453
454 # Use this conditional when Tizen version is 4.x or greater
455 %if 0%{?tizen_version_major} >= 4
456 CXXFLAGS+=" -DOVER_TIZEN_VERSION_4"
457 %endif
458
459 %if 0%{?tizen_2_2_compatibility}
460 CFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY"
461 CXXFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY"
462 %endif
463
464 libtoolize --force
465 cd %{_builddir}/%{name}-%{version}/build/tizen
466 autoreconf --install
467
468 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
469 DALI_DATA_RO_DIR="%{dali_data_ro_dir}"  ; export DALI_DATA_RO_DIR
470 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
471 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
472 FONT_APPLICATION_PATH="%{font_application_path}"  ; export FONT_APPLICATION_PATH
473 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
474 %if 0%{?tizen_platform_config_supported}
475 TIZEN_PLATFORM_CONFIG_SUPPORTED="%{tizen_platform_config_supported}" ; export TIZEN_PLATFORM_CONFIG_SUPPORTED
476 %endif
477
478 # Default to GLES 2.0 if not specified.
479 %if 0%{?target_gles_version} == 0
480 %define target_gles_version 20
481 %endif
482
483 # Set up the build via configure.
484 #######################################################################
485 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
486 # if mobile || "undefined"
487 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
488 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
489            --enable-shaderbincache=DISABLE --enable-profile=MOBILE \
490            --enable-tizen-major-version=%{tizen_version_major} \
491 %if 0%{?tizen_version_major} >= 3
492            --enable-feedback \
493 %endif
494 %if 0%{?tizen_2_2_compatibility}
495            --with-tizen-2-2-compatibility \
496 %endif
497 %if %{with wayland}
498            --enable-efl=no \
499 %else
500            --enable-efl=yes \
501 %endif
502 %if 0%{?enable_web_engine_lite}
503            --enable-web-engine-lite \
504 %endif
505 %if 0%{?enable_debug}
506            --enable-debug \
507 %endif
508            --enable-appfw=yes \
509            $configure_flags --libdir=%{_libdir} \
510            --enable-rename-so=no
511
512 # Build.
513 make %{?jobs:-j%jobs}
514
515 pushd %{_builddir}/%{name}-%{version}/build/tizen
516 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
517 popd
518
519 pushd %{buildroot}%{_libdir}
520 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
521 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
522 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
523 popd
524
525 make clean
526
527 %endif
528
529 #######################################################################
530 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
531 # if tv ||"undefined"
532 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
533 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
534            --enable-shaderbincache=DISABLE --enable-profile=TV \
535            --enable-tizen-major-version=%{tizen_version_major} \
536 %if 0%{?tizen_version_major} >= 3
537            --enable-feedback \
538 %endif
539 %if 0%{?tizen_2_2_compatibility}
540            --with-tizen-2-2-compatibility \
541 %endif
542 %if %{with wayland}
543            --enable-efl=no \
544 %else
545            --enable-efl=yes \
546 %endif
547 %if 0%{?enable_web_engine_lite}
548            --enable-web-engine-lite \
549 %endif
550 %if 0%{?enable_debug}
551            --enable-debug \
552 %endif
553            --enable-appfw=yes \
554            $configure_flags --libdir=%{_libdir} \
555            --enable-rename-so=no
556
557 # Build.
558 make %{?jobs:-j%jobs}
559
560 pushd %{_builddir}/%{name}-%{version}/build/tizen
561 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
562 popd
563
564 pushd %{buildroot}%{_libdir}
565 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
566 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
567 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
568 popd
569
570 make clean
571 %endif
572
573 #######################################################################
574 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
575 # if wearable || "undefined"
576 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
577 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
578            --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
579            --enable-tizen-major-version=%{tizen_version_major} \
580 %if 0%{?tizen_version_major} >= 3
581            --enable-feedback \
582 %endif
583 %if 0%{?tizen_2_2_compatibility}
584            --with-tizen-2-2-compatibility \
585 %endif
586 %if %{with wayland}
587            --enable-efl=no \
588 %else
589            --enable-efl=yes \
590 %endif
591 %if 0%{?enable_web_engine_lite}
592            --enable-web-engine-lite \
593 %endif
594 %if 0%{?enable_debug}
595            --enable-debug \
596 %endif
597            --enable-appfw=yes \
598            $configure_flags --libdir=%{_libdir} \
599            --enable-rename-so=no
600
601 # Build.
602 make %{?jobs:-j%jobs}
603
604 pushd %{_builddir}/%{name}-%{version}/build/tizen
605 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
606 popd
607
608 pushd %{buildroot}%{_libdir}
609 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
610 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
611 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
612 popd
613
614 make clean
615 %endif
616
617 #######################################################################
618 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
619 # if ivi ||"undefined"
620 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
621 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
622            --enable-shaderbincache=DISABLE --enable-profile=IVI \
623            --enable-tizen-major-version=%{tizen_version_major} \
624 %if 0%{?tizen_version_major} >= 3
625            --enable-feedback \
626 %endif
627 %if 0%{?tizen_2_2_compatibility}
628            --with-tizen-2-2-compatibility \
629 %endif
630 %if %{with wayland}
631            --enable-efl=no \
632 %else
633            --enable-efl=yes \
634 %endif
635 %if 0%{?enable_web_engine_lite}
636            --enable-web-engine-lite \
637 %endif
638 %if 0%{?enable_debug}
639            --enable-debug \
640 %endif
641            --enable-appfw=yes \
642            $configure_flags --libdir=%{_libdir} \
643            --enable-rename-so=no
644
645 # Build.
646 make %{?jobs:-j%jobs}
647
648 pushd %{_builddir}/%{name}-%{version}/build/tizen
649 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
650 popd
651
652 pushd %{buildroot}%{_libdir}
653 for FILE in libdali-adaptor*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
654 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
655
656 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
657 popd
658
659 make clean
660 %endif
661
662 #######################################################################
663 # common
664 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
665 # if common ||"undefined"
666 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
667 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
668            --enable-shaderbincache=DISABLE --enable-profile=COMMON \
669            --enable-tizen-major-version=%{tizen_version_major} \
670 %if 0%{?tizen_version_major} >= 3
671            --enable-feedback \
672 %endif
673 %if 0%{?tizen_2_2_compatibility}
674            --with-tizen-2-2-compatibility \
675 %endif
676 %if %{with wayland}
677            --enable-efl=no \
678 %else
679            --enable-efl=yes \
680 %endif
681 %if 0%{?enable_web_engine_lite}
682            --enable-web-engine-lite \
683 %endif
684 %if 0%{?enable_debug}
685            --enable-debug \
686 %endif
687            --enable-appfw=yes \
688            $configure_flags --libdir=%{_libdir} \
689            --enable-rename-so=no
690
691 # Build.
692 make %{?jobs:-j%jobs}
693
694 pushd %{_builddir}/%{name}-%{version}/build/tizen
695 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
696 popd
697
698 pushd %{buildroot}%{_libdir}
699 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
700 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
701
702 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
703 popd
704
705 make clean
706
707 %endif
708
709 %if !0%{?disable_cxx03_build}
710 #######################################################################
711 #BUILD for cxx03 ABI
712 #######################################################################
713
714 # Set up the build via configure.
715 #######################################################################
716 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
717 # if mobile || "undefined"
718 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
719
720 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
721            --enable-shaderbincache=DISABLE --enable-profile=MOBILE \
722            --enable-tizen-major-version=%{tizen_version_major} \
723 %if 0%{?tizen_version_major} >= 3
724            --enable-feedback \
725 %endif
726            --enable-cxx03-abi=yes  \
727 %if 0%{?tizen_2_2_compatibility}
728            --with-tizen-2-2-compatibility \
729 %endif
730 %if %{with wayland}
731            --enable-efl=no \
732 %else
733            --enable-efl=yes \
734 %endif
735 %if 0%{?enable_web_engine_lite}
736            --enable-web-engine-lite \
737 %endif
738 %if 0%{?enable_debug}
739            --enable-debug \
740 %endif
741            --enable-appfw=yes \
742            $configure_flags --libdir=%{_libdir} \
743            --enable-rename-so=no
744
745 # Build.
746 make %{?jobs:-j%jobs}
747
748 pushd %{_builddir}/%{name}-%{version}/build/tizen
749 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
750 popd
751
752 pushd %{buildroot}%{_libdir}
753 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
754 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
755 popd
756
757 make clean
758
759 %endif
760
761 #######################################################################
762 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
763 # if tv ||"undefined"
764 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
765
766 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
767            --enable-shaderbincache=DISABLE --enable-profile=TV \
768            --enable-tizen-major-version=%{tizen_version_major} \
769 %if 0%{?tizen_version_major} >= 3
770            --enable-feedback \
771 %endif
772            --enable-cxx03-abi=yes  \
773 %if 0%{?tizen_2_2_compatibility}
774            --with-tizen-2-2-compatibility \
775 %endif
776 %if %{with wayland}
777            --enable-efl=no \
778 %else
779            --enable-efl=yes \
780 %endif
781 %if 0%{?enable_web_engine_lite}
782            --enable-web-engine-lite \
783 %endif
784 %if 0%{?enable_debug}
785            --enable-debug \
786 %endif
787            --enable-appfw=yes \
788            $configure_flags --libdir=%{_libdir} \
789            --enable-rename-so=no
790
791 # Build.
792 make %{?jobs:-j%jobs}
793
794 pushd %{_builddir}/%{name}-%{version}/build/tizen
795 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
796 popd
797
798 pushd %{buildroot}%{_libdir}
799 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
800 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
801 popd
802
803 make clean
804 %endif
805
806 #######################################################################
807 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
808 # if wearable || "undefined"
809 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
810
811 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
812            --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
813            --enable-tizen-major-version=%{tizen_version_major} \
814 %if 0%{?tizen_version_major} >= 3
815            --enable-feedback \
816 %endif
817            --enable-cxx03-abi=yes \
818 %if 0%{?tizen_2_2_compatibility}
819            --with-tizen-2-2-compatibility \
820 %endif
821 %if %{with wayland}
822            --enable-efl=no \
823 %else
824            --enable-efl=yes \
825 %endif
826 %if 0%{?enable_web_engine_lite}
827            --enable-web-engine-lite \
828 %endif
829 %if 0%{?enable_debug}
830            --enable-debug \
831 %endif
832            --enable-appfw=yes \
833            $configure_flags --libdir=%{_libdir} \
834            --enable-rename-so=no
835
836 # Build.
837 make %{?jobs:-j%jobs}
838
839 pushd %{_builddir}/%{name}-%{version}/build/tizen
840 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
841 popd
842
843 pushd %{buildroot}%{_libdir}
844 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
845 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
846 popd
847
848 make clean
849 %endif
850
851 #######################################################################
852 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
853 # if ivi ||"undefined"
854 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
855
856 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
857            --enable-shaderbincache=DISABLE --enable-profile=IVI \
858            --enable-tizen-major-version=%{tizen_version_major} \
859 %if 0%{?tizen_version_major} >= 3
860            --enable-feedback \
861 %endif
862            --enable-cxx03-abi=yes  \
863 %if 0%{?tizen_2_2_compatibility}
864            --with-tizen-2-2-compatibility \
865 %endif
866 %if %{with wayland}
867            --enable-efl=no \
868 %else
869            --enable-efl=yes \
870 %endif
871 %if 0%{?enable_web_engine_lite}
872            --enable-web-engine-lite \
873 %endif
874 %if 0%{?enable_debug}
875            --enable-debug \
876 %endif
877            --enable-appfw=yes \
878            $configure_flags --libdir=%{_libdir} \
879            --enable-rename-so=no
880
881 # Build.
882 make %{?jobs:-j%jobs}
883
884 pushd %{_builddir}/%{name}-%{version}/build/tizen
885 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
886 popd
887
888 pushd %{buildroot}%{_libdir}
889 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
890 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done 
891 popd
892
893 make clean
894 %endif
895
896 #######################################################################
897 # common
898 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
899 # if common ||"undefined"
900 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
901
902 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
903            --enable-shaderbincache=DISABLE --enable-profile=COMMON \
904            --enable-tizen-major-version=%{tizen_version_major} \
905 %if 0%{?tizen_version_major} >= 3
906            --enable-feedback \
907 %endif
908            --enable-cxx03-abi=yes  \
909 %if 0%{?tizen_2_2_compatibility}
910            --with-tizen-2-2-compatibility \
911 %endif
912 %if %{with wayland}
913            --enable-efl=no \
914 %else
915            --enable-efl=yes \
916 %endif
917 %if 0%{?enable_web_engine_lite}
918            --enable-web-engine-lite \
919 %endif
920 %if 0%{?enable_debug}
921            --enable-debug \
922 %endif
923            --enable-appfw=yes \
924            $configure_flags --libdir=%{_libdir} \
925            --enable-rename-so=no
926
927 # Build.
928 make %{?jobs:-j%jobs}
929
930 %endif
931 %endif
932
933 ##############################
934 # Installation
935 ##############################
936 %install
937 rm -rf %{buildroot}
938
939 pushd %{_builddir}/%{name}-%{version}/build/tizen
940 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
941
942
943 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
944 # !unified && (wearable || tv || ivi || mobile)
945 %if "%{?profile}" == "wearable" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "mobile"
946 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
947 %endif
948
949 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
950 # wearable || tv || ivi || mobile || unified
951 %if "%{?profile}" != "common"
952 for FILE in libdali-*.so*; do mv "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
953 mv dali-adaptor*.pc %{buildroot}%{_libdir}/pkgconfig/
954 %endif
955 popd
956
957 ################################################
958 #rename 
959 ###############################################
960 pushd %{buildroot}%{_libdir}
961
962 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
963 # if common ||"undefined"
964 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
965 rm -rf libdali-adaptor*.so
966 %if !0%{?disable_cxx03_build}
967 ln -s libdali-adaptor.so.0.0.0 libdali-adaptor-cxx03.so
968 %endif
969 ln -s libdali-adaptor-cxx11.so.0.0.0 libdali-adaptor.so
970 #%endif
971
972 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
973 # if wearable || "undefined"
974 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
975 rm -rf libdali-adaptor*.so.wearable
976 %if !0%{?disable_cxx03_build}
977 ln -s libdali-adaptor.so.0.0.*.wearable libdali-adaptor-cxx03.so.wearable
978 %endif
979 ln -s libdali-adaptor-cxx11.so.0.0.*.wearable libdali-adaptor.so.wearable
980 %endif
981
982 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
983 # if tv ||"undefined"
984 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
985 rm -rf libdali-adaptor*.so.tv
986 %if !0%{?disable_cxx03_build}
987 ln -s libdali-adaptor.so.0.0.*.tv libdali-adaptor-cxx03.so.tv
988 %endif
989 ln -s libdali-adaptor-cxx11.so.0.0.*.tv libdali-adaptor.so.tv
990 %endif
991
992 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
993 # if ivi ||"undefined"
994 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
995 rm -rf libdali-adaptor*.so.ivi
996 %if !0%{?disable_cxx03_build}
997 ln -s libdali-adaptor.so.0.0.*.ivi libdali-adaptor-cxx03.so.ivi
998 %endif
999 ln -s libdali-adaptor-cxx11.so.0.0.*.ivi libdali-adaptor.so.ivi
1000 %endif
1001
1002 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1003 # if mobile || "undefined"
1004 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1005 rm -rf libdali-adaptor*.so.mobile
1006 %if !0%{?disable_cxx03_build}
1007 ln -s libdali-adaptor.so.0.0.*.mobile libdali-adaptor-cxx03.so.mobile
1008 %endif
1009 ln -s libdali-adaptor-cxx11.so.0.0.*.mobile libdali-adaptor.so.mobile
1010 %endif
1011 popd
1012
1013 ##############################
1014 # Upgrade order:
1015 # 1 - Pre Install new package
1016 # 2 - Install new package
1017 # 3 - Post install new package
1018 # 4 - Pre uninstall old package
1019 # 5 - Remove files not overwritten by new package
1020 # 6 - Post uninstall old package
1021 ##############################
1022
1023 %pre
1024 exit 0
1025
1026 ##############################
1027 #  Post Install new package
1028 ##############################
1029 %post
1030 /sbin/ldconfig
1031 exit 0
1032
1033 ##############################
1034 #  Pre Uninstall old package
1035 ##############################
1036 %preun
1037 exit 0
1038
1039 ##############################
1040 #  Post Uninstall old package
1041 ##############################
1042 %postun
1043 /sbin/ldconfig
1044 exit 0
1045
1046 #%if %{with wayland}
1047 %post dali-web-engine-lite-plugin
1048 /sbin/ldconfig
1049 exit 0
1050 #%endif
1051
1052 ##############################
1053
1054 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1055 # if mobile || "undefined"
1056 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1057 %post profile_mobile
1058 pushd %{_libdir}
1059 for FILE in libdali-adaptor-cxx11.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
1060 popd
1061 /sbin/ldconfig
1062 exit 0
1063
1064 %postun profile_mobile
1065 /sbin/ldconfig
1066 exit 0
1067 %endif
1068
1069 ##############################
1070
1071 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1072 # if tv ||"undefined"
1073 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1074 %post profile_tv
1075 pushd %{_libdir}
1076 for FILE in libdali-adaptor-cxx11.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1077 popd
1078 /sbin/ldconfig
1079 exit 0
1080
1081 %postun profile_tv
1082 /sbin/ldconfig
1083 exit 0
1084 %endif
1085
1086 ##############################
1087
1088 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1089 # if wearable || "undefined"
1090 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1091 %post profile_wearable
1092 pushd %{_libdir}
1093 for FILE in libdali-adaptor-cxx11.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1094 popd
1095 /sbin/ldconfig
1096 exit 0
1097
1098 %postun profile_wearable
1099 /sbin/ldconfig
1100 exit 0
1101 %endif
1102
1103 ##############################
1104
1105 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1106 # if ivi ||"undefined"
1107 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1108 %post profile_ivi
1109 pushd %{_libdir}
1110 for FILE in libdali-adaptor-cxx11.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1111 popd
1112 /sbin/ldconfig
1113 exit 0
1114
1115 %postun profile_ivi
1116 /sbin/ldconfig
1117 exit 0
1118 %endif
1119
1120 %if !0%{?disable_cxx03_build}
1121 ##############################
1122 #cxx03 ABI
1123 #############################
1124 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1125 # if mobile || "undefined"
1126 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1127 %post profile_mobile-cxx03
1128 pushd %{_libdir}
1129 for FILE in libdali-adaptor.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
1130 popd
1131 /sbin/ldconfig
1132 exit 0
1133
1134 %postun profile_mobile-cxx03
1135 /sbin/ldconfig
1136 exit 0
1137 %endif
1138
1139 ##############################
1140
1141 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1142 # if tv ||"undefined"
1143 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1144 %post profile_tv-cxx03
1145 pushd %{_libdir}
1146 for FILE in libdali-adaptor.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1147 popd
1148 /sbin/ldconfig
1149 exit 0
1150
1151 %postun profile_tv-cxx03
1152 /sbin/ldconfig
1153 exit 0
1154 %endif
1155
1156 ##############################
1157
1158 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1159 # if wearable || "undefined"
1160 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1161 %post profile_wearable-cxx03
1162 pushd %{_libdir}
1163 for FILE in libdali-adaptor.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1164 popd
1165 /sbin/ldconfig
1166 exit 0
1167
1168 %postun profile_wearable-cxx03
1169 /sbin/ldconfig
1170 exit 0
1171 %endif
1172
1173 ##############################
1174
1175 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1176 # if ivi ||"undefined"
1177 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1178 %post profile_ivi-cxx03
1179 pushd %{_libdir}
1180 for FILE in libdali-adaptor.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1181 popd
1182 /sbin/ldconfig
1183 exit 0
1184
1185 %postun profile_ivi-cxx03
1186 /sbin/ldconfig
1187 exit 0
1188 %endif
1189 %endif
1190
1191 ##############################
1192 # Files in Binary Packages
1193 ##############################
1194
1195 %files
1196 %manifest dali-adaptor.manifest
1197 %defattr(-,root,root,-)
1198 %defattr(-,app,app,-)
1199 %dir %{user_shader_cache_dir}
1200 %{_bindir}/*
1201 %license LICENSE
1202
1203 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1204 # if common ||"undefined"
1205 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1206 %defattr(-,root,root,-)
1207 %{_libdir}/libdali-adaptor-cxx11.so.0*
1208 %{_libdir}/libdali-adaptor.so
1209 %exclude %{_libdir}/libdali-adap*.so*.mobile
1210 %exclude %{_libdir}/libdali-adap*.so*.wearable
1211 %exclude %{_libdir}/libdali-adap*.so*.tv
1212 %exclude %{_libdir}/libdali-adap*.so*.ivi
1213 #%endif
1214
1215 %if !0%{?disable_cxx03_build}
1216 %files cxx03
1217 %manifest dali-adaptor.manifest
1218 %defattr(-,root,root,-)
1219 %defattr(-,app,app,-)
1220 %dir %{user_shader_cache_dir}
1221 %{_bindir}/*
1222 %license LICENSE
1223 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1224 # if common ||"undefined"
1225 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1226 %defattr(-,root,root,-)
1227 %{_libdir}/libdali-adaptor.so.0*
1228 %{_libdir}/libdali-adaptor-cxx03.so
1229 %exclude %{_libdir}/libdali-adap*.so*.mobile
1230 %exclude %{_libdir}/libdali-adap*.so*.wearable
1231 %exclude %{_libdir}/libdali-adap*.so*.tv
1232 %exclude %{_libdir}/libdali-adap*.so*.ivi
1233 #%endif
1234
1235 %if 0%{?tizen_version_major} >= 3
1236 %if 0%{?enable_web_engine_lite}
1237 %files dali-web-engine-lite-plugin-cxx03
1238 %manifest dali-adaptor.manifest
1239 %defattr(-,root,root,-)
1240 %{_libdir}/libdali-web-engine-lite-plugin.so*
1241 %license LICENSE
1242 %endif
1243
1244 %files dali-feedback-plugin-cxx03
1245 %manifest dali-adaptor.manifest
1246 %defattr(-,root,root,-)
1247 %{_libdir}/libdali-feedback-plugin.so*
1248 %{dali_plugin_sound_files}/*
1249 %endif
1250 %endif
1251
1252 #################################################
1253
1254 %if 0%{?tizen_version_major} >= 3
1255 %if 0%{?enable_web_engine_lite}
1256 %files dali-web-engine-lite-plugin
1257 %manifest dali-adaptor.manifest
1258 %defattr(-,root,root,-)
1259 %{_libdir}/libdali-web-engine-lite-plugin-cxx11.so*
1260 %license LICENSE
1261 %endif
1262
1263 %files dali-feedback-plugin
1264 %manifest dali-adaptor.manifest
1265 %defattr(-,root,root,-)
1266 %{_libdir}/libdali-feedback-plugin-cxx11.so*
1267 %{dali_plugin_sound_files}/*
1268 %endif
1269
1270 #################################################
1271
1272 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1273 # if common ||"undefined"
1274 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1275 %files profile_common
1276 # default .so files are housed in the main pkg.
1277 %endif
1278
1279 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1280 # if mobile || "undefined"
1281 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1282 %files profile_mobile
1283 %manifest dali-adaptor.manifest
1284 %defattr(-,root,root,-)
1285 %{_libdir}/libdali-adaptor.so.mobile
1286 %{_libdir}/libdali-adaptor-cxx11.so.0*.mobile
1287 %endif
1288
1289 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1290 # if tv ||"undefined"
1291 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1292 %files profile_tv
1293 %manifest dali-adaptor.manifest
1294 %defattr(-,root,root,-)
1295 %{_libdir}/libdali-adaptor.so.tv
1296 %{_libdir}/libdali-adaptor-cxx11.so.0*.tv
1297 %endif
1298
1299 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1300 # if wearable || "undefined"
1301 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1302 %files profile_wearable
1303 %manifest dali-adaptor.manifest
1304 %defattr(-,root,root,-)
1305 %{_libdir}/libdali-adaptor.so.wearable
1306 %{_libdir}/libdali-adaptor-cxx11.so.0*.wearable
1307 %endif
1308
1309 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1310 # if ivi ||"undefined"
1311 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1312 %files profile_ivi
1313 %manifest dali-adaptor.manifest
1314 %defattr(-,root,root,-)
1315 %{_libdir}/libdali-adaptor.so.ivi
1316 %{_libdir}/libdali-adaptor-cxx11.so.0*.ivi
1317 %endif
1318
1319
1320 %files devel
1321 %defattr(-,root,root,-)
1322 %{dev_include_path}/dali/dali.h
1323 %{dev_include_path}/dali/public-api/*
1324 %{dev_include_path}/dali/devel-api/*
1325 %{dev_include_path}/dali/doc/*
1326 %{_libdir}/pkgconfig/dali-adaptor.pc
1327
1328 %files integration-devel
1329 %defattr(-,root,root,-)
1330 %{dev_include_path}/dali/integration-api/adaptors/*
1331 %{_libdir}/pkgconfig/dali-adaptor-integration.pc
1332
1333 %if !0%{?disable_cxx03_build}
1334 ################################################
1335 # cxx03 ABI
1336 ################################################
1337
1338 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1339 # if common ||"undefined"
1340 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1341 %files profile_common-cxx03
1342 # default .so files are housed in the main pkg.
1343 %endif
1344
1345 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1346 # if mobile || "undefined"
1347 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1348 %files profile_mobile-cxx03
1349 %manifest dali-adaptor.manifest
1350 %defattr(-,root,root,-)
1351 %{_libdir}/libdali-adaptor-cxx03.so.mobile
1352 %{_libdir}/libdali-adaptor.so.0*mobile
1353 %endif
1354
1355 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1356 # if tv ||"undefined"
1357 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1358 %files profile_tv-cxx03
1359 %manifest dali-adaptor.manifest
1360 %defattr(-,root,root,-)
1361 %{_libdir}/libdali-adaptor-cxx03.so.tv
1362 %{_libdir}/libdali-adaptor.so.0*.tv
1363 %endif
1364
1365 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1366 # if wearable || "undefined"
1367 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1368 %files profile_wearable-cxx03
1369 %manifest dali-adaptor.manifest
1370 %defattr(-,root,root,-)
1371 %{_libdir}/libdali-adaptor-cxx03.so.wearable
1372 %{_libdir}/libdali-adaptor.so.0*.wearable
1373 %endif
1374
1375 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1376 # if ivi ||"undefined"
1377 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1378 %files profile_ivi-cxx03
1379 %manifest dali-adaptor.manifest
1380 %defattr(-,root,root,-)
1381 %{_libdir}/libdali-adaptor-cxx03.so.ivi
1382 %{_libdir}/libdali-adaptor.so.0*.ivi
1383 %endif
1384
1385
1386 %files devel-cxx03
1387 %defattr(-,root,root,-)
1388 %{dev_include_path}/dali/dali.h
1389 %{dev_include_path}/dali/public-api/*
1390 %{dev_include_path}/dali/devel-api/*
1391 %{dev_include_path}/dali/doc/*
1392 %{_libdir}/pkgconfig/dali-adaptor-cxx03.pc
1393
1394 %files integration-devel-cxx03
1395 %defattr(-,root,root,-)
1396 %{dev_include_path}/dali/integration-api/adaptors/*
1397 %{_libdir}/pkgconfig/dali-adaptor-integration-cxx03.pc
1398 %endif