DALi Version 1.4.13
[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.4.13
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 BuildRequires:  pkgconfig(cairo)
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 BuildRequires:  pkgconfig(wayland-egl-tizen)
103 %else
104 BuildRequires:  pkgconfig(ecore-wayland)
105 %endif
106
107 # dali-adaptor needs tbm_surface in tizen 3.0 wayland
108 BuildRequires:  pkgconfig(libtbm)
109
110 # tpkp-curl (certificate pinning for libcurl functions) is only available in Tizen 3.0
111 %if !0%{?disable_cxx03_build}
112 BuildRequires:  pkgconfig(tpkp-curl-deprecated)
113 %endif
114 BuildRequires:  pkgconfig(tpkp-curl)
115
116 ####### BUILDING FOR X11#######
117 %else
118 BuildRequires:  pkgconfig(egl)
119 BuildRequires:  pkgconfig(xext)
120 BuildRequires:  pkgconfig(xi)
121 BuildRequires:  pkgconfig(xfixes)
122 BuildRequires:  pkgconfig(xdamage)
123 BuildRequires:  pkgconfig(utilX)
124 %endif
125
126 # for dali-adaptor
127 %if 0%{?tizen_version_major} == 3
128 BuildRequires:  pkgconfig(capi-appfw-application)
129 BuildRequires:  pkgconfig(elementary)
130 %else
131 BuildRequires:  pkgconfig(appcore-ui)
132 BuildRequires:  pkgconfig(appcore-widget-base)
133 BuildRequires:  pkgconfig(bundle)
134 BuildRequires:  pkgconfig(capi-appfw-app-common)
135 BuildRequires:  pkgconfig(capi-appfw-app-control)
136 BuildRequires:  pkgconfig(ecore-imf)
137 %endif
138
139 BuildRequires:  pkgconfig(capi-system-system-settings)
140
141 # for feedback plugin
142 BuildRequires:  pkgconfig(mm-sound)
143 %if 0%{?tizen_version_major} >= 3
144 BuildRequires:  pkgconfig(feedback)
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 %if !0%{?disable_cxx03_build}
378 ##############################
379 # Dali Feedback Plugin cxx03
380 ##############################
381
382 %package dali-feedback-plugin-cxx03
383 Summary:    Plugin to play haptic and audio feedback for Dali with cxx03 abi
384 Group:      System/Libraries
385 Requires:   %{name}-cxx03 = %{version}-%{release}
386 %description dali-feedback-plugin-cxx03
387 Feedback plugin to play haptic and audio feedback for Dali
388
389 %endif
390
391 ##############################
392 # Preparation
393 ##############################
394 %prep
395 %setup -q
396
397 #Use TZ_PATH when tizen version is 3.x or greater
398
399 %if 0%{?tizen_version_major} >= 3
400 %define dali_data_rw_dir         %TZ_SYS_RO_SHARE/dali/
401 %define dali_data_ro_dir         %TZ_SYS_RO_SHARE/dali/
402 %define font_preloaded_path      %TZ_SYS_RO_SHARE/fonts/
403 %define font_downloaded_path     %TZ_SYS_SHARE/fonts/
404 %define font_application_path    %TZ_SYS_RO_SHARE/app_fonts/
405 %define font_configuration_file  %TZ_SYS_ETC/fonts/conf.avail/99-slp.conf
406 %else
407 %define dali_data_rw_dir         /usr/share/dali/
408 %define dali_data_ro_dir         /usr/share/dali/
409 %define font_preloaded_path      /usr/share/fonts/
410 %define font_downloaded_path     /opt/share/fonts/
411 %define font_application_path    /usr/share/app_fonts/
412 %define font_configuration_file  /opt/etc/fonts/conf.avail/99-slp.conf
413 %endif
414
415 %define user_shader_cache_dir    %{dali_data_ro_dir}/core/shaderbin/
416 %define dali_plugin_sound_files  /plugins/sounds/
417 %define dev_include_path %{_includedir}
418
419 ##############################
420 # Build
421 ##############################
422 %build
423 PREFIX+="/usr"
424 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
425 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -lttrace -Wl,-Bsymbolic-functions "
426
427 %ifarch %{arm}
428 CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
429 %endif
430
431 %if %{with wayland}
432 CFLAGS+=" -DWAYLAND"
433 CXXFLAGS+=" -DWAYLAND"
434 configure_flags="--enable-wayland"
435
436 # Need Ecore-Wayland2 when Tizen version is 5.x or greater
437 %if 0%{?tizen_version_major} >= 5
438 CFLAGS+=" -DECORE_WAYLAND2 -DEFL_BETA_API_SUPPORT"
439 CXXFLAGS+=" -DECORE_WAYLAND2 -DEFL_BETA_API_SUPPORT"
440 configure_flags+=" --enable-ecore-wayland2"
441 %endif
442 %endif
443
444 # Use this conditional when Tizen version is 5.x or greater
445 %if 0%{?tizen_version_major} >= 5
446 CXXFLAGS+=" -DOVER_TIZEN_VERSION_5"
447 %endif
448
449 # Use this conditional when Tizen version is 4.x or greater
450 %if 0%{?tizen_version_major} >= 4
451 CXXFLAGS+=" -DOVER_TIZEN_VERSION_4"
452 %endif
453
454 %if 0%{?tizen_2_2_compatibility}
455 CFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY"
456 CXXFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY"
457 %endif
458
459 libtoolize --force
460 cd %{_builddir}/%{name}-%{version}/build/tizen
461 autoreconf --install
462
463 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
464 DALI_DATA_RO_DIR="%{dali_data_ro_dir}"  ; export DALI_DATA_RO_DIR
465 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
466 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
467 FONT_APPLICATION_PATH="%{font_application_path}"  ; export FONT_APPLICATION_PATH
468 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
469 %if 0%{?tizen_platform_config_supported}
470 TIZEN_PLATFORM_CONFIG_SUPPORTED="%{tizen_platform_config_supported}" ; export TIZEN_PLATFORM_CONFIG_SUPPORTED
471 %endif
472
473 # Default to GLES 2.0 if not specified.
474 %if 0%{?target_gles_version} == 0
475 %define target_gles_version 20
476 %endif
477
478 # Set up the build via configure.
479 #######################################################################
480 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
481 # if mobile || "undefined"
482 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
483 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
484            --enable-shaderbincache=DISABLE --enable-profile=MOBILE \
485            --enable-tizen-major-version=%{tizen_version_major} \
486 %if 0%{?tizen_version_major} >= 3
487            --enable-feedback \
488 %endif
489 %if 0%{?tizen_2_2_compatibility}
490            --with-tizen-2-2-compatibility \
491 %endif
492 %if %{with wayland}
493            --enable-efl=no \
494 %else
495            --enable-efl=yes \
496 %endif
497 %if 0%{?enable_debug}
498            --enable-debug \
499 %endif
500 %if 0%{?enable_trace}
501            --enable-trace \
502 %endif
503            --enable-appfw=yes \
504            $configure_flags --libdir=%{_libdir} \
505            --enable-rename-so=no
506
507 # Build.
508 make %{?jobs:-j%jobs}
509
510 pushd %{_builddir}/%{name}-%{version}/build/tizen
511 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
512 popd
513
514 pushd %{buildroot}%{_libdir}
515 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
516 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
517 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
518 popd
519
520 make clean
521
522 %endif
523
524 #######################################################################
525 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
526 # if tv ||"undefined"
527 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
528 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
529            --enable-shaderbincache=DISABLE --enable-profile=TV \
530            --enable-tizen-major-version=%{tizen_version_major} \
531 %if 0%{?tizen_version_major} >= 3
532            --enable-feedback \
533 %endif
534 %if 0%{?tizen_2_2_compatibility}
535            --with-tizen-2-2-compatibility \
536 %endif
537 %if %{with wayland}
538            --enable-efl=no \
539 %else
540            --enable-efl=yes \
541 %endif
542 %if 0%{?enable_debug}
543            --enable-debug \
544 %endif
545 %if 0%{?enable_trace}
546            --enable-trace \
547 %endif
548            --enable-appfw=yes \
549            $configure_flags --libdir=%{_libdir} \
550            --enable-rename-so=no
551
552 # Build.
553 make %{?jobs:-j%jobs}
554
555 pushd %{_builddir}/%{name}-%{version}/build/tizen
556 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
557 popd
558
559 pushd %{buildroot}%{_libdir}
560 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
561 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
562 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
563 popd
564
565 make clean
566 %endif
567
568 #######################################################################
569 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
570 # if wearable || "undefined"
571 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
572 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
573            --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
574            --enable-tizen-major-version=%{tizen_version_major} \
575 %if 0%{?tizen_version_major} >= 3
576            --enable-feedback \
577 %endif
578 %if 0%{?tizen_2_2_compatibility}
579            --with-tizen-2-2-compatibility \
580 %endif
581 %if %{with wayland}
582            --enable-efl=no \
583 %else
584            --enable-efl=yes \
585 %endif
586 %if 0%{?enable_debug}
587            --enable-debug \
588 %endif
589 %if 0%{?enable_trace}
590            --enable-trace \
591 %endif
592            --enable-appfw=yes \
593            $configure_flags --libdir=%{_libdir} \
594            --enable-rename-so=no
595
596 # Build.
597 make %{?jobs:-j%jobs}
598
599 pushd %{_builddir}/%{name}-%{version}/build/tizen
600 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
601 popd
602
603 pushd %{buildroot}%{_libdir}
604 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
605 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
606 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
607 popd
608
609 make clean
610 %endif
611
612 #######################################################################
613 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
614 # if ivi ||"undefined"
615 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
616 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
617            --enable-shaderbincache=DISABLE --enable-profile=IVI \
618            --enable-tizen-major-version=%{tizen_version_major} \
619 %if 0%{?tizen_version_major} >= 3
620            --enable-feedback \
621 %endif
622 %if 0%{?tizen_2_2_compatibility}
623            --with-tizen-2-2-compatibility \
624 %endif
625 %if %{with wayland}
626            --enable-efl=no \
627 %else
628            --enable-efl=yes \
629 %endif
630 %if 0%{?enable_debug}
631            --enable-debug \
632 %endif
633 %if 0%{?enable_trace}
634            --enable-trace \
635 %endif
636            --enable-appfw=yes \
637            $configure_flags --libdir=%{_libdir} \
638            --enable-rename-so=no
639
640 # Build.
641 make %{?jobs:-j%jobs}
642
643 pushd %{_builddir}/%{name}-%{version}/build/tizen
644 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
645 popd
646
647 pushd %{buildroot}%{_libdir}
648 for FILE in libdali-adaptor*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
649 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
650
651 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
652 popd
653
654 make clean
655 %endif
656
657 #######################################################################
658 # common
659 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
660 # if common ||"undefined"
661 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
662 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
663            --enable-shaderbincache=DISABLE --enable-profile=COMMON \
664            --enable-tizen-major-version=%{tizen_version_major} \
665 %if 0%{?tizen_version_major} >= 3
666            --enable-feedback \
667 %endif
668 %if 0%{?tizen_2_2_compatibility}
669            --with-tizen-2-2-compatibility \
670 %endif
671 %if %{with wayland}
672            --enable-efl=no \
673 %else
674            --enable-efl=yes \
675 %endif
676 %if 0%{?enable_debug}
677            --enable-debug \
678 %endif
679 %if 0%{?enable_trace}
680            --enable-trace \
681 %endif
682            --enable-appfw=yes \
683            $configure_flags --libdir=%{_libdir} \
684            --enable-rename-so=no
685
686 # Build.
687 make %{?jobs:-j%jobs}
688
689 pushd %{_builddir}/%{name}-%{version}/build/tizen
690 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
691 popd
692
693 pushd %{buildroot}%{_libdir}
694 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
695 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
696
697 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
698 popd
699
700 make clean
701
702 %endif
703
704 %if !0%{?disable_cxx03_build}
705 #######################################################################
706 #BUILD for cxx03 ABI
707 #######################################################################
708
709 # Set up the build via configure.
710 #######################################################################
711 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
712 # if mobile || "undefined"
713 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
714
715 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
716            --enable-shaderbincache=DISABLE --enable-profile=MOBILE \
717            --enable-tizen-major-version=%{tizen_version_major} \
718 %if 0%{?tizen_version_major} >= 3
719            --enable-feedback \
720 %endif
721            --enable-cxx03-abi=yes  \
722 %if 0%{?tizen_2_2_compatibility}
723            --with-tizen-2-2-compatibility \
724 %endif
725 %if %{with wayland}
726            --enable-efl=no \
727 %else
728            --enable-efl=yes \
729 %endif
730 %if 0%{?enable_debug}
731            --enable-debug \
732 %endif
733 %if 0%{?enable_trace}
734            --enable-trace \
735 %endif
736            --enable-appfw=yes \
737            $configure_flags --libdir=%{_libdir} \
738            --enable-rename-so=no
739
740 # Build.
741 make %{?jobs:-j%jobs}
742
743 pushd %{_builddir}/%{name}-%{version}/build/tizen
744 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
745 popd
746
747 pushd %{buildroot}%{_libdir}
748 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
749 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
750 popd
751
752 make clean
753
754 %endif
755
756 #######################################################################
757 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
758 # if tv ||"undefined"
759 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
760
761 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
762            --enable-shaderbincache=DISABLE --enable-profile=TV \
763            --enable-tizen-major-version=%{tizen_version_major} \
764 %if 0%{?tizen_version_major} >= 3
765            --enable-feedback \
766 %endif
767            --enable-cxx03-abi=yes  \
768 %if 0%{?tizen_2_2_compatibility}
769            --with-tizen-2-2-compatibility \
770 %endif
771 %if %{with wayland}
772            --enable-efl=no \
773 %else
774            --enable-efl=yes \
775 %endif
776 %if 0%{?enable_debug}
777            --enable-debug \
778 %endif
779 %if 0%{?enable_trace}
780            --enable-trace \
781 %endif
782            --enable-appfw=yes \
783            $configure_flags --libdir=%{_libdir} \
784            --enable-rename-so=no
785
786 # Build.
787 make %{?jobs:-j%jobs}
788
789 pushd %{_builddir}/%{name}-%{version}/build/tizen
790 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
791 popd
792
793 pushd %{buildroot}%{_libdir}
794 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
795 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
796 popd
797
798 make clean
799 %endif
800
801 #######################################################################
802 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
803 # if wearable || "undefined"
804 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
805
806 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
807            --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
808            --enable-tizen-major-version=%{tizen_version_major} \
809 %if 0%{?tizen_version_major} >= 3
810            --enable-feedback \
811 %endif
812            --enable-cxx03-abi=yes \
813 %if 0%{?tizen_2_2_compatibility}
814            --with-tizen-2-2-compatibility \
815 %endif
816 %if %{with wayland}
817            --enable-efl=no \
818 %else
819            --enable-efl=yes \
820 %endif
821 %if 0%{?enable_debug}
822            --enable-debug \
823 %endif
824 %if 0%{?enable_trace}
825            --enable-trace \
826 %endif
827            --enable-appfw=yes \
828            $configure_flags --libdir=%{_libdir} \
829            --enable-rename-so=no
830
831 # Build.
832 make %{?jobs:-j%jobs}
833
834 pushd %{_builddir}/%{name}-%{version}/build/tizen
835 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
836 popd
837
838 pushd %{buildroot}%{_libdir}
839 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
840 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
841 popd
842
843 make clean
844 %endif
845
846 #######################################################################
847 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
848 # if ivi ||"undefined"
849 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
850
851 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
852            --enable-shaderbincache=DISABLE --enable-profile=IVI \
853            --enable-tizen-major-version=%{tizen_version_major} \
854 %if 0%{?tizen_version_major} >= 3
855            --enable-feedback \
856 %endif
857            --enable-cxx03-abi=yes  \
858 %if 0%{?tizen_2_2_compatibility}
859            --with-tizen-2-2-compatibility \
860 %endif
861 %if %{with wayland}
862            --enable-efl=no \
863 %else
864            --enable-efl=yes \
865 %endif
866 %if 0%{?enable_debug}
867            --enable-debug \
868 %endif
869 %if 0%{?enable_trace}
870            --enable-trace \
871 %endif
872            --enable-appfw=yes \
873            $configure_flags --libdir=%{_libdir} \
874            --enable-rename-so=no
875
876 # Build.
877 make %{?jobs:-j%jobs}
878
879 pushd %{_builddir}/%{name}-%{version}/build/tizen
880 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
881 popd
882
883 pushd %{buildroot}%{_libdir}
884 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
885 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
886 popd
887
888 make clean
889 %endif
890
891 #######################################################################
892 # common
893 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
894 # if common ||"undefined"
895 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
896
897 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
898            --enable-shaderbincache=DISABLE --enable-profile=COMMON \
899            --enable-tizen-major-version=%{tizen_version_major} \
900 %if 0%{?tizen_version_major} >= 3
901            --enable-feedback \
902 %endif
903            --enable-cxx03-abi=yes  \
904 %if 0%{?tizen_2_2_compatibility}
905            --with-tizen-2-2-compatibility \
906 %endif
907 %if %{with wayland}
908            --enable-efl=no \
909 %else
910            --enable-efl=yes \
911 %endif
912 %if 0%{?enable_debug}
913            --enable-debug \
914 %endif
915 %if 0%{?enable_trace}
916            --enable-trace \
917 %endif
918            --enable-appfw=yes \
919            $configure_flags --libdir=%{_libdir} \
920            --enable-rename-so=no
921
922 # Build.
923 make %{?jobs:-j%jobs}
924
925 %endif
926 %endif
927
928 ##############################
929 # Installation
930 ##############################
931 %install
932 rm -rf %{buildroot}
933
934 pushd %{_builddir}/%{name}-%{version}/build/tizen
935 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
936
937
938 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
939 # !unified && (wearable || tv || ivi || mobile)
940 %if "%{?profile}" == "wearable" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "mobile"
941 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
942 %endif
943
944 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
945 # wearable || tv || ivi || mobile || unified
946 %if "%{?profile}" != "common"
947 for FILE in libdali-*.so*; do mv "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
948 mv dali-adaptor*.pc %{buildroot}%{_libdir}/pkgconfig/
949 %endif
950 popd
951
952 ################################################
953 #rename
954 ###############################################
955 pushd %{buildroot}%{_libdir}
956
957 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
958 # if common ||"undefined"
959 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
960 rm -rf libdali-adaptor*.so
961 %if !0%{?disable_cxx03_build}
962 ln -s libdali-adaptor.so.0.0.0 libdali-adaptor-cxx03.so
963 %endif
964 ln -s libdali-adaptor-cxx11.so.0.0.0 libdali-adaptor.so
965 #%endif
966
967 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
968 # if wearable || "undefined"
969 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
970 rm -rf libdali-adaptor*.so.wearable
971 %if !0%{?disable_cxx03_build}
972 ln -s libdali-adaptor.so.0.0.*.wearable libdali-adaptor-cxx03.so.wearable
973 %endif
974 ln -s libdali-adaptor-cxx11.so.0.0.*.wearable libdali-adaptor.so.wearable
975 %endif
976
977 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
978 # if tv ||"undefined"
979 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
980 rm -rf libdali-adaptor*.so.tv
981 %if !0%{?disable_cxx03_build}
982 ln -s libdali-adaptor.so.0.0.*.tv libdali-adaptor-cxx03.so.tv
983 %endif
984 ln -s libdali-adaptor-cxx11.so.0.0.*.tv libdali-adaptor.so.tv
985 %endif
986
987 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
988 # if ivi ||"undefined"
989 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
990 rm -rf libdali-adaptor*.so.ivi
991 %if !0%{?disable_cxx03_build}
992 ln -s libdali-adaptor.so.0.0.*.ivi libdali-adaptor-cxx03.so.ivi
993 %endif
994 ln -s libdali-adaptor-cxx11.so.0.0.*.ivi libdali-adaptor.so.ivi
995 %endif
996
997 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
998 # if mobile || "undefined"
999 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1000 rm -rf libdali-adaptor*.so.mobile
1001 %if !0%{?disable_cxx03_build}
1002 ln -s libdali-adaptor.so.0.0.*.mobile libdali-adaptor-cxx03.so.mobile
1003 %endif
1004 ln -s libdali-adaptor-cxx11.so.0.0.*.mobile libdali-adaptor.so.mobile
1005 %endif
1006 popd
1007
1008 ##############################
1009 # Upgrade order:
1010 # 1 - Pre Install new package
1011 # 2 - Install new package
1012 # 3 - Post install new package
1013 # 4 - Pre uninstall old package
1014 # 5 - Remove files not overwritten by new package
1015 # 6 - Post uninstall old package
1016 ##############################
1017
1018 %pre
1019 exit 0
1020
1021 ##############################
1022 #  Post Install new package
1023 ##############################
1024 %post
1025 /sbin/ldconfig
1026 exit 0
1027
1028 ##############################
1029 #  Pre Uninstall old package
1030 ##############################
1031 %preun
1032 exit 0
1033
1034 ##############################
1035 #  Post Uninstall old package
1036 ##############################
1037 %postun
1038 /sbin/ldconfig
1039 exit 0
1040
1041 ##############################
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 %post profile_mobile
1047 pushd %{_libdir}
1048 for FILE in libdali-adaptor-cxx11.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
1049 popd
1050 /sbin/ldconfig
1051 exit 0
1052
1053 %postun profile_mobile
1054 /sbin/ldconfig
1055 exit 0
1056 %endif
1057
1058 ##############################
1059
1060 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1061 # if tv ||"undefined"
1062 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1063 %post profile_tv
1064 pushd %{_libdir}
1065 for FILE in libdali-adaptor-cxx11.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1066 popd
1067 /sbin/ldconfig
1068 exit 0
1069
1070 %postun profile_tv
1071 /sbin/ldconfig
1072 exit 0
1073 %endif
1074
1075 ##############################
1076
1077 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1078 # if wearable || "undefined"
1079 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1080 %post profile_wearable
1081 pushd %{_libdir}
1082 for FILE in libdali-adaptor-cxx11.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1083 popd
1084 /sbin/ldconfig
1085 exit 0
1086
1087 %postun profile_wearable
1088 /sbin/ldconfig
1089 exit 0
1090 %endif
1091
1092 ##############################
1093
1094 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1095 # if ivi ||"undefined"
1096 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1097 %post profile_ivi
1098 pushd %{_libdir}
1099 for FILE in libdali-adaptor-cxx11.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1100 popd
1101 /sbin/ldconfig
1102 exit 0
1103
1104 %postun profile_ivi
1105 /sbin/ldconfig
1106 exit 0
1107 %endif
1108
1109 %if !0%{?disable_cxx03_build}
1110 ##############################
1111 #cxx03 ABI
1112 #############################
1113 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1114 # if mobile || "undefined"
1115 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1116 %post profile_mobile-cxx03
1117 pushd %{_libdir}
1118 for FILE in libdali-adaptor.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
1119 popd
1120 /sbin/ldconfig
1121 exit 0
1122
1123 %postun profile_mobile-cxx03
1124 /sbin/ldconfig
1125 exit 0
1126 %endif
1127
1128 ##############################
1129
1130 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1131 # if tv ||"undefined"
1132 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1133 %post profile_tv-cxx03
1134 pushd %{_libdir}
1135 for FILE in libdali-adaptor.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1136 popd
1137 /sbin/ldconfig
1138 exit 0
1139
1140 %postun profile_tv-cxx03
1141 /sbin/ldconfig
1142 exit 0
1143 %endif
1144
1145 ##############################
1146
1147 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1148 # if wearable || "undefined"
1149 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1150 %post profile_wearable-cxx03
1151 pushd %{_libdir}
1152 for FILE in libdali-adaptor.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1153 popd
1154 /sbin/ldconfig
1155 exit 0
1156
1157 %postun profile_wearable-cxx03
1158 /sbin/ldconfig
1159 exit 0
1160 %endif
1161
1162 ##############################
1163
1164 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1165 # if ivi ||"undefined"
1166 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1167 %post profile_ivi-cxx03
1168 pushd %{_libdir}
1169 for FILE in libdali-adaptor.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1170 popd
1171 /sbin/ldconfig
1172 exit 0
1173
1174 %postun profile_ivi-cxx03
1175 /sbin/ldconfig
1176 exit 0
1177 %endif
1178 %endif
1179
1180 ##############################
1181 # Files in Binary Packages
1182 ##############################
1183
1184 %files
1185 %manifest dali-adaptor.manifest
1186 %defattr(-,root,root,-)
1187 %dir %{user_shader_cache_dir}
1188 %{_bindir}/*
1189 %license LICENSE
1190
1191 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1192 # if common ||"undefined"
1193 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1194 %defattr(-,root,root,-)
1195 %{_libdir}/libdali-adaptor-cxx11.so.0*
1196 %{_libdir}/libdali-adaptor.so
1197 %exclude %{_libdir}/libdali-adap*.so*.mobile
1198 %exclude %{_libdir}/libdali-adap*.so*.wearable
1199 %exclude %{_libdir}/libdali-adap*.so*.tv
1200 %exclude %{_libdir}/libdali-adap*.so*.ivi
1201 #%endif
1202
1203 %if !0%{?disable_cxx03_build}
1204 %files cxx03
1205 %manifest dali-adaptor.manifest
1206 %defattr(-,root,root,-)
1207 %dir %{user_shader_cache_dir}
1208 %{_bindir}/*
1209 %license LICENSE
1210 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1211 # if common ||"undefined"
1212 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1213 %defattr(-,root,root,-)
1214 %{_libdir}/libdali-adaptor.so.0*
1215 %{_libdir}/libdali-adaptor-cxx03.so
1216 %exclude %{_libdir}/libdali-adap*.so*.mobile
1217 %exclude %{_libdir}/libdali-adap*.so*.wearable
1218 %exclude %{_libdir}/libdali-adap*.so*.tv
1219 %exclude %{_libdir}/libdali-adap*.so*.ivi
1220 #%endif
1221
1222 %if 0%{?tizen_version_major} >= 3
1223 %files dali-feedback-plugin-cxx03
1224 %manifest dali-adaptor.manifest
1225 %defattr(-,root,root,-)
1226 %{_libdir}/libdali-feedback-plugin.so*
1227 %{dali_plugin_sound_files}/*
1228 %endif
1229 %endif
1230
1231 #################################################
1232
1233 %if 0%{?tizen_version_major} >= 3
1234 %files dali-feedback-plugin
1235 %manifest dali-adaptor.manifest
1236 %defattr(-,root,root,-)
1237 %{_libdir}/libdali-feedback-plugin-cxx11.so*
1238 %{dali_plugin_sound_files}/*
1239 %endif
1240
1241 #################################################
1242
1243 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1244 # if common ||"undefined"
1245 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1246 %files profile_common
1247 # default .so files are housed in the main pkg.
1248 %endif
1249
1250 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1251 # if mobile || "undefined"
1252 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1253 %files profile_mobile
1254 %manifest dali-adaptor.manifest
1255 %defattr(-,root,root,-)
1256 %{_libdir}/libdali-adaptor.so.mobile
1257 %{_libdir}/libdali-adaptor-cxx11.so.0*.mobile
1258 %endif
1259
1260 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1261 # if tv ||"undefined"
1262 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1263 %files profile_tv
1264 %manifest dali-adaptor.manifest
1265 %defattr(-,root,root,-)
1266 %{_libdir}/libdali-adaptor.so.tv
1267 %{_libdir}/libdali-adaptor-cxx11.so.0*.tv
1268 %endif
1269
1270 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1271 # if wearable || "undefined"
1272 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1273 %files profile_wearable
1274 %manifest dali-adaptor.manifest
1275 %defattr(-,root,root,-)
1276 %{_libdir}/libdali-adaptor.so.wearable
1277 %{_libdir}/libdali-adaptor-cxx11.so.0*.wearable
1278 %endif
1279
1280 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1281 # if ivi ||"undefined"
1282 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1283 %files profile_ivi
1284 %manifest dali-adaptor.manifest
1285 %defattr(-,root,root,-)
1286 %{_libdir}/libdali-adaptor.so.ivi
1287 %{_libdir}/libdali-adaptor-cxx11.so.0*.ivi
1288 %endif
1289
1290
1291 %files devel
1292 %defattr(-,root,root,-)
1293 %{dev_include_path}/dali/dali.h
1294 %{dev_include_path}/dali/public-api/*
1295 %{dev_include_path}/dali/devel-api/*
1296 %{dev_include_path}/dali/doc/*
1297 %{_libdir}/pkgconfig/dali-adaptor.pc
1298
1299 %files integration-devel
1300 %defattr(-,root,root,-)
1301 %{dev_include_path}/dali/integration-api/adaptors/*
1302 %{_libdir}/pkgconfig/dali-adaptor-integration.pc
1303
1304 %if !0%{?disable_cxx03_build}
1305 ################################################
1306 # cxx03 ABI
1307 ################################################
1308
1309 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1310 # if common ||"undefined"
1311 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1312 %files profile_common-cxx03
1313 # default .so files are housed in the main pkg.
1314 %endif
1315
1316 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1317 # if mobile || "undefined"
1318 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1319 %files profile_mobile-cxx03
1320 %manifest dali-adaptor.manifest
1321 %defattr(-,root,root,-)
1322 %{_libdir}/libdali-adaptor-cxx03.so.mobile
1323 %{_libdir}/libdali-adaptor.so.0*mobile
1324 %endif
1325
1326 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1327 # if tv ||"undefined"
1328 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1329 %files profile_tv-cxx03
1330 %manifest dali-adaptor.manifest
1331 %defattr(-,root,root,-)
1332 %{_libdir}/libdali-adaptor-cxx03.so.tv
1333 %{_libdir}/libdali-adaptor.so.0*.tv
1334 %endif
1335
1336 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1337 # if wearable || "undefined"
1338 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1339 %files profile_wearable-cxx03
1340 %manifest dali-adaptor.manifest
1341 %defattr(-,root,root,-)
1342 %{_libdir}/libdali-adaptor-cxx03.so.wearable
1343 %{_libdir}/libdali-adaptor.so.0*.wearable
1344 %endif
1345
1346 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1347 # if ivi ||"undefined"
1348 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1349 %files profile_ivi-cxx03
1350 %manifest dali-adaptor.manifest
1351 %defattr(-,root,root,-)
1352 %{_libdir}/libdali-adaptor-cxx03.so.ivi
1353 %{_libdir}/libdali-adaptor.so.0*.ivi
1354 %endif
1355
1356
1357 %files devel-cxx03
1358 %defattr(-,root,root,-)
1359 %{dev_include_path}/dali/dali.h
1360 %{dev_include_path}/dali/public-api/*
1361 %{dev_include_path}/dali/devel-api/*
1362 %{dev_include_path}/dali/doc/*
1363 %{_libdir}/pkgconfig/dali-adaptor-cxx03.pc
1364
1365 %files integration-devel-cxx03
1366 %defattr(-,root,root,-)
1367 %{dev_include_path}/dali/integration-api/adaptors/*
1368 %{_libdir}/pkgconfig/dali-adaptor-integration-cxx03.pc
1369 %endif