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 Requires(post): /sbin/ldconfig
18 Requires(postun): /sbin/ldconfig
20 BuildRequires: pkgconfig
21 BuildRequires: pkgconfig(dali2-core)
22 BuildRequires: pkgconfig(dali2-adaptor)
23 BuildRequires: pkgconfig(dali2-toolkit)
24 BuildRequires: pkgconfig(dlog)
27 BuildRequires: pkgconfig(dali2-adaptor-integration)
28 BuildRequires: pkgconfig(elementary)
29 BuildRequires: pkgconfig(evas)
30 BuildRequires: pkgconfig(ecore-wl2)
35 %if 0%{?tizen_version_major} >= 4
36 %define tizen_40_or_greater 1
39 %if 0%{?tizen_version_major} >= 5
40 %define tizen_50_or_greater 1
43 %if ( 0%{?tizen_version_major} == 5 && 0%{?tizen_version_minor} >= 5 ) || 0%{?tizen_version_major} >= 6
44 %define tizen_55_or_greater 1
47 %if ( 0%{?tizen_version_major} == 6 && 0%{?tizen_version_minor} >= 5 ) || 0%{?tizen_version_major} >= 7
48 %define tizen_65_or_greater 1
53 # %if 0%{?tizen_version_major} >= 6
54 # %define tizen_60_or_greater 1
57 ##############################
59 ##############################
61 Summary: Development components for the DALi Extension
62 Group: Development/Building
63 Requires: %{name} = %{version}-%{release}
66 Development components for the DALi Tizen Extensions - public headers and package configs
68 ##############################
70 ##############################
72 %package key-extension
73 Summary: Plugin to support extension keys for Dali
74 Group: System/Libraries
76 %description key-extension
77 Plugin to support extension keys for Dali
79 ##############################
80 # Dali VideoPlayer Plugin
81 ##############################
83 %package video-player-plugin
84 Summary: Plugin to play a video file for Dali
85 Group: System/Libraries
86 BuildRequires: pkgconfig(capi-media-player)
87 BuildRequires: pkgconfig(capi-system-info)
88 # dali-adaptor uses ecore mainloop
89 %if 0%{?tizen_version_major} >= 5
90 BuildRequires: pkgconfig(ecore-wl2)
92 BuildRequires: pkgconfig(ecore-wayland)
95 %description video-player-plugin
96 VideoPlayer plugin to play a video file for Dali
98 ##############################
99 # Dali CameraPlayer Plugin
100 ##############################
102 %package camera-player-plugin
103 Summary: Plugin to play a camera file for Dali
104 Group: System/Libraries
105 BuildRequires: pkgconfig(capi-media-camera)
106 # dali-adaptor uses ecore mainloop
107 BuildRequires: pkgconfig(ecore-wl2)
109 %description camera-player-plugin
110 CameraPlayer plugin to play a camera file for Dali
112 ##############################
113 # Dali Web Engine chromium Plugin
114 ##############################
116 %package web-engine-chromium-plugin
117 Summary: Plugin to support WebView for Dali
118 Group: System/Libraries
119 %if 0%{?tizen_55_or_greater}
120 BuildRequires: pkgconfig(libtbm)
121 BuildRequires: pkgconfig(chromium-efl)
122 BuildRequires: pkgconfig(elementary)
125 %description web-engine-chromium-plugin
126 Web Engine chromium plugin to support WebView for Dali
128 ##############################
129 # Dali Image Loader Plugin
130 ##############################
132 %package image-loader-plugin
133 Summary: Plugin to image loading for Dali
134 Group: System/Libraries
136 %description image-loader-plugin
137 Image Loader plugin to image loading file for Dali
139 ####################################
140 # Vector Animation Renderer Plugin
141 ####################################
142 %package vector-animation-renderer-plugin
143 Summary: Plugin to render a vector animation
144 Group: System/Libraries
145 %if 0%{?tizen_55_or_greater}
146 BuildRequires: pkgconfig(rlottie)
149 %description vector-animation-renderer-plugin
150 Plugin to render a vector animation
152 ####################################
153 # Vector Image Renderer Plugin
154 ####################################
155 %package vector-image-renderer-plugin
156 Summary: Plugin to render a vector image
157 Group: System/Libraries
158 %if 0%{?tizen_65_or_greater}
159 BuildRequires: pkgconfig(thorvg)
162 %description vector-image-renderer-plugin
163 Plugin to render a vector image
166 ####################################
167 # color controller Plugin
168 ####################################
170 %package color-controller-plugin
171 Summary: Plugin to load color theme
172 Group: System/Libraries
174 %description color-controller-plugin
175 Plugin to load color theme
177 ##############################
178 # Dali Web Engine LWE Plugin
179 ##############################
181 %package web-engine-lwe-plugin
182 Summary: Plugin to support WebView for Dali
183 Group: System/Libraries
184 %if 0%{?tizen_55_or_greater}
185 BuildRequires: pkgconfig(libtbm)
186 BuildRequires: pkgconfig(lightweight-web-engine)
189 %description web-engine-lwe-plugin
190 Web Engine LWE(Light-weight Web Engine) plugin to support WebView for Dali
192 ##############################
194 ##############################
198 #Use TZ_PATH when tizen version is 3.x or greater
200 %define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
201 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
202 %define dev_include_path %{_includedir}
204 # Use Image Loader Plugin
205 %define use_image_loader 0
207 ##############################
209 ##############################
212 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
213 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
215 %if 0%{?tizen_version_major} >= 5
216 CFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
217 CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
218 configure_flags="--enable-ecore-wl2"
221 %if "%{?profile}" == "tv"
222 CFLAGS+=" -DOS_TIZEN_TV"
223 CXXFLAGS+=" -DOS_TIZEN_TV"
227 cd %{_builddir}/%{name}-%{version}/build/tizen
230 %configure --prefix=$PREFIX \
231 %if 0%{?tizen_50_or_greater}
232 --with-tizen-50-or-greater \
234 %if 0%{?tizen_55_or_greater}
235 --with-tizen-55-or-greater \
237 %if 0%{?tizen_65_or_greater}
238 --with-tizen-65-or-greater \
241 --enable-keyextension
242 %if 0%{?use_image_loader}
244 --enable-imageloader-extension
247 make %{?jobs:-j%jobs}
249 ##############################
251 ##############################
256 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
258 %if "%{?profile}" != "common" && "%{?profile}" != "ivi"
259 install -m 0644 scripts/dali.sh %{buildroot}%{_sysconfdir}/profile.d
262 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "mobile"
263 install -m 0644 scripts/other/dali.sh %{buildroot}%{_sysconfdir}/profile.d
267 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
272 ##############################
273 # Post Install new package
274 ##############################
283 %post video-player-plugin
287 %post camera-player-plugin
291 %if 0%{?tizen_55_or_greater}
292 %post web-engine-chromium-plugin
294 ln -sf libdali2-web-engine-chromium-plugin.so libdali2-web-engine-plugin.so
300 %post image-loader-plugin
304 %if 0%{?tizen_55_or_greater}
305 %post vector-animation-renderer-plugin
310 %if 0%{?tizen_65_or_greater}
311 %post vector-image-renderer-plugin
316 %post color-controller-plugin
320 %if 0%{?tizen_55_or_greater}
321 %post web-engine-lwe-plugin
326 ##############################
327 # Pre Uninstall old package
328 ##############################
332 ##############################
333 # Post Uninstall old package
334 ##############################
339 %postun key-extension
343 %postun video-player-plugin
347 %postun camera-player-plugin
351 %if 0%{?tizen_55_or_greater}
352 %postun web-engine-chromium-plugin
357 %postun image-loader-plugin
361 %if 0%{?tizen_55_or_greater}
362 %postun vector-animation-renderer-plugin
367 %if 0%{?tizen_65_or_greater}
368 %postun vector-image-renderer-plugin
373 %postun color-controller-plugin
377 %if 0%{?tizen_55_or_greater}
378 %postun web-engine-lwe-plugin
383 ##############################
384 # Files in Binary Packages
385 ##############################
388 %manifest dali-extension.manifest
389 %defattr(-,root,root,-)
390 %{_sysconfdir}/profile.d/dali.sh
391 %{_libdir}/libdali2-extension.so*
395 %defattr(-,root,root,-)
396 %{_includedir}/dali-extension/*
397 %{_libdir}/pkgconfig/*.pc
400 %manifest dali-extension.manifest
401 %defattr(-,root,root,-)
402 %{_libdir}/libdali2-key-extension.so*
405 %files video-player-plugin
406 %manifest dali-extension.manifest
407 %defattr(-,root,root,-)
408 %{_libdir}/libdali2-video-player-plugin.so*
411 %if 0%{?tizen_65_or_greater}
412 %files camera-player-plugin
413 %manifest dali-extension.manifest
414 %defattr(-,root,root,-)
415 %{_libdir}/libdali2-camera-player-plugin.so*
419 %if 0%{?tizen_55_or_greater}
420 %files web-engine-chromium-plugin
421 %manifest dali-extension.manifest
422 %defattr(-,root,root,-)
423 %{_libdir}/libdali2-web-engine-chromium-plugin.so*
427 %if 0%{?use_image_loader}
428 %files image-loader-plugin
429 %manifest dali-extension.manifest
430 %defattr(-,root,root,-)
431 %{_libdir}/libdali2-image-loader-plugin.so*
435 %if 0%{?tizen_55_or_greater}
436 %files vector-animation-renderer-plugin
437 %manifest dali-extension.manifest
438 %defattr(-,root,root,-)
439 %{_libdir}/libdali2-vector-animation-renderer-plugin.so*
443 %if 0%{?tizen_65_or_greater}
444 %files vector-image-renderer-plugin
445 %manifest dali-extension.manifest
446 %defattr(-,root,root,-)
447 %{_libdir}/libdali2-vector-image-renderer-plugin.so*
451 %files color-controller-plugin
452 %manifest dali-extension.manifest
453 %defattr(-,root,root,-)
454 %{_libdir}/libdali2-color-controller-plugin.so*
457 %if 0%{?tizen_55_or_greater}
458 %files web-engine-lwe-plugin
459 %manifest dali-extension.manifest
460 %defattr(-,root,root,-)
461 %{_libdir}/libdali2-web-engine-lwe-plugin.so*