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