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