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)
36 %if 0%{?tizen_version_major} >= 4
37 %define tizen_40_or_greater 1
38 %if 0%{?tizen_version_major} >= 5
39 %define tizen_50_or_greater 1
40 %if 0%{?tizen_version_minor} >= 5
41 %define tizen_55_or_greater 1
46 ##############################
48 ##############################
50 Summary: Development components for the DALi Extension
51 Group: Development/Building
52 Requires: %{name} = %{version}-%{release}
55 Development components for the DALi Tizen Extensions - public headers and package configs
57 ##############################
59 ##############################
61 %package key-extension
62 Summary: Plugin to support extension keys for Dali
63 Group: System/Libraries
65 %description key-extension
66 Plugin to support extension keys for Dali
68 ##############################
69 # Dali VideoPlayer Plugin
70 ##############################
72 %package video-player-plugin
73 Summary: Plugin to play a video file for Dali
74 Group: System/Libraries
75 BuildRequires: pkgconfig(capi-media-player)
76 BuildRequires: pkgconfig(capi-system-info)
77 # dali-adaptor uses ecore mainloop
78 %if 0%{?tizen_version_major} >= 5
79 BuildRequires: pkgconfig(ecore-wl2)
81 BuildRequires: pkgconfig(ecore-wayland)
84 %description video-player-plugin
85 VideoPlayer plugin to play a video file for Dali
87 ##############################
88 # Dali Web Engine chromium Plugin
89 ##############################
91 %package web-engine-chromium-plugin
92 Summary: Plugin to support WebView for Dali
93 Group: System/Libraries
94 %if 0%{?tizen_55_or_greater}
95 BuildRequires: pkgconfig(libtbm)
96 BuildRequires: pkgconfig(chromium-efl)
97 BuildRequires: pkgconfig(elementary)
100 %description web-engine-chromium-plugin
101 Web Engine chromium plugin to support WebView for Dali
103 ##############################
104 # Dali Image Loader Plugin
105 ##############################
107 %package image-loader-plugin
108 Summary: Plugin to image loading for Dali
109 Group: System/Libraries
111 %description image-loader-plugin
112 Image Loader plugin to image loading file for Dali
114 ####################################
115 # Vector Animation Renderer Plugin
116 ####################################
117 %package vector-animation-renderer-plugin
118 Summary: Plugin to render a vector animation
119 Group: System/Libraries
120 %if 0%{?tizen_55_or_greater}
121 BuildRequires: pkgconfig(rlottie)
124 %description vector-animation-renderer-plugin
125 Plugin to render a vector animation
127 ####################################
128 # color controller Plugin
129 ####################################
131 %package color-controller-plugin
132 Summary: Plugin to load color theme
133 Group: System/Libraries
135 %description color-controller-plugin
136 Plugin to load color theme
138 ##############################
139 # Dali Web Engine LWE Plugin
140 ##############################
142 %package web-engine-lwe-plugin
143 Summary: Plugin to support WebView for Dali
144 Group: System/Libraries
145 %if 0%{?tizen_55_or_greater}
146 BuildRequires: pkgconfig(libtbm)
147 BuildRequires: pkgconfig(lightweight-web-engine)
150 %description web-engine-lwe-plugin
151 Web Engine LWE(Light-weight Web Engine) plugin to support WebView for Dali
153 ##############################
155 ##############################
159 #Use TZ_PATH when tizen version is 3.x or greater
161 %define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
162 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
163 %define dev_include_path %{_includedir}
165 # Use Image Loader Plugin
166 %define use_image_loader 0
168 ##############################
170 ##############################
173 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
174 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
176 %if 0%{?tizen_version_major} >= 5
177 CFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
178 CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
179 configure_flags="--enable-ecore-wl2"
183 cd %{_builddir}/%{name}-%{version}/build/tizen
186 %configure --prefix=$PREFIX \
187 %if 0%{?tizen_50_or_greater}
188 --with-tizen-50-or-greater \
190 %if 0%{?tizen_55_or_greater}
191 --with-tizen-55-or-greater \
194 --enable-keyextension
195 %if 0%{?use_image_loader}
197 --enable-imageloader-extension
200 make %{?jobs:-j%jobs}
202 ##############################
204 ##############################
209 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
210 install -m 0644 scripts/dali.sh %{buildroot}%{_sysconfdir}/profile.d
213 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
218 ##############################
219 # Post Install new package
220 ##############################
229 %post video-player-plugin
233 %if 0%{?tizen_55_or_greater}
234 %post web-engine-chromium-plugin
236 ln -sf libdali-web-engine-chromium-plugin.so libdali-web-engine-plugin.so
242 %post image-loader-plugin
246 %if 0%{?tizen_55_or_greater}
247 %post vector-animation-renderer-plugin
252 %post color-controller-plugin
256 %if 0%{?tizen_55_or_greater}
257 %post web-engine-lwe-plugin
262 ##############################
263 # Pre Uninstall old package
264 ##############################
268 ##############################
269 # Post Uninstall old package
270 ##############################
275 %postun key-extension
279 %postun video-player-plugin
283 %if 0%{?tizen_55_or_greater}
284 %postun web-engine-chromium-plugin
289 %postun image-loader-plugin
293 %if 0%{?tizen_55_or_greater}
294 %postun vector-animation-renderer-plugin
299 %postun color-controller-plugin
303 %if 0%{?tizen_55_or_greater}
304 %postun web-engine-lwe-plugin
309 ##############################
310 # Files in Binary Packages
311 ##############################
314 %manifest dali-extension.manifest
315 %defattr(-,root,root,-)
316 %{_sysconfdir}/profile.d/dali.sh
317 %{_libdir}/libdali-extension.so*
321 %defattr(-,root,root,-)
322 %{_includedir}/%{name}/*
323 %{_libdir}/pkgconfig/*.pc
326 %manifest dali-extension.manifest
327 %defattr(-,root,root,-)
328 %{_libdir}/libdali-key-extension.so*
331 %files video-player-plugin
332 %manifest dali-extension.manifest
333 %defattr(-,root,root,-)
334 %{_libdir}/libdali-video-player-plugin.so*
337 %if 0%{?tizen_55_or_greater}
338 %files web-engine-chromium-plugin
339 %manifest dali-extension.manifest
340 %defattr(-,root,root,-)
341 %{_libdir}/libdali-web-engine-chromium-plugin.so*
345 %if 0%{?use_image_loader}
346 %files image-loader-plugin
347 %manifest dali-extension.manifest
348 %defattr(-,root,root,-)
349 %{_libdir}/libdali-image-loader-plugin.so*
353 %if 0%{?tizen_55_or_greater}
354 %files vector-animation-renderer-plugin
355 %manifest dali-extension.manifest
356 %defattr(-,root,root,-)
357 %{_libdir}/libdali-vector-animation-renderer-plugin.so*
361 %files color-controller-plugin
362 %manifest dali-extension.manifest
363 %defattr(-,root,root,-)
364 %{_libdir}/libdali-color-controller-plugin.so*
367 %if 0%{?tizen_55_or_greater}
368 %files web-engine-lwe-plugin
369 %manifest dali-extension.manifest
370 %defattr(-,root,root,-)
371 %{_libdir}/libdali-web-engine-lwe-plugin.so*