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 Web Engine chromium Plugin
100 ##############################
102 %package web-engine-chromium-plugin
103 Summary: Plugin to support WebView for Dali
104 Group: System/Libraries
105 %if 0%{?tizen_55_or_greater}
106 BuildRequires: pkgconfig(libtbm)
107 BuildRequires: pkgconfig(chromium-efl)
108 BuildRequires: pkgconfig(elementary)
111 %description web-engine-chromium-plugin
112 Web Engine chromium plugin to support WebView for Dali
114 ##############################
115 # Dali Image Loader Plugin
116 ##############################
118 %package image-loader-plugin
119 Summary: Plugin to image loading for Dali
120 Group: System/Libraries
122 %description image-loader-plugin
123 Image Loader plugin to image loading file for Dali
125 ####################################
126 # Vector Animation Renderer Plugin
127 ####################################
128 %package vector-animation-renderer-plugin
129 Summary: Plugin to render a vector animation
130 Group: System/Libraries
131 %if 0%{?tizen_55_or_greater}
132 BuildRequires: pkgconfig(rlottie)
135 %description vector-animation-renderer-plugin
136 Plugin to render a vector animation
138 ####################################
139 # Vector Image Renderer Plugin
140 ####################################
141 %package vector-image-renderer-plugin
142 Summary: Plugin to render a vector image
143 Group: System/Libraries
144 %if 0%{?tizen_65_or_greater}
145 BuildRequires: pkgconfig(thorvg)
148 %description vector-image-renderer-plugin
149 Plugin to render a vector image
152 ####################################
153 # color controller Plugin
154 ####################################
156 %package color-controller-plugin
157 Summary: Plugin to load color theme
158 Group: System/Libraries
160 %description color-controller-plugin
161 Plugin to load color theme
163 ##############################
164 # Dali Web Engine LWE Plugin
165 ##############################
167 %package web-engine-lwe-plugin
168 Summary: Plugin to support WebView for Dali
169 Group: System/Libraries
170 %if 0%{?tizen_55_or_greater}
171 BuildRequires: pkgconfig(libtbm)
172 BuildRequires: pkgconfig(lightweight-web-engine)
175 %description web-engine-lwe-plugin
176 Web Engine LWE(Light-weight Web Engine) plugin to support WebView for Dali
178 ##############################
180 ##############################
184 #Use TZ_PATH when tizen version is 3.x or greater
186 %define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
187 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
188 %define dev_include_path %{_includedir}
190 # Use Image Loader Plugin
191 %define use_image_loader 0
193 ##############################
195 ##############################
198 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
199 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
201 %if 0%{?tizen_version_major} >= 5
202 CFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
203 CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
204 configure_flags="--enable-ecore-wl2"
208 cd %{_builddir}/%{name}-%{version}/build/tizen
211 %configure --prefix=$PREFIX \
212 %if 0%{?tizen_50_or_greater}
213 --with-tizen-50-or-greater \
215 %if 0%{?tizen_55_or_greater}
216 --with-tizen-55-or-greater \
218 %if 0%{?tizen_65_or_greater}
219 --with-tizen-65-or-greater \
222 --enable-keyextension
223 %if 0%{?use_image_loader}
225 --enable-imageloader-extension
228 make %{?jobs:-j%jobs}
230 ##############################
232 ##############################
237 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
239 %if "%{?profile}" != "common" && "%{?profile}" != "ivi"
240 install -m 0644 scripts/dali.sh %{buildroot}%{_sysconfdir}/profile.d
243 %if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "mobile"
244 install -m 0644 scripts/other/dali.sh %{buildroot}%{_sysconfdir}/profile.d
248 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
253 ##############################
254 # Post Install new package
255 ##############################
264 %post video-player-plugin
268 %if 0%{?tizen_55_or_greater}
269 %post web-engine-chromium-plugin
271 ln -sf libdali2-web-engine-chromium-plugin.so libdali2-web-engine-plugin.so
277 %post image-loader-plugin
281 %if 0%{?tizen_55_or_greater}
282 %post vector-animation-renderer-plugin
287 %if 0%{?tizen_65_or_greater}
288 %post vector-image-renderer-plugin
293 %post color-controller-plugin
297 %if 0%{?tizen_55_or_greater}
298 %post web-engine-lwe-plugin
303 ##############################
304 # Pre Uninstall old package
305 ##############################
309 ##############################
310 # Post Uninstall old package
311 ##############################
316 %postun key-extension
320 %postun video-player-plugin
324 %if 0%{?tizen_55_or_greater}
325 %postun web-engine-chromium-plugin
330 %postun image-loader-plugin
334 %if 0%{?tizen_55_or_greater}
335 %postun vector-animation-renderer-plugin
340 %if 0%{?tizen_65_or_greater}
341 %postun vector-image-renderer-plugin
346 %postun color-controller-plugin
350 %if 0%{?tizen_55_or_greater}
351 %postun web-engine-lwe-plugin
356 ##############################
357 # Files in Binary Packages
358 ##############################
361 %manifest dali-extension.manifest
362 %defattr(-,root,root,-)
363 %{_sysconfdir}/profile.d/dali.sh
364 %{_libdir}/libdali2-extension.so*
368 %defattr(-,root,root,-)
369 %{_includedir}/dali-extension/*
370 %{_libdir}/pkgconfig/*.pc
373 %manifest dali-extension.manifest
374 %defattr(-,root,root,-)
375 %{_libdir}/libdali2-key-extension.so*
378 %files video-player-plugin
379 %manifest dali-extension.manifest
380 %defattr(-,root,root,-)
381 %{_libdir}/libdali2-video-player-plugin.so*
384 %if 0%{?tizen_55_or_greater}
385 %files web-engine-chromium-plugin
386 %manifest dali-extension.manifest
387 %defattr(-,root,root,-)
388 %{_libdir}/libdali2-web-engine-chromium-plugin.so*
392 %if 0%{?use_image_loader}
393 %files image-loader-plugin
394 %manifest dali-extension.manifest
395 %defattr(-,root,root,-)
396 %{_libdir}/libdali2-image-loader-plugin.so*
400 %if 0%{?tizen_55_or_greater}
401 %files vector-animation-renderer-plugin
402 %manifest dali-extension.manifest
403 %defattr(-,root,root,-)
404 %{_libdir}/libdali2-vector-animation-renderer-plugin.so*
408 %if 0%{?tizen_65_or_greater}
409 %files vector-image-renderer-plugin
410 %manifest dali-extension.manifest
411 %defattr(-,root,root,-)
412 %{_libdir}/libdali2-vector-image-renderer-plugin.so*
416 %files color-controller-plugin
417 %manifest dali-extension.manifest
418 %defattr(-,root,root,-)
419 %{_libdir}/libdali2-color-controller-plugin.so*
422 %if 0%{?tizen_55_or_greater}
423 %files web-engine-lwe-plugin
424 %manifest dali-extension.manifest
425 %defattr(-,root,root,-)
426 %{_libdir}/libdali2-web-engine-lwe-plugin.so*