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