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