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)
29 ##############################
31 ##############################
33 Summary: Development components for the DALi Extension
34 Group: Development/Building
35 Requires: %{name} = %{version}-%{release}
38 Development components for the DALi Tizen Extensions - public headers and package configs
40 ##############################
42 ##############################
44 %package key-extension
45 Summary: Plugin to support extension keys for Dali
46 Group: System/Libraries
48 %description key-extension
49 Plugin to support extension keys for Dali
51 ##############################
52 # Dali VideoPlayer Plugin
53 ##############################
55 %package video-player-plugin
56 Summary: Plugin to play a video file for Dali
57 Group: System/Libraries
58 BuildRequires: pkgconfig(capi-media-player)
59 BuildRequires: pkgconfig(capi-system-info)
60 # dali-adaptor uses ecore mainloop
61 %if 0%{?tizen_version_major} >= 5
62 BuildRequires: pkgconfig(ecore-wl2)
64 BuildRequires: pkgconfig(ecore-wayland)
67 %description video-player-plugin
68 VideoPlayer plugin to play a video file for Dali
70 ##############################
71 # Dali Web Engine chromium Plugin
72 ##############################
74 %package web-engine-chromium-plugin
75 Summary: Plugin to support WebView for Dali
76 Group: System/Libraries
77 BuildRequires: pkgconfig(libtbm)
78 BuildRequires: pkgconfig(chromium-efl)
79 BuildRequires: pkgconfig(elementary)
81 %description web-engine-chromium-plugin
82 Web Engine chromium plugin to support WebView for Dali
84 ##############################
85 # Dali Image Loader Plugin
86 ##############################
88 %package image-loader-plugin
89 Summary: Plugin to image loading for Dali
90 Group: System/Libraries
92 %description image-loader-plugin
93 Image Loader plugin to image loading file for Dali
95 ####################################
96 # Vector Animation Renderer Plugin
97 ####################################
99 %package vector-animation-renderer-plugin
100 Summary: Plugin to render a vector animation
101 Group: System/Libraries
102 BuildRequires: pkgconfig(rlottie)
104 %description vector-animation-renderer-plugin
105 Plugin to render a vector animation
107 ##############################
108 # Dali Web Engine Lite Plugin
109 ##############################
111 %package web-engine-lite-plugin
112 Summary: Plugin to support WebView for Dali
113 Group: System/Libraries
114 BuildRequires: pkgconfig(libtbm)
115 BuildRequires: pkgconfig(lightweight-web-engine)
117 %description web-engine-lite-plugin
118 Web Engine Lite plugin to support WebView for Dali
120 ##############################
122 ##############################
126 #Use TZ_PATH when tizen version is 3.x or greater
128 %define dali_data_rw_dir %TZ_SYS_RO_SHARE/dali/
129 %define dali_data_ro_dir %TZ_SYS_RO_SHARE/dali/
130 %define dev_include_path %{_includedir}
132 # Use Image Loader Plugin
133 %define use_image_loader 0
135 ##############################
137 ##############################
140 CXXFLAGS+=" -Wall -g -Os -fPIC -fvisibility-inlines-hidden -fdata-sections -ffunction-sections -DGL_GLEXT_PROTOTYPES"
141 LDFLAGS+=" -Wl,--rpath=%{_libdir} -Wl,--as-needed -Wl,--gc-sections -Wl,-Bsymbolic-functions "
143 %if 0%{?tizen_version_major} >= 5
144 CFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
145 CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
146 configure_flags="--enable-ecore-wl2"
150 cd %{_builddir}/%{name}-%{version}/build/tizen
153 %configure --prefix=$PREFIX \
155 --enable-keyextension
156 %if 0%{?use_image_loader}
158 --enable-imageloader-extension
161 make %{?jobs:-j%jobs}
163 ##############################
165 ##############################
170 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
171 install -m 0644 scripts/dali.sh %{buildroot}%{_sysconfdir}/profile.d
174 %make_install DALI_DATA_RW_DIR="%{dali_data_rw_dir}" DALI_DATA_RO_DIR="%{dali_data_ro_dir}"
179 ##############################
180 # Post Install new package
181 ##############################
190 %post video-player-plugin
194 %post web-engine-chromium-plugin
198 %post image-loader-plugin
202 %post vector-animation-renderer-plugin
206 %post web-engine-lite-plugin
208 ln -sf libdali-web-engine-lite-plugin.so libdali-web-engine-plugin.so
213 ##############################
214 # Pre Uninstall old package
215 ##############################
219 ##############################
220 # Post Uninstall old package
221 ##############################
226 %postun key-extension
230 %postun video-player-plugin
234 %postun web-engine-chromium-plugin
238 %postun image-loader-plugin
242 %postun vector-animation-renderer-plugin
246 %postun web-engine-lite-plugin
250 ##############################
251 # Files in Binary Packages
252 ##############################
255 %manifest dali-extension.manifest
256 %defattr(-,root,root,-)
257 %{_sysconfdir}/profile.d/dali.sh
261 %defattr(-,root,root,-)
262 %{_includedir}/%{name}/
263 %{_libdir}/pkgconfig/*.pc
266 %manifest dali-extension.manifest
267 %defattr(-,root,root,-)
268 %{_libdir}/libdali-key-extension.so*
271 %files video-player-plugin
272 %manifest dali-extension.manifest
273 %defattr(-,root,root,-)
274 %{_libdir}/libdali-video-player-plugin.so*
277 %files web-engine-chromium-plugin
278 %manifest dali-extension.manifest
279 %defattr(-,root,root,-)
280 %{_libdir}/libdali-web-engine-chromium-plugin.so*
283 %if 0%{?use_image_loader}
284 %files image-loader-plugin
285 %manifest dali-extension.manifest
286 %defattr(-,root,root,-)
287 %{_libdir}/libdali-image-loader-plugin.so*
291 %files vector-animation-renderer-plugin
292 %manifest dali-extension.manifest
293 %defattr(-,root,root,-)
294 %{_libdir}/libdali-vector-animation-renderer-plugin.so*
297 %files web-engine-lite-plugin
298 %manifest dali-extension.manifest
299 %defattr(-,root,root,-)
300 %{_libdir}/libdali-web-engine-lite-plugin.so*