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