2 # This spec file is used to build DALi Adaptor for different Tizen Profiles
3 # Current profiles are: Mobile, TV, Wearable, Common
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
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
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)$
21 Summary: The DALi Tizen Adaptor
24 Group: System/Libraries
25 License: Apache-2.0 and BSD-2-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
29 Requires(post): /sbin/ldconfig
30 Requires(postun): /sbin/ldconfig
33 #need libtzplatform-config for directory if tizen version is 3.x
35 %if "%{tizen_version_major}" >= "3"
36 %define tizen_platform_config_supported 1
37 BuildRequires: pkgconfig(libtzplatform-config)
41 # Get the profile from tizen_profile_name if tizen version is 2.x and tizen_profile_name exists.
43 %if "%{tizen_version_major}" == "2" && 0%{?tizen_profile_name:1}
44 %define profile %{tizen_profile_name}
47 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
48 # if wearable || "undefined"
49 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
50 BuildRequires: pkgconfig(capi-appfw-watch-application)
51 BuildRequires: pkgconfig(appcore-watch)
54 BuildRequires: pkgconfig(gles20)
55 BuildRequires: pkgconfig(glesv2)
57 BuildRequires: pkgconfig
59 BuildRequires: pkgconfig(aul)
60 BuildRequires: giflib-devel
61 BuildRequires: pkgconfig(fontconfig)
62 BuildRequires: libjpeg-turbo-devel
63 BuildRequires: dali-devel
64 BuildRequires: dali-integration-devel
65 BuildRequires: pkgconfig(vconf)
66 BuildRequires: tts-devel
67 BuildRequires: pkgconfig(dlog)
68 BuildRequires: libdrm-devel
69 BuildRequires: pkgconfig(libexif)
70 BuildRequires: pkgconfig(libpng)
71 BuildRequires: pkgconfig(egl)
72 BuildRequires: libcurl-devel
73 BuildRequires: pkgconfig(harfbuzz)
74 BuildRequires: fribidi-devel
75 BuildRequires: pkgconfig(capi-system-info)
76 BuildRequires: pkgconfig(capi-system-sensor)
78 # Tizen currently does not have libuv as a separate libuv package
79 # So we have to look into the uv headers bundled inside node-js
80 BuildRequires: nodejs-devel
85 ####### BUILDING FOR WAYLAND #######
86 BuildRequires: pkgconfig(wayland-egl)
87 BuildRequires: pkgconfig(wayland-client)
88 BuildRequires: wayland-devel
89 BuildRequires: wayland-extension-client-devel
91 # dali-adaptor-uv uses libuv mainloop and has its own wayland client (it needs wayland-client headers).
92 BuildRequires: libxkbcommon-devel
94 # dali-adaptor uses ecore mainloop
95 BuildRequires: pkgconfig(ecore-wayland)
97 # dali-adaptor needs tbm_surface in tizen 3.0 wayland
98 BuildRequires: pkgconfig(libtbm)
100 # tpkp-curl (certificate pinning for libcurl functions) is only available in Tizen 3.0
101 BuildRequires: pkgconfig(tpkp-curl)
103 ####### BUILDING FOR X11#######
105 BuildRequires: pkgconfig(egl)
106 BuildRequires: pkgconfig(xext)
107 BuildRequires: pkgconfig(xi)
108 BuildRequires: pkgconfig(xfixes)
109 BuildRequires: pkgconfig(xdamage)
110 BuildRequires: pkgconfig(utilX)
114 BuildRequires: pkgconfig(evas)
115 BuildRequires: pkgconfig(elementary)
116 BuildRequires: pkgconfig(capi-appfw-application)
117 BuildRequires: pkgconfig(capi-system-system-settings)
119 # for feedback plugin
120 BuildRequires: pkgconfig(mm-sound)
121 BuildRequires: libfeedback-devel
123 # for videoplayer Plugin
124 BuildRequires: pkgconfig(capi-media-player)
128 Requires: %{name}-compat = %{version}-%{release}
129 Recommends: %{name}-profile_common = %{version}-%{release}
132 The DALi Tizen Adaptor provides a Tizen specific implementation of the dali-core
133 platform abstraction and application shell
135 ###########################################
136 # Dali adapter for profiles
137 ###########################################
139 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
140 # if mobile || "undefined"
141 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
142 %package profile_mobile
143 %define dali_feedback_plugin_mobile 0
144 Summary: The DALi Tizen Adaptor for mobile
145 Provides: %{name}-compat = %{version}-%{release}
146 Conflicts: %{name}-profile_tv
147 Conflicts: %{name}-profile_wearable
148 Conflicts: %{name}-profile_ivi
149 Conflicts: %{name}-profile_common
150 %description profile_mobile
151 The DALi Tizen Adaptor for mobile.
154 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
155 # if tv ||"undefined"
156 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
158 %define dali_feedback_plugin_tv 0
159 Summary: The DALi Tizen Adaptor for tv
160 Provides: %{name}-compat = %{version}-%{release}
161 Conflicts: %{name}-profile_mobile
162 Conflicts: %{name}-profile_wearable
163 Conflicts: %{name}-profile_ivi
164 Conflicts: %{name}-profile_common
165 %description profile_tv
166 The DALi Tizen Adaptor for tv.
169 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
170 # if wearable || "undefined"
171 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
172 %package profile_wearable
173 %define dali_feedback_plugin_wearable 0
174 Summary: The DALi Tizen Adaptor for wearable
175 Provides: %{name}-compat = %{version}-%{release}
176 Conflicts: %{name}-profile_mobile
177 Conflicts: %{name}-profile_tv
178 Conflicts: %{name}-profile_ivi
179 Conflicts: %{name}-profile_common
180 %description profile_wearable
181 The DALi Tizen Adaptor for wearable.
184 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
185 # if ivi ||"undefined"
186 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
188 %define dali_feedback_plugin_ivi 0
189 Summary: The DALi Tizen Adaptor for ivi
190 Provides: %{name}-compat = %{version}-%{release}
191 Conflicts: %{name}-profile_mobile
192 Conflicts: %{name}-profile_wearable
193 Conflicts: %{name}-profile_tv
194 Conflicts: %{name}-profile_common
195 %description profile_ivi
196 The DALi Tizen Adaptor for ivi.
199 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
200 # if common ||"undefined"
201 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
202 # Currently Tizen Common we use does not have wayland extensions like xdg-shell
203 %package profile_common
204 %define dali_feedback_plugin_common 0
205 %define tizen_2_2_compatibility 0
206 Summary: The DALi Tizen Adaptor for common
207 Provides: %{name}-compat = %{version}-%{release}
208 Conflicts: %{name}-profile_mobile
209 Conflicts: %{name}-profile_wearable
210 Conflicts: %{name}-profile_tv
211 Conflicts: %{name}-profile_ivi
212 %description profile_common
213 The DALi Tizen Adaptor for common.
216 ##############################
218 ##############################
220 Summary: Development components for the DALi Tizen Adaptor
221 Group: Development/Building
222 Requires: %{name} = %{version}-%{release}
223 Requires: %{name}-integration-devel = %{version}-%{release}
226 Development components for the DALi Tizen Adaptor - public headers and package configs
228 ##############################
230 ##############################
231 %package integration-devel
232 Summary: Integration development package for the Adaptor
233 Group: Development/Building
234 Requires: %{name} = %{version}-%{release}
236 %description integration-devel
237 Integration development package for the Adaptor - headers for integrating with an adaptor library.
239 ##############################
240 # Dali Feedback Plugin
241 ##############################
242 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
243 # if mobile || "undefined"
244 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
245 %package dali-feedback-plugin-profile_mobile
246 Summary: Plugin to play haptic and audio feedback for Dali profile mobile.
247 Group: System/Libraries
248 %if 0%{?dali_feedback_plugin_mobile}
249 Provides: %{name}-dali-feedback-plugin = %{version}-%{release}
251 %description dali-feedback-plugin-profile_mobile
252 Feedback plugin to play haptic and audio feedback for Dali profile mobile.
255 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
256 # if tv ||"undefined"
257 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
258 %package dali-feedback-plugin-profile_tv
259 Summary: Plugin to play haptic and audio feedback for Dali profile tv.
260 Group: System/Libraries
261 %if 0%{?dali_feedback_plugin_tv}
262 Provides: %{name}-dali-feedback-plugin = %{version}-%{release}
264 %description dali-feedback-plugin-profile_tv
265 Feedback plugin to play haptic and audio feedback for Dali profile tv.
268 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
269 # if wearable || "undefined"
270 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
271 %package dali-feedback-plugin-profile_wearable
272 Summary: Plugin to play haptic and audio feedback for Dali profile wearable.
273 Group: System/Libraries
274 %if 0%{?dali_feedback_plugin_wearable}
275 Provides: %{name}-dali-feedback-plugin = %{version}-%{release}
277 %description dali-feedback-plugin-profile_wearable
278 Feedback plugin to play haptic and audio feedback for Dali profile wearable.
281 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
282 # if ivi ||"undefined"
283 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
284 %package dali-feedback-plugin-profile_ivi
285 Summary: Plugin to play haptic and audio feedback for Dali profile ivi.
286 Group: System/Libraries
287 %if 0%{?dali_feedback_plugin_ivi}
288 Provides: %{name}-dali-feedback-plugin = %{version}-%{release}
290 %description dali-feedback-plugin-profile_ivi
291 Feedback plugin to play haptic and audio feedback for Dali profile ivi.
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 %package dali-feedback-plugin-profile_common
298 Summary: Plugin to play haptic and audio feedback for Dali profile common.
299 Group: System/Libraries
300 %if 0%{?dali_feedback_plugin_common}
301 Provides: %{name}-dali-feedback-plugin = %{version}-%{release}
303 %description dali-feedback-plugin-profile_common
304 Feedback plugin to play haptic and audio feedback for Dali profile common.
307 ##############################
308 # Dali VideoPlayer Plugin
309 ##############################
312 %package dali-video-player-plugin
313 Summary: Plugin to play a video file for Dali
314 Group: System/Libraries
315 %description dali-video-player-plugin
316 VideoPlayer plugin to play a video file for Dali
319 ##############################
321 ##############################
325 #Use TZ_PATH when tizen version is 3.x or greater
327 %if "%{tizen_version_major}" >= "3"
328 %define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
329 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
330 %define font_preloaded_path %TZ_SYS_RO_SHARE/fonts/
331 %define font_downloaded_path %TZ_SYS_SHARE/fonts/
332 %define font_application_path %TZ_SYS_RO_SHARE/app_fonts/
333 %define font_configuration_file %TZ_SYS_ETC/fonts/conf.avail/99-slp.conf
335 %define dali_data_rw_dir /usr/share/dali/
336 %define dali_data_ro_dir /usr/share/dali/
337 %define font_preloaded_path /usr/share/fonts/
338 %define font_downloaded_path /opt/share/fonts/
339 %define font_application_path /usr/share/app_fonts/
340 %define font_configuration_file /opt/etc/fonts/conf.avail/99-slp.conf
343 %define user_shader_cache_dir %{dali_data_ro_dir}/core/shaderbin/
344 %define dali_plugin_sound_files %{dali_data_ro_dir}/plugins/sounds/
345 %define dev_include_path %{_includedir}
347 ##############################
349 ##############################
352 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
353 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
356 CXXFLAGS+=" -D_ARCH_ARM_ -lgcc"
361 CXXFLAGS+=" -DWAYLAND"
362 configure_flags="--enable-wayland"
365 %if 0%{?tizen_2_2_compatibility}
366 CFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY"
367 CXXFLAGS+=" -DTIZEN_SDK_2_2_COMPATIBILITY"
371 cd %{_builddir}/%{name}-%{version}/build/tizen
374 DALI_DATA_RW_DIR="%{dali_data_rw_dir}" ; export DALI_DATA_RW_DIR
375 DALI_DATA_RO_DIR="%{dali_data_ro_dir}" ; export DALI_DATA_RO_DIR
376 FONT_PRELOADED_PATH="%{font_preloaded_path}" ; export FONT_PRELOADED_PATH
377 FONT_DOWNLOADED_PATH="%{font_downloaded_path}" ; export FONT_DOWNLOADED_PATH
378 FONT_APPLICATION_PATH="%{font_application_path}" ; export FONT_APPLICATION_PATH
379 FONT_CONFIGURATION_FILE="%{font_configuration_file}" ; export FONT_CONFIGURATION_FILE
380 %if 0%{?tizen_platform_config_supported}
381 TIZEN_PLATFORM_CONFIG_SUPPORTED="%{tizen_platform_config_supported}" ; export TIZEN_PLATFORM_CONFIG_SUPPORTED
384 # Default to GLES 2.0 if not specified.
385 %{!?target_gles_version: %define target_gles_version 20}
387 #--enable-efl=no \ # only affects dali-adaptor-uv
388 #--enable-appfw=yes \ # affects both dali-adaptor & dali-adaptor-uv
389 #--with-libuv=/usr/include/node/ \ # only affects dali-adaptor-uv
391 # Set up the build via configure.
392 #######################################################################
393 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
394 # if mobile || "undefined"
395 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
396 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
397 --enable-shaderbincache=DISABLE --enable-profile=MOBILE \
398 %if 0%{?dali_feedback_plugin_mobile}
401 %if 0%{?tizen_2_2_compatibility}
402 --with-tizen-2-2-compatibility \
409 %if 0%{?enable_debug}
413 --with-libuv=/usr/include/node/ \
414 $configure_flags --libdir=%{_libdir}
417 make %{?jobs:-j%jobs}
419 pushd %{_builddir}/%{name}-%{version}/build/tizen
420 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
423 pushd %{buildroot}%{_libdir}
424 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
425 %if 0%{?dali_feedback_plugin_mobile}
426 for FILE in libdali-feedback-plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.mobile"; done
430 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
431 rm -rf %{buildroot}%{_libdir}/libdali-feedback-plugin.so*
434 #######################################################################
435 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
436 # if tv ||"undefined"
437 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
438 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
439 --enable-shaderbincache=ENABLE --enable-profile=TV \
440 %if 0%{?dali_feedback_plugin_tv}
443 %if 0%{?tizen_2_2_compatibility}
444 --with-tizen-2-2-compatibility \
451 %if 0%{?enable_debug}
455 --with-libuv=/usr/include/node/ \
456 $configure_flags --libdir=%{_libdir}
459 make %{?jobs:-j%jobs}
461 pushd %{_builddir}/%{name}-%{version}/build/tizen
462 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
465 pushd %{buildroot}%{_libdir}
466 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
467 %if 0%{?dali_feedback_plugin_tv}
468 for FILE in libdali-feedback-plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.tv"; done
472 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
473 rm -rf %{buildroot}%{_libdir}/libdali-feedback-plugin.so*
476 #######################################################################
477 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
478 # if wearable || "undefined"
479 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
480 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
481 --enable-shaderbincache=DISABLE --enable-profile=WEARABLE \
482 %if 0%{?dali_feedback_plugin_wearable}
485 %if 0%{?tizen_2_2_compatibility}
486 --with-tizen-2-2-compatibility \
493 %if 0%{?enable_debug}
497 --with-libuv=/usr/include/node/ \
498 $configure_flags --libdir=%{_libdir}
501 make %{?jobs:-j%jobs}
503 pushd %{_builddir}/%{name}-%{version}/build/tizen
504 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
507 pushd %{buildroot}%{_libdir}
508 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
509 %if 0%{?dali_feedback_plugin_wearable}
510 for FILE in libdali-feedback-plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.wearable"; done
514 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
515 rm -rf %{buildroot}%{_libdir}/libdali-feedback-plugin.so*
518 #######################################################################
519 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
520 # if ivi ||"undefined"
521 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
522 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
523 --enable-shaderbincache=DISABLE --enable-profile=IVI \
524 %if 0%{?dali_feedback_plugin_ivi}
527 %if 0%{?tizen_2_2_compatibility}
528 --with-tizen-2-2-compatibility \
535 %if 0%{?enable_debug}
539 --with-libuv=/usr/include/node/ \
540 $configure_flags --libdir=%{_libdir}
543 make %{?jobs:-j%jobs}
545 pushd %{_builddir}/%{name}-%{version}/build/tizen
546 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
549 pushd %{buildroot}%{_libdir}
550 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
551 %if 0%{?dali_feedback_plugin_ivi}
552 for FILE in libdali-feedback-plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.ivi"; done
556 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
557 rm -rf %{buildroot}%{_libdir}/libdali-feedback-plugin.so*
560 #######################################################################
561 # common ( build dali_videoplayer_plugin for common uses )
562 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
563 # if common ||"undefined"
564 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
565 %configure --prefix=$PREFIX --with-jpeg-turbo --enable-gles=%{target_gles_version} \
566 --enable-shaderbincache=DISABLE --enable-profile=COMMON \
567 %if 0%{?dali_feedback_plugin_common}
570 --enable-videoplayer \
571 %if 0%{?tizen_2_2_compatibility}
572 --with-tizen-2-2-compatibility \
579 %if 0%{?enable_debug}
583 --with-libuv=/usr/include/node/ \
584 $configure_flags --libdir=%{_libdir}
587 make %{?jobs:-j%jobs}
589 pushd %{_builddir}/%{name}-%{version}/build/tizen
590 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
593 pushd %{buildroot}%{_libdir}
594 for FILE in libdali-adap*.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.common"; done
595 %if 0%{?dali_feedback_plugin_common}
596 for FILE in libdali-feedback-plugin.so*; do mv "$FILE" "%{_builddir}/%{name}-%{version}/build/tizen/$FILE.common"; done
600 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
601 rm -rf %{buildroot}%{_libdir}/libdali-feedback-plugin.so*
604 ##############################
606 ##############################
610 pushd %{_builddir}/%{name}-%{version}/build/tizen
611 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
613 rm -rf %{buildroot}%{_libdir}/libdali-adap*.so*
614 rm -rf %{buildroot}%{_libdir}/libdali-feedback-plugin.so*
615 for FILE in libdali-adap*.so*; do mv "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
617 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
618 # if mobile || "undefined"
619 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
620 %if 0%{?dali_feedback_plugin_mobile}
621 for FILE in libdali-feedback-plugin.so*.mobile; do mv $FILE" "$FILE"; done
625 # if tv ||"undefined"
626 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
627 %if 0%{?dali_feedback_plugin_tv}
628 for FILE in libdali-feedback-plugin.so*.tv; do mv $FILE" "$FILE"; done
632 # if wearable || "undefined"
633 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
634 %if 0%{?dali_feedback_plugin_wearable}
635 for FILE in libdali-feedback-plugin.so*.wearable; do mv $FILE" "$FILE"; done
639 # if ivi ||"undefined"
640 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
641 %if 0%{?dali_feedback_plugin_ivi}
642 for FILE in libdali-feedback-plugin.so*.ivi; do mv $FILE" "$FILE"; done
646 # if common ||"undefined"
647 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
648 %if 0%{?dali_feedback_plugin_common}
649 for FILE in libdali-feedback-plugin.so*.common; do mv $FILE" "$FILE"; done
655 mkdir -p %{buildroot}/usr/share/license
656 cp -af %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/usr/share/license/%{name}
658 ##############################
660 # 1 - Pre Install new package
661 # 2 - Install new package
662 # 3 - Post install new package
663 # 4 - Pre uninstall old package
664 # 5 - Remove files not overwritten by new package
665 # 6 - Post uninstall old package
666 ##############################
671 ##############################
672 # Post, Preun, Postun Install new package
673 ##############################
686 %post dali-video-player-plugin
692 %postun dali-video-player-plugin
697 ##############################
699 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
700 # if mobile || "undefined"
701 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
704 for FILE in libdali-adap*.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
709 %postun profile_mobile
713 %if 0%{?dali_feedback_plugin_mobile}
714 %post dali-feedback-plugin-profile_mobile
716 for FILE in libdali-feedback-plugin.so*.mobile; do ln -sf "$FILE" "${FILE%.mobile}"; done
722 %if 0%{?dali_feedback_plugin_mobile}
723 %postun dali-feedback-plugin-profile_mobile
729 ##############################
731 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
732 # if tv ||"undefined"
733 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
736 for FILE in libdali-adap*.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
745 %if 0%{?dali_feedback_plugin_tv}
746 %post dali-feedback-plugin-profile_tv
748 for FILE in libdali-feedback-plugin.so*.tv; do ln -sf "$FILE" "${FILE%.tv}"; done
754 %if 0%{?dali_feedback_plugin_tv}
755 %postun dali-feedback-plugin-profile_tv
761 ##############################
763 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
764 # if wearable || "undefined"
765 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
766 %post profile_wearable
768 for FILE in libdali-adap*.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
773 %postun profile_wearable
777 %if 0%{?dali_feedback_plugin_wearable}
778 %post dali-feedback-plugin-profile_wearable
780 for FILE in libdali-feedback-plugin.so*.wearable; do ln -sf "$FILE" "${FILE%.wearable}"; done
786 %if 0%{?dali_feedback_plugin_wearable}
787 %postun dali-feedback-plugin-profile_wearable
793 ##############################
795 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
796 # if ivi ||"undefined"
797 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
800 for FILE in libdali-adap*.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
809 %if 0%{?dali_feedback_plugin_ivi}
810 %post dali-feedback-plugin-profile_ivi
812 for FILE in libdali-feedback-plugin.so*.ivi; do ln -sf "$FILE" "${FILE%.ivi}"; done
818 %if 0%{?dali_feedback_plugin_ivi}
819 %postun dali-feedback-plugin-profile_ivi
825 ##############################
827 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
828 # if common ||"undefined"
829 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
832 for FILE in libdali-adap*.so*.common; do ln -sf "$FILE" "${FILE%.common}"; done
837 %postun profile_common
841 %if 0%{?dali_feedback_plugin_common}
842 %post dali-feedback-plugin-profile_common
844 for FILE in libdali-feedback-plugin.so*.common; do ln -sf "$FILE" "${FILE%.common}"; done
850 %if 0%{?dali_feedback_plugin_common}
851 %postun dali-feedback-plugin-profile_common
857 ##############################
858 # Files in Binary Packages
859 ##############################
862 %manifest dali-adaptor.manifest
863 %defattr(-,root,root,-)
864 %defattr(-,app,app,-)
865 %dir %{user_shader_cache_dir}
867 %{_datadir}/license/%{name}
869 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
870 # if mobile || "undefined"
871 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
872 %files profile_mobile
873 %manifest dali-adaptor.manifest
874 %defattr(-,root,root,-)
875 %{_libdir}/libdali-adap*.so*.mobile
877 %if 0%{?dali_feedback_plugin_mobile}
878 %files dali-feedback-plugin-profile_mobile
879 %manifest dali-adaptor.manifest
880 %defattr(-,root,root,-)
881 %{_libdir}/libdali-feedback-plugin.so*.mobile
882 %{dali_plugin_sound_files}/*
886 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
887 # if tv ||"undefined"
888 %if "%{?profile}" != "wearable" && "%{?profile}" != "common" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
890 %manifest dali-adaptor.manifest
891 %defattr(-,root,root,-)
892 %{_libdir}/libdali-adap*.so*.tv
894 %if 0%{?dali_feedback_plugin_tv}
895 %files dali-feedback-plugin-profile_tv
896 %manifest dali-adaptor.manifest
897 %defattr(-,root,root,-)
898 %{_libdir}/libdali-feedback-plugin.so*.tv
899 %{dali_plugin_sound_files}/*
903 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
904 # if wearable || "undefined"
905 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
906 %files profile_wearable
907 %manifest dali-adaptor.manifest
908 %defattr(-,root,root,-)
909 %{_libdir}/libdali-adap*.so*.wearable
911 %if 0%{?dali_feedback_plugin_wearable}
912 %files dali-feedback-plugin-profile_wearable
913 %manifest dali-adaptor.manifest
914 %defattr(-,root,root,-)
915 %{_libdir}/libdali-feedback-plugin.so*.wearable
916 %{dali_plugin_sound_files}/*
920 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
921 # if ivi ||"undefined"
922 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
924 %manifest dali-adaptor.manifest
925 %defattr(-,root,root,-)
926 %{_libdir}/libdali-adap*.so*.ivi
928 %if 0%{?dali_feedback_plugin_ivi}
929 %files dali-feedback-plugin-profile_ivi
930 %manifest dali-adaptor.manifest
931 %defattr(-,root,root,-)
932 %{_libdir}/libdali-feedback-plugin.so*.ivi
933 %{dali_plugin_sound_files}/*
937 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
938 # if common ||"undefined"
939 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "mobile"
940 %files profile_common
941 %manifest dali-adaptor.manifest
942 %defattr(-,root,root,-)
943 %{_libdir}/libdali-adap*.so*.common
945 %if 0%{?dali_feedback_plugin_common}
946 %files dali-feedback-plugin-profile_common
947 %manifest dali-adaptor.manifest
948 %defattr(-,root,root,-)
949 %{_libdir}/libdali-feedback-plugin.so*.common
950 %{dali_plugin_sound_files}/*
954 %files dali-video-player-plugin
955 %manifest dali-adaptor.manifest
956 %defattr(-,root,root,-)
957 %{_libdir}/libdali-video-player-plugin.so*
962 %defattr(-,root,root,-)
963 %{dev_include_path}/dali/dali.h
964 %{dev_include_path}/dali/public-api/*
965 %{dev_include_path}/dali/devel-api/*
966 %{dev_include_path}/dali/doc/*
967 %{_libdir}/pkgconfig/dali-adaptor.pc
968 %{_libdir}/pkgconfig/dali-adaptor-uv.pc
970 %files integration-devel
971 %defattr(-,root,root,-)
972 %{dev_include_path}/dali/integration-api/adaptors/*
973 %{_libdir}/pkgconfig/dali-adaptor-integration.pc