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