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