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