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