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