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