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