2 # This spec file is used to build DALi Extensions
4 # gbs will try to download the build.conf for the platform automatically from the repo location when
5 # performing a gbs build ( use gbs build -v to see it download location) E.g.
6 # http://download.tizen.org/snapshots/tizen/tv/tizen-tv/repos/arm-wayland/packages/repodata/xxxx-build.conf.gz
9 Summary: The DALi Tizen Extensions
12 Group: System/Libraries
13 License: Apache-2.0 and BSD-3-Clause and MIT
14 URL: https://review.tizen.org/git/?p=platform/core/uifw/dali-extensions.git;a=summary
15 Source0: %{name}-%{version}.tar.gz
17 %if 0%{?tizen_version_major} >= 4
18 %define tizen_40_or_greater 1
21 %if 0%{?tizen_version_major} >= 5
22 %define tizen_50_or_greater 1
25 %if ( 0%{?tizen_version_major} == 5 && 0%{?tizen_version_minor} >= 5 ) || 0%{?tizen_version_major} >= 6
26 %define tizen_55_or_greater 1
29 %if ( 0%{?tizen_version_major} == 6 && 0%{?tizen_version_minor} >= 5 ) || 0%{?tizen_version_major} >= 7
30 %define tizen_65_or_greater 1
33 Requires(post): /sbin/ldconfig
34 Requires(postun): /sbin/ldconfig
36 BuildRequires: pkgconfig
37 BuildRequires: pkgconfig(dali2-core)
38 BuildRequires: pkgconfig(dali2-adaptor)
39 BuildRequires: pkgconfig(dali2-toolkit)
40 BuildRequires: pkgconfig(dlog)
43 BuildRequires: pkgconfig(dali2-adaptor-integration)
44 BuildRequires: pkgconfig(elementary)
45 BuildRequires: pkgconfig(evas)
46 BuildRequires: pkgconfig(ecore-wl2)
48 %if 0%{?tizen_65_or_greater}
49 BuildRequires: pkgconfig(rive_tizen)
56 #############################
58 ##############################
60 Summary: Development components for the DALi Extension
61 Group: Development/Building
62 Requires: %{name} = %{version}-%{release}
65 Development components for the DALi Tizen Extensions - public headers and package configs
67 ##############################
69 ##############################
71 %package key-extension
72 Summary: Plugin to support extension keys for Dali
73 Group: System/Libraries
75 %description key-extension
76 Plugin to support extension keys for Dali
78 ##############################
79 # Dali VideoPlayer Plugin
80 ##############################
82 %package video-player-plugin
83 Summary: Plugin to play a video file for Dali
84 Group: System/Libraries
85 BuildRequires: pkgconfig(capi-media-player)
86 BuildRequires: pkgconfig(capi-system-info)
87 # dali-adaptor uses ecore mainloop
88 %if 0%{?tizen_version_major} >= 5
89 BuildRequires: pkgconfig(ecore-wl2)
91 BuildRequires: pkgconfig(ecore-wayland)
94 %description video-player-plugin
95 VideoPlayer plugin to play a video file for Dali
97 ##############################
98 # Dali CameraPlayer Plugin
99 ##############################
101 %package camera-player-plugin
102 Summary: Plugin to play a camera file for Dali
103 Group: System/Libraries
104 BuildRequires: pkgconfig(capi-media-camera)
105 # dali-adaptor uses ecore mainloop
106 BuildRequires: pkgconfig(ecore-wl2)
108 %description camera-player-plugin
109 CameraPlayer plugin to play a camera file for Dali
111 ##############################
112 # Dali Web Engine chromium Plugin
113 ##############################
115 %package web-engine-chromium-plugin
116 Summary: Plugin to support WebView for Dali
117 Group: System/Libraries
118 %if 0%{?tizen_55_or_greater}
119 BuildRequires: pkgconfig(libtbm)
120 BuildRequires: pkgconfig(chromium-efl)
121 BuildRequires: pkgconfig(elementary)
124 %description web-engine-chromium-plugin
125 Web Engine chromium plugin to support WebView for Dali
127 ##############################
128 # Dali Image Loader Plugin
129 ##############################
131 %package image-loader-plugin
132 Summary: Plugin to image loading for Dali
133 Group: System/Libraries
135 %description image-loader-plugin
136 Image Loader plugin to image loading file for Dali
138 ####################################
139 # Vector Animation Renderer Plugin
140 ####################################
141 %package vector-animation-renderer-plugin
142 Summary: Plugin to render a vector animation
143 Group: System/Libraries
144 %if 0%{?tizen_55_or_greater}
145 BuildRequires: pkgconfig(rlottie)
148 %description vector-animation-renderer-plugin
149 Plugin to render a vector animation
151 ####################################
152 # Vector Image Renderer Plugin
153 ####################################
154 %package vector-image-renderer-plugin
155 Summary: Plugin to render a vector image
156 Group: System/Libraries
157 %if 0%{?tizen_65_or_greater}
158 BuildRequires: pkgconfig(thorvg)
161 %description vector-image-renderer-plugin
162 Plugin to render a vector image
165 ####################################
166 # color controller Plugin
167 ####################################
169 %package color-controller-plugin
170 Summary: Plugin to load color theme
171 Group: System/Libraries
173 %description color-controller-plugin
174 Plugin to load color theme
176 ##############################
177 # Dali Web Engine LWE Plugin
178 ##############################
180 %package web-engine-lwe-plugin
181 Summary: Plugin to support WebView for Dali
182 Group: System/Libraries
183 %if 0%{?tizen_55_or_greater}
184 BuildRequires: pkgconfig(libtbm)
185 BuildRequires: pkgconfig(lightweight-web-engine)
188 %description web-engine-lwe-plugin
189 Web Engine LWE(Light-weight Web Engine) plugin to support WebView for Dali
191 ####################################
192 # Rive Animation View Plugin
193 ####################################
194 %package rive-animation-view
195 Summary: Plugin to render a rive animation
196 Group: System/Libraries
197 Requires: dali2-extension-rive-animation-view = %{version}-%{release}
198 %if 0%{?tizen_65_or_greater}
199 BuildRequires: pkgconfig(thorvg)
200 BuildRequires: pkgconfig(rive_tizen)
203 %description rive-animation-view
204 Plugin to render a rive animation
206 %package rive-animation-view-devel
207 Summary: Development components for rive animation view
208 Group: System/Libraries
209 Requires: dali2-extension-rive-animation-view = %{version}-%{release}
211 %description rive-animation-view-devel
212 Header & package configuration of rive-animation-view
214 ##############################
216 ##############################
220 #Use TZ_PATH when tizen version is 3.x or greater
222 %define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
223 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
224 %define dev_include_path %{_includedir}
226 # Use Image Loader Plugin
227 %define use_image_loader 0
229 ##############################
231 ##############################
234 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
235 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
237 %if 0%{?tizen_version_major} >= 5
238 CFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
239 CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
240 configure_flags="--enable-ecore-wl2"
243 %if "%{?profile}" == "tv"
244 CFLAGS+=" -DOS_TIZEN_TV"
245 CXXFLAGS+=" -DOS_TIZEN_TV"
249 cd %{_builddir}/%{name}-%{version}/build/tizen
252 %configure --prefix=$PREFIX \
253 %if 0%{?enable_debug}
256 %if 0%{?tizen_50_or_greater}
257 --with-tizen-50-or-greater \
259 %if 0%{?tizen_55_or_greater}
260 --with-tizen-55-or-greater \
262 %if 0%{?tizen_65_or_greater}
263 --with-tizen-65-or-greater \
266 --enable-keyextension
267 %if 0%{?use_image_loader}
269 --enable-imageloader-extension
272 make %{?jobs:-j%jobs}
274 ##############################
276 ##############################
281 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
283 %if "%{?profile}" != "common" && "%{?profile}" != "ivi"
284 install -m 0644 scripts/dali.sh %{buildroot}%{_sysconfdir}/profile.d
287 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "mobile"
288 install -m 0644 scripts/other/dali.sh %{buildroot}%{_sysconfdir}/profile.d
292 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
297 ##############################
298 # Post Install new package
299 ##############################
308 %post video-player-plugin
312 %post camera-player-plugin
316 %if 0%{?tizen_55_or_greater}
317 %post web-engine-chromium-plugin
319 ln -sf libdali2-web-engine-chromium-plugin.so libdali2-web-engine-plugin.so
325 %post image-loader-plugin
329 %if 0%{?tizen_55_or_greater}
330 %post vector-animation-renderer-plugin
335 %if 0%{?tizen_65_or_greater}
336 %post vector-image-renderer-plugin
341 %if 0%{?tizen_65_or_greater}
342 %post rive-animation-view
347 %post color-controller-plugin
351 %if 0%{?tizen_55_or_greater}
352 %post web-engine-lwe-plugin
357 ##############################
358 # Pre Uninstall old package
359 ##############################
363 ##############################
364 # Post Uninstall old package
365 ##############################
370 %postun key-extension
374 %postun video-player-plugin
378 %postun camera-player-plugin
382 %if 0%{?tizen_55_or_greater}
383 %postun web-engine-chromium-plugin
388 %postun image-loader-plugin
392 %if 0%{?tizen_55_or_greater}
393 %postun vector-animation-renderer-plugin
398 %if 0%{?tizen_65_or_greater}
399 %postun vector-image-renderer-plugin
404 %if 0%{?tizen_65_or_greater}
405 %postun rive-animation-view
410 %postun color-controller-plugin
414 %if 0%{?tizen_55_or_greater}
415 %postun web-engine-lwe-plugin
420 ##############################
421 # Files in Binary Packages
422 ##############################
425 %manifest dali-extension.manifest
426 %defattr(-,root,root,-)
427 %{_sysconfdir}/profile.d/dali.sh
428 %{_libdir}/libdali2-extension.so*
432 %defattr(-,root,root,-)
433 %{_includedir}/dali-extension/*
434 %{_libdir}/pkgconfig/dali2-extension.pc
437 %manifest dali-extension.manifest
438 %defattr(-,root,root,-)
439 %{_libdir}/libdali2-key-extension.so*
442 %files video-player-plugin
443 %manifest dali-extension.manifest
444 %defattr(-,root,root,-)
445 %{_libdir}/libdali2-video-player-plugin.so*
448 %if 0%{?tizen_65_or_greater}
449 %files camera-player-plugin
450 %manifest dali-extension.manifest
451 %defattr(-,root,root,-)
452 %{_libdir}/libdali2-camera-player-plugin.so*
456 %if 0%{?tizen_55_or_greater}
457 %files web-engine-chromium-plugin
458 %manifest dali-extension.manifest
459 %defattr(-,root,root,-)
460 %{_libdir}/libdali2-web-engine-chromium-plugin.so*
464 %if 0%{?use_image_loader}
465 %files image-loader-plugin
466 %manifest dali-extension.manifest
467 %defattr(-,root,root,-)
468 %{_libdir}/libdali2-image-loader-plugin.so*
472 %if 0%{?tizen_55_or_greater}
473 %files vector-animation-renderer-plugin
474 %manifest dali-extension.manifest
475 %defattr(-,root,root,-)
476 %{_libdir}/libdali2-vector-animation-renderer-plugin.so*
480 %if 0%{?tizen_65_or_greater}
481 %files vector-image-renderer-plugin
482 %manifest dali-extension.manifest
483 %defattr(-,root,root,-)
484 %{_libdir}/libdali2-vector-image-renderer-plugin.so*
488 %if 0%{?tizen_65_or_greater}
489 %files rive-animation-view
490 %manifest dali-extension.manifest
491 %defattr(-,root,root,-)
492 %{_libdir}/libdali2-extension-rive-animation-view.so*
495 %files rive-animation-view-devel
496 %defattr(-,root,root,-)
497 %{_includedir}/dali-extension/devel-api/rive-animation-view/*
498 %{_libdir}/pkgconfig/dali2-extension-rive-animation-view.pc
501 %files color-controller-plugin
502 %manifest dali-extension.manifest
503 %defattr(-,root,root,-)
504 %{_libdir}/libdali2-color-controller-plugin.so*
507 %if 0%{?tizen_55_or_greater}
508 %files web-engine-lwe-plugin
509 %manifest dali-extension.manifest
510 %defattr(-,root,root,-)
511 %{_libdir}/libdali2-web-engine-lwe-plugin.so*