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(dali-core)
22 BuildRequires: pkgconfig(dali-adaptor)
23 BuildRequires: pkgconfig(dali-toolkit)
24 BuildRequires: pkgconfig(dlog)
27 BuildRequires: pkgconfig(dali-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
48 # %if 0%{?tizen_version_major} >= 6
49 # %define tizen_60_or_greater 1
52 ##############################
54 ##############################
56 Summary: Development components for the DALi Extension
57 Group: Development/Building
58 Requires: %{name} = %{version}-%{release}
61 Development components for the DALi Tizen Extensions - public headers and package configs
63 ##############################
65 ##############################
67 %package key-extension
68 Summary: Plugin to support extension keys for Dali
69 Group: System/Libraries
71 %description key-extension
72 Plugin to support extension keys for Dali
74 ##############################
75 # Dali VideoPlayer Plugin
76 ##############################
78 %package video-player-plugin
79 Summary: Plugin to play a video file for Dali
80 Group: System/Libraries
81 BuildRequires: pkgconfig(capi-media-player)
82 BuildRequires: pkgconfig(capi-system-info)
83 # dali-adaptor uses ecore mainloop
84 %if 0%{?tizen_version_major} >= 5
85 BuildRequires: pkgconfig(ecore-wl2)
87 BuildRequires: pkgconfig(ecore-wayland)
90 %description video-player-plugin
91 VideoPlayer plugin to play a video file for Dali
93 ##############################
94 # Dali Web Engine chromium Plugin
95 ##############################
97 %package web-engine-chromium-plugin
98 Summary: Plugin to support WebView for Dali
99 Group: System/Libraries
100 %if 0%{?tizen_55_or_greater}
101 BuildRequires: pkgconfig(libtbm)
102 BuildRequires: pkgconfig(chromium-efl)
103 BuildRequires: pkgconfig(elementary)
106 %description web-engine-chromium-plugin
107 Web Engine chromium plugin to support WebView for Dali
109 ##############################
110 # Dali Image Loader Plugin
111 ##############################
113 %package image-loader-plugin
114 Summary: Plugin to image loading for Dali
115 Group: System/Libraries
117 %description image-loader-plugin
118 Image Loader plugin to image loading file for Dali
120 ####################################
121 # Vector Animation Renderer Plugin
122 ####################################
123 %package vector-animation-renderer-plugin
124 Summary: Plugin to render a vector animation
125 Group: System/Libraries
126 %if 0%{?tizen_55_or_greater}
127 BuildRequires: pkgconfig(rlottie)
130 %description vector-animation-renderer-plugin
131 Plugin to render a vector animation
133 ####################################
134 # color controller Plugin
135 ####################################
137 %package color-controller-plugin
138 Summary: Plugin to load color theme
139 Group: System/Libraries
141 %description color-controller-plugin
142 Plugin to load color theme
144 ##############################
145 # Dali Web Engine LWE Plugin
146 ##############################
148 %package web-engine-lwe-plugin
149 Summary: Plugin to support WebView for Dali
150 Group: System/Libraries
151 %if 0%{?tizen_55_or_greater}
152 BuildRequires: pkgconfig(libtbm)
153 BuildRequires: pkgconfig(lightweight-web-engine)
156 %description web-engine-lwe-plugin
157 Web Engine LWE(Light-weight Web Engine) plugin to support WebView for Dali
159 ##############################
161 ##############################
165 #Use TZ_PATH when tizen version is 3.x or greater
167 %define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
168 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
169 %define dev_include_path %{_includedir}
171 # Use Image Loader Plugin
172 %define use_image_loader 0
174 ##############################
176 ##############################
179 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
180 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
182 %if 0%{?tizen_version_major} >= 5
183 CFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
184 CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
185 configure_flags="--enable-ecore-wl2"
189 cd %{_builddir}/%{name}-%{version}/build/tizen
192 %configure --prefix=$PREFIX \
193 %if 0%{?tizen_50_or_greater}
194 --with-tizen-50-or-greater \
196 %if 0%{?tizen_55_or_greater}
197 --with-tizen-55-or-greater \
200 --enable-keyextension
201 %if 0%{?use_image_loader}
203 --enable-imageloader-extension
206 make %{?jobs:-j%jobs}
208 ##############################
210 ##############################
215 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
216 install -m 0644 scripts/dali.sh %{buildroot}%{_sysconfdir}/profile.d
219 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
224 ##############################
225 # Post Install new package
226 ##############################
235 %post video-player-plugin
239 %if 0%{?tizen_55_or_greater}
240 %post web-engine-chromium-plugin
242 ln -sf libdali-web-engine-chromium-plugin.so libdali-web-engine-plugin.so
248 %post image-loader-plugin
252 %if 0%{?tizen_55_or_greater}
253 %post vector-animation-renderer-plugin
258 %post color-controller-plugin
262 %if 0%{?tizen_55_or_greater}
263 %post web-engine-lwe-plugin
268 ##############################
269 # Pre Uninstall old package
270 ##############################
274 ##############################
275 # Post Uninstall old package
276 ##############################
281 %postun key-extension
285 %postun video-player-plugin
289 %if 0%{?tizen_55_or_greater}
290 %postun web-engine-chromium-plugin
295 %postun image-loader-plugin
299 %if 0%{?tizen_55_or_greater}
300 %postun vector-animation-renderer-plugin
305 %postun color-controller-plugin
309 %if 0%{?tizen_55_or_greater}
310 %postun web-engine-lwe-plugin
315 ##############################
316 # Files in Binary Packages
317 ##############################
320 %manifest dali-extension.manifest
321 %defattr(-,root,root,-)
322 %{_sysconfdir}/profile.d/dali.sh
323 %{_libdir}/libdali-extension.so*
327 %defattr(-,root,root,-)
328 %{_includedir}/%{name}/*
329 %{_libdir}/pkgconfig/*.pc
332 %manifest dali-extension.manifest
333 %defattr(-,root,root,-)
334 %{_libdir}/libdali-key-extension.so*
337 %files video-player-plugin
338 %manifest dali-extension.manifest
339 %defattr(-,root,root,-)
340 %{_libdir}/libdali-video-player-plugin.so*
343 %if 0%{?tizen_55_or_greater}
344 %files web-engine-chromium-plugin
345 %manifest dali-extension.manifest
346 %defattr(-,root,root,-)
347 %{_libdir}/libdali-web-engine-chromium-plugin.so*
351 %if 0%{?use_image_loader}
352 %files image-loader-plugin
353 %manifest dali-extension.manifest
354 %defattr(-,root,root,-)
355 %{_libdir}/libdali-image-loader-plugin.so*
359 %if 0%{?tizen_55_or_greater}
360 %files vector-animation-renderer-plugin
361 %manifest dali-extension.manifest
362 %defattr(-,root,root,-)
363 %{_libdir}/libdali-vector-animation-renderer-plugin.so*
367 %files color-controller-plugin
368 %manifest dali-extension.manifest
369 %defattr(-,root,root,-)
370 %{_libdir}/libdali-color-controller-plugin.so*
373 %if 0%{?tizen_55_or_greater}
374 %files web-engine-lwe-plugin
375 %manifest dali-extension.manifest
376 %defattr(-,root,root,-)
377 %{_libdir}/libdali-web-engine-lwe-plugin.so*