DALi Version 1.3.20
[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.20
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 -lttrace -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 %if 0%{?enable_trace}
483            --enable-trace \
484 %endif
485            --enable-appfw=yes \
486            $configure_flags --libdir=%{_libdir} \
487            --enable-rename-so=no
488
489 # Build.
490 make %{?jobs:-j%jobs}
491
492 pushd %{_builddir}/%{name}-%{version}/build/tizen
493 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
494 popd
495
496 pushd %{buildroot}%{_libdir}
497 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
498 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
499 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
500 popd
501
502 make clean
503
504 %endif
505
506 #######################################################################
507 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
508 # if tv ||"undefined"
509 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
510 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
511            --enable-shaderbincache=DISABLE --enable-profile=TV \
512            --enable-tizen-major-version=%{tizen_version_major} \
513 %if 0%{?tizen_version_major} >= 3
514            --enable-feedback \
515 %endif
516 %if 0%{?tizen_2_2_compatibility}
517            --with-tizen-2-2-compatibility \
518 %endif
519 %if %{with wayland}
520            --enable-efl=no \
521 %else
522            --enable-efl=yes \
523 %endif
524 %if 0%{?enable_debug}
525            --enable-debug \
526 %endif
527 %if 0%{?enable_trace}
528            --enable-trace \
529 %endif
530            --enable-appfw=yes \
531            $configure_flags --libdir=%{_libdir} \
532            --enable-rename-so=no
533
534 # Build.
535 make %{?jobs:-j%jobs}
536
537 pushd %{_builddir}/%{name}-%{version}/build/tizen
538 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
539 popd
540
541 pushd %{buildroot}%{_libdir}
542 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
543 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
544 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
545 popd
546
547 make clean
548 %endif
549
550 #######################################################################
551 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
552 # if wearable || "undefined"
553 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
554 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
555            --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
556            --enable-tizen-major-version=%{tizen_version_major} \
557 %if 0%{?tizen_version_major} >= 3
558            --enable-feedback \
559 %endif
560 %if 0%{?tizen_2_2_compatibility}
561            --with-tizen-2-2-compatibility \
562 %endif
563 %if %{with wayland}
564            --enable-efl=no \
565 %else
566            --enable-efl=yes \
567 %endif
568 %if 0%{?enable_debug}
569            --enable-debug \
570 %endif
571 %if 0%{?enable_trace}
572            --enable-trace \
573 %endif
574            --enable-appfw=yes \
575            $configure_flags --libdir=%{_libdir} \
576            --enable-rename-so=no
577
578 # Build.
579 make %{?jobs:-j%jobs}
580
581 pushd %{_builddir}/%{name}-%{version}/build/tizen
582 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
583 popd
584
585 pushd %{buildroot}%{_libdir}
586 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
587 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
588 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
589 popd
590
591 make clean
592 %endif
593
594 #######################################################################
595 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
596 # if ivi ||"undefined"
597 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
598 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
599            --enable-shaderbincache=DISABLE --enable-profile=IVI \
600            --enable-tizen-major-version=%{tizen_version_major} \
601 %if 0%{?tizen_version_major} >= 3
602            --enable-feedback \
603 %endif
604 %if 0%{?tizen_2_2_compatibility}
605            --with-tizen-2-2-compatibility \
606 %endif
607 %if %{with wayland}
608            --enable-efl=no \
609 %else
610            --enable-efl=yes \
611 %endif
612 %if 0%{?enable_debug}
613            --enable-debug \
614 %endif
615 %if 0%{?enable_trace}
616            --enable-trace \
617 %endif
618            --enable-appfw=yes \
619            $configure_flags --libdir=%{_libdir} \
620            --enable-rename-so=no
621
622 # Build.
623 make %{?jobs:-j%jobs}
624
625 pushd %{_builddir}/%{name}-%{version}/build/tizen
626 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
627 popd
628
629 pushd %{buildroot}%{_libdir}
630 for FILE in libdali-adaptor*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
631 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
632
633 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
634 popd
635
636 make clean
637 %endif
638
639 #######################################################################
640 # common
641 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
642 # if common ||"undefined"
643 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
644 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
645            --enable-shaderbincache=DISABLE --enable-profile=COMMON \
646            --enable-tizen-major-version=%{tizen_version_major} \
647 %if 0%{?tizen_version_major} >= 3
648            --enable-feedback \
649 %endif
650 %if 0%{?tizen_2_2_compatibility}
651            --with-tizen-2-2-compatibility \
652 %endif
653 %if %{with wayland}
654            --enable-efl=no \
655 %else
656            --enable-efl=yes \
657 %endif
658 %if 0%{?enable_debug}
659            --enable-debug \
660 %endif
661 %if 0%{?enable_trace}
662            --enable-trace \
663 %endif
664            --enable-appfw=yes \
665            $configure_flags --libdir=%{_libdir} \
666            --enable-rename-so=no
667
668 # Build.
669 make %{?jobs:-j%jobs}
670
671 pushd %{_builddir}/%{name}-%{version}/build/tizen
672 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
673 popd
674
675 pushd %{buildroot}%{_libdir}
676 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
677 for FILE in libdali-*plugin*-cxx11.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
678
679 mv pkgconfig/dali-adaptor*pc %{_builddir}/%{name}-%{version}/build/tizen/
680 popd
681
682 make clean
683
684 %endif
685
686 %if !0%{?disable_cxx03_build}
687 #######################################################################
688 #BUILD for cxx03 ABI
689 #######################################################################
690
691 # Set up the build via configure.
692 #######################################################################
693 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
694 # if mobile || "undefined"
695 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
696
697 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
698            --enable-shaderbincache=DISABLE --enable-profile=MOBILE \
699            --enable-tizen-major-version=%{tizen_version_major} \
700 %if 0%{?tizen_version_major} >= 3
701            --enable-feedback \
702 %endif
703            --enable-cxx03-abi=yes  \
704 %if 0%{?tizen_2_2_compatibility}
705            --with-tizen-2-2-compatibility \
706 %endif
707 %if %{with wayland}
708            --enable-efl=no \
709 %else
710            --enable-efl=yes \
711 %endif
712 %if 0%{?enable_debug}
713            --enable-debug \
714 %endif
715 %if 0%{?enable_trace}
716            --enable-trace \
717 %endif
718            --enable-appfw=yes \
719            $configure_flags --libdir=%{_libdir} \
720            --enable-rename-so=no
721
722 # Build.
723 make %{?jobs:-j%jobs}
724
725 pushd %{_builddir}/%{name}-%{version}/build/tizen
726 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
727 popd
728
729 pushd %{buildroot}%{_libdir}
730 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
731 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
732 popd
733
734 make clean
735
736 %endif
737
738 #######################################################################
739 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
740 # if tv ||"undefined"
741 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
742
743 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
744            --enable-shaderbincache=DISABLE --enable-profile=TV \
745            --enable-tizen-major-version=%{tizen_version_major} \
746 %if 0%{?tizen_version_major} >= 3
747            --enable-feedback \
748 %endif
749            --enable-cxx03-abi=yes  \
750 %if 0%{?tizen_2_2_compatibility}
751            --with-tizen-2-2-compatibility \
752 %endif
753 %if %{with wayland}
754            --enable-efl=no \
755 %else
756            --enable-efl=yes \
757 %endif
758 %if 0%{?enable_debug}
759            --enable-debug \
760 %endif
761 %if 0%{?enable_trace}
762            --enable-trace \
763 %endif
764            --enable-appfw=yes \
765            $configure_flags --libdir=%{_libdir} \
766            --enable-rename-so=no
767
768 # Build.
769 make %{?jobs:-j%jobs}
770
771 pushd %{_builddir}/%{name}-%{version}/build/tizen
772 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
773 popd
774
775 pushd %{buildroot}%{_libdir}
776 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
777 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
778 popd
779
780 make clean
781 %endif
782
783 #######################################################################
784 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
785 # if wearable || "undefined"
786 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
787
788 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
789            --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
790            --enable-tizen-major-version=%{tizen_version_major} \
791 %if 0%{?tizen_version_major} >= 3
792            --enable-feedback \
793 %endif
794            --enable-cxx03-abi=yes \
795 %if 0%{?tizen_2_2_compatibility}
796            --with-tizen-2-2-compatibility \
797 %endif
798 %if %{with wayland}
799            --enable-efl=no \
800 %else
801            --enable-efl=yes \
802 %endif
803 %if 0%{?enable_debug}
804            --enable-debug \
805 %endif
806 %if 0%{?enable_trace}
807            --enable-trace \
808 %endif
809            --enable-appfw=yes \
810            $configure_flags --libdir=%{_libdir} \
811            --enable-rename-so=no
812
813 # Build.
814 make %{?jobs:-j%jobs}
815
816 pushd %{_builddir}/%{name}-%{version}/build/tizen
817 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
818 popd
819
820 pushd %{buildroot}%{_libdir}
821 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
822 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
823 popd
824
825 make clean
826 %endif
827
828 #######################################################################
829 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
830 # if ivi ||"undefined"
831 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
832
833 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
834            --enable-shaderbincache=DISABLE --enable-profile=IVI \
835            --enable-tizen-major-version=%{tizen_version_major} \
836 %if 0%{?tizen_version_major} >= 3
837            --enable-feedback \
838 %endif
839            --enable-cxx03-abi=yes  \
840 %if 0%{?tizen_2_2_compatibility}
841            --with-tizen-2-2-compatibility \
842 %endif
843 %if %{with wayland}
844            --enable-efl=no \
845 %else
846            --enable-efl=yes \
847 %endif
848 %if 0%{?enable_debug}
849            --enable-debug \
850 %endif
851 %if 0%{?enable_trace}
852            --enable-trace \
853 %endif
854            --enable-appfw=yes \
855            $configure_flags --libdir=%{_libdir} \
856            --enable-rename-so=no
857
858 # Build.
859 make %{?jobs:-j%jobs}
860
861 pushd %{_builddir}/%{name}-%{version}/build/tizen
862 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
863 popd
864
865 pushd %{buildroot}%{_libdir}
866 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
867 for FILE in libdali-*plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE"; done
868 popd
869
870 make clean
871 %endif
872
873 #######################################################################
874 # common
875 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
876 # if common ||"undefined"
877 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
878
879 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
880            --enable-shaderbincache=DISABLE --enable-profile=COMMON \
881            --enable-tizen-major-version=%{tizen_version_major} \
882 %if 0%{?tizen_version_major} >= 3
883            --enable-feedback \
884 %endif
885            --enable-cxx03-abi=yes  \
886 %if 0%{?tizen_2_2_compatibility}
887            --with-tizen-2-2-compatibility \
888 %endif
889 %if %{with wayland}
890            --enable-efl=no \
891 %else
892            --enable-efl=yes \
893 %endif
894 %if 0%{?enable_debug}
895            --enable-debug \
896 %endif
897 %if 0%{?enable_trace}
898            --enable-trace \
899 %endif
900            --enable-appfw=yes \
901            $configure_flags --libdir=%{_libdir} \
902            --enable-rename-so=no
903
904 # Build.
905 make %{?jobs:-j%jobs}
906
907 %endif
908 %endif
909
910 ##############################
911 # Installation
912 ##############################
913 %install
914 rm -rf %{buildroot}
915
916 pushd %{_builddir}/%{name}-%{version}/build/tizen
917 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
918
919
920 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
921 # !unified && (wearable || tv || ivi || mobile)
922 %if "%{?profile}" == "wearable" || "%{?profile}" == "tv" || "%{?profile}" == "ivi" || "%{?profile}" == "mobile"
923 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
924 %endif
925
926 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
927 # wearable || tv || ivi || mobile || unified
928 %if "%{?profile}" != "common"
929 for FILE in libdali-*.so*; do mv "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
930 mv dali-adaptor*.pc %{buildroot}%{_libdir}/pkgconfig/
931 %endif
932 popd
933
934 ################################################
935 #rename
936 ###############################################
937 pushd %{buildroot}%{_libdir}
938
939 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
940 # if common ||"undefined"
941 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
942 rm -rf libdali-adaptor*.so
943 %if !0%{?disable_cxx03_build}
944 ln -s libdali-adaptor.so.0.0.0 libdali-adaptor-cxx03.so
945 %endif
946 ln -s libdali-adaptor-cxx11.so.0.0.0 libdali-adaptor.so
947 #%endif
948
949 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
950 # if wearable || "undefined"
951 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
952 rm -rf libdali-adaptor*.so.wearable
953 %if !0%{?disable_cxx03_build}
954 ln -s libdali-adaptor.so.0.0.*.wearable libdali-adaptor-cxx03.so.wearable
955 %endif
956 ln -s libdali-adaptor-cxx11.so.0.0.*.wearable libdali-adaptor.so.wearable
957 %endif
958
959 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
960 # if tv ||"undefined"
961 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
962 rm -rf libdali-adaptor*.so.tv
963 %if !0%{?disable_cxx03_build}
964 ln -s libdali-adaptor.so.0.0.*.tv libdali-adaptor-cxx03.so.tv
965 %endif
966 ln -s libdali-adaptor-cxx11.so.0.0.*.tv libdali-adaptor.so.tv
967 %endif
968
969 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
970 # if ivi ||"undefined"
971 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
972 rm -rf libdali-adaptor*.so.ivi
973 %if !0%{?disable_cxx03_build}
974 ln -s libdali-adaptor.so.0.0.*.ivi libdali-adaptor-cxx03.so.ivi
975 %endif
976 ln -s libdali-adaptor-cxx11.so.0.0.*.ivi libdali-adaptor.so.ivi
977 %endif
978
979 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
980 # if mobile || "undefined"
981 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
982 rm -rf libdali-adaptor*.so.mobile
983 %if !0%{?disable_cxx03_build}
984 ln -s libdali-adaptor.so.0.0.*.mobile libdali-adaptor-cxx03.so.mobile
985 %endif
986 ln -s libdali-adaptor-cxx11.so.0.0.*.mobile libdali-adaptor.so.mobile
987 %endif
988 popd
989
990 ##############################
991 # Upgrade order:
992 # 1 - Pre Install new package
993 # 2 - Install new package
994 # 3 - Post install new package
995 # 4 - Pre uninstall old package
996 # 5 - Remove files not overwritten by new package
997 # 6 - Post uninstall old package
998 ##############################
999
1000 %pre
1001 exit 0
1002
1003 ##############################
1004 #  Post Install new package
1005 ##############################
1006 %post
1007 /sbin/ldconfig
1008 exit 0
1009
1010 ##############################
1011 #  Pre Uninstall old package
1012 ##############################
1013 %preun
1014 exit 0
1015
1016 ##############################
1017 #  Post Uninstall old package
1018 ##############################
1019 %postun
1020 /sbin/ldconfig
1021 exit 0
1022
1023 ##############################
1024
1025 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1026 # if mobile || "undefined"
1027 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1028 %post profile_mobile
1029 pushd %{_libdir}
1030 for FILE in libdali-adaptor-cxx11.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
1031 popd
1032 /sbin/ldconfig
1033 exit 0
1034
1035 %postun profile_mobile
1036 /sbin/ldconfig
1037 exit 0
1038 %endif
1039
1040 ##############################
1041
1042 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1043 # if tv ||"undefined"
1044 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1045 %post profile_tv
1046 pushd %{_libdir}
1047 for FILE in libdali-adaptor-cxx11.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1048 popd
1049 /sbin/ldconfig
1050 exit 0
1051
1052 %postun profile_tv
1053 /sbin/ldconfig
1054 exit 0
1055 %endif
1056
1057 ##############################
1058
1059 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1060 # if wearable || "undefined"
1061 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1062 %post profile_wearable
1063 pushd %{_libdir}
1064 for FILE in libdali-adaptor-cxx11.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1065 popd
1066 /sbin/ldconfig
1067 exit 0
1068
1069 %postun profile_wearable
1070 /sbin/ldconfig
1071 exit 0
1072 %endif
1073
1074 ##############################
1075
1076 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1077 # if ivi ||"undefined"
1078 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1079 %post profile_ivi
1080 pushd %{_libdir}
1081 for FILE in libdali-adaptor-cxx11.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1082 popd
1083 /sbin/ldconfig
1084 exit 0
1085
1086 %postun profile_ivi
1087 /sbin/ldconfig
1088 exit 0
1089 %endif
1090
1091 %if !0%{?disable_cxx03_build}
1092 ##############################
1093 #cxx03 ABI
1094 #############################
1095 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1096 # if mobile || "undefined"
1097 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1098 %post profile_mobile-cxx03
1099 pushd %{_libdir}
1100 for FILE in libdali-adaptor.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
1101 popd
1102 /sbin/ldconfig
1103 exit 0
1104
1105 %postun profile_mobile-cxx03
1106 /sbin/ldconfig
1107 exit 0
1108 %endif
1109
1110 ##############################
1111
1112 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1113 # if tv ||"undefined"
1114 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1115 %post profile_tv-cxx03
1116 pushd %{_libdir}
1117 for FILE in libdali-adaptor.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
1118 popd
1119 /sbin/ldconfig
1120 exit 0
1121
1122 %postun profile_tv-cxx03
1123 /sbin/ldconfig
1124 exit 0
1125 %endif
1126
1127 ##############################
1128
1129 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1130 # if wearable || "undefined"
1131 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1132 %post profile_wearable-cxx03
1133 pushd %{_libdir}
1134 for FILE in libdali-adaptor.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
1135 popd
1136 /sbin/ldconfig
1137 exit 0
1138
1139 %postun profile_wearable-cxx03
1140 /sbin/ldconfig
1141 exit 0
1142 %endif
1143
1144 ##############################
1145
1146 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1147 # if ivi ||"undefined"
1148 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1149 %post profile_ivi-cxx03
1150 pushd %{_libdir}
1151 for FILE in libdali-adaptor.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
1152 popd
1153 /sbin/ldconfig
1154 exit 0
1155
1156 %postun profile_ivi-cxx03
1157 /sbin/ldconfig
1158 exit 0
1159 %endif
1160 %endif
1161
1162 ##############################
1163 # Files in Binary Packages
1164 ##############################
1165
1166 %files
1167 %manifest dali-adaptor.manifest
1168 %defattr(-,root,root,-)
1169 %defattr(-,app,app,-)
1170 %dir %{user_shader_cache_dir}
1171 %{_bindir}/*
1172 %license LICENSE
1173
1174 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1175 # if common ||"undefined"
1176 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1177 %defattr(-,root,root,-)
1178 %{_libdir}/libdali-adaptor-cxx11.so.0*
1179 %{_libdir}/libdali-adaptor.so
1180 %exclude %{_libdir}/libdali-adap*.so*.mobile
1181 %exclude %{_libdir}/libdali-adap*.so*.wearable
1182 %exclude %{_libdir}/libdali-adap*.so*.tv
1183 %exclude %{_libdir}/libdali-adap*.so*.ivi
1184 #%endif
1185
1186 %if !0%{?disable_cxx03_build}
1187 %files cxx03
1188 %manifest dali-adaptor.manifest
1189 %defattr(-,root,root,-)
1190 %defattr(-,app,app,-)
1191 %dir %{user_shader_cache_dir}
1192 %{_bindir}/*
1193 %license LICENSE
1194 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1195 # if common ||"undefined"
1196 #%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1197 %defattr(-,root,root,-)
1198 %{_libdir}/libdali-adaptor.so.0*
1199 %{_libdir}/libdali-adaptor-cxx03.so
1200 %exclude %{_libdir}/libdali-adap*.so*.mobile
1201 %exclude %{_libdir}/libdali-adap*.so*.wearable
1202 %exclude %{_libdir}/libdali-adap*.so*.tv
1203 %exclude %{_libdir}/libdali-adap*.so*.ivi
1204 #%endif
1205
1206 %if 0%{?tizen_version_major} >= 3
1207 %files dali-feedback-plugin-cxx03
1208 %manifest dali-adaptor.manifest
1209 %defattr(-,root,root,-)
1210 %{_libdir}/libdali-feedback-plugin.so*
1211 %{dali_plugin_sound_files}/*
1212 %endif
1213 %endif
1214
1215 #################################################
1216
1217 %if 0%{?tizen_version_major} >= 3
1218 %files dali-feedback-plugin
1219 %manifest dali-adaptor.manifest
1220 %defattr(-,root,root,-)
1221 %{_libdir}/libdali-feedback-plugin-cxx11.so*
1222 %{dali_plugin_sound_files}/*
1223 %endif
1224
1225 #################################################
1226
1227 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1228 # if common ||"undefined"
1229 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1230 %files profile_common
1231 # default .so files are housed in the main pkg.
1232 %endif
1233
1234 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1235 # if mobile || "undefined"
1236 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1237 %files profile_mobile
1238 %manifest dali-adaptor.manifest
1239 %defattr(-,root,root,-)
1240 %{_libdir}/libdali-adaptor.so.mobile
1241 %{_libdir}/libdali-adaptor-cxx11.so.0*.mobile
1242 %endif
1243
1244 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1245 # if tv ||"undefined"
1246 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1247 %files profile_tv
1248 %manifest dali-adaptor.manifest
1249 %defattr(-,root,root,-)
1250 %{_libdir}/libdali-adaptor.so.tv
1251 %{_libdir}/libdali-adaptor-cxx11.so.0*.tv
1252 %endif
1253
1254 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1255 # if wearable || "undefined"
1256 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1257 %files profile_wearable
1258 %manifest dali-adaptor.manifest
1259 %defattr(-,root,root,-)
1260 %{_libdir}/libdali-adaptor.so.wearable
1261 %{_libdir}/libdali-adaptor-cxx11.so.0*.wearable
1262 %endif
1263
1264 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1265 # if ivi ||"undefined"
1266 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1267 %files profile_ivi
1268 %manifest dali-adaptor.manifest
1269 %defattr(-,root,root,-)
1270 %{_libdir}/libdali-adaptor.so.ivi
1271 %{_libdir}/libdali-adaptor-cxx11.so.0*.ivi
1272 %endif
1273
1274
1275 %files devel
1276 %defattr(-,root,root,-)
1277 %{dev_include_path}/dali/dali.h
1278 %{dev_include_path}/dali/public-api/*
1279 %{dev_include_path}/dali/devel-api/*
1280 %{dev_include_path}/dali/doc/*
1281 %{_libdir}/pkgconfig/dali-adaptor.pc
1282
1283 %files integration-devel
1284 %defattr(-,root,root,-)
1285 %{dev_include_path}/dali/integration-api/adaptors/*
1286 %{_libdir}/pkgconfig/dali-adaptor-integration.pc
1287
1288 %if !0%{?disable_cxx03_build}
1289 ################################################
1290 # cxx03 ABI
1291 ################################################
1292
1293 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1294 # if common ||"undefined"
1295 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1296 %files profile_common-cxx03
1297 # default .so files are housed in the main pkg.
1298 %endif
1299
1300 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1301 # if mobile || "undefined"
1302 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1303 %files profile_mobile-cxx03
1304 %manifest dali-adaptor.manifest
1305 %defattr(-,root,root,-)
1306 %{_libdir}/libdali-adaptor-cxx03.so.mobile
1307 %{_libdir}/libdali-adaptor.so.0*mobile
1308 %endif
1309
1310 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1311 # if tv ||"undefined"
1312 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
1313 %files profile_tv-cxx03
1314 %manifest dali-adaptor.manifest
1315 %defattr(-,root,root,-)
1316 %{_libdir}/libdali-adaptor-cxx03.so.tv
1317 %{_libdir}/libdali-adaptor.so.0*.tv
1318 %endif
1319
1320 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1321 # if wearable || "undefined"
1322 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
1323 %files profile_wearable-cxx03
1324 %manifest dali-adaptor.manifest
1325 %defattr(-,root,root,-)
1326 %{_libdir}/libdali-adaptor-cxx03.so.wearable
1327 %{_libdir}/libdali-adaptor.so.0*.wearable
1328 %endif
1329
1330 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
1331 # if ivi ||"undefined"
1332 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
1333 %files profile_ivi-cxx03
1334 %manifest dali-adaptor.manifest
1335 %defattr(-,root,root,-)
1336 %{_libdir}/libdali-adaptor-cxx03.so.ivi
1337 %{_libdir}/libdali-adaptor.so.0*.ivi
1338 %endif
1339
1340
1341 %files devel-cxx03
1342 %defattr(-,root,root,-)
1343 %{dev_include_path}/dali/dali.h
1344 %{dev_include_path}/dali/public-api/*
1345 %{dev_include_path}/dali/devel-api/*
1346 %{dev_include_path}/dali/doc/*
1347 %{_libdir}/pkgconfig/dali-adaptor-cxx03.pc
1348
1349 %files integration-devel-cxx03
1350 %defattr(-,root,root,-)
1351 %{dev_include_path}/dali/integration-api/adaptors/*
1352 %{_libdir}/pkgconfig/dali-adaptor-integration-cxx03.pc
1353 %endif