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