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