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