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