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