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