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