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