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