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