4 Summary: Library for developing the application
7 Group: Applications/Core Applications
8 License: Flora-1.1 and Apache-2.0
9 Source0: %{name}-%{version}.tar.gz
10 Source1001: %{name}_evas.manifest
11 Source1003: org.tizen.widget_viewer_sdk.manifest
12 Source1004: watch-control.manifest
13 Source1005: frame-broker.manifest
14 Source1006: frame-provider.manifest
15 Source1007: watch-holder.manifest
16 Source1008: watch-holder-base.manifest
17 Source1009: ambient-viewer.manifest
19 BuildRequires: cmake, gettext-tools, coreutils, edje-bin
20 BuildRequires: pkgconfig(dlog)
21 BuildRequires: pkgconfig(aul)
22 BuildRequires: pkgconfig(glib-2.0)
23 BuildRequires: pkgconfig(gio-2.0)
24 BuildRequires: pkgconfig(sqlite3)
25 BuildRequires: pkgconfig(db-util)
26 BuildRequires: pkgconfig(widget_service)
27 BuildRequires: pkgconfig(vconf)
28 BuildRequires: pkgconfig(elementary)
29 BuildRequires: pkgconfig(pkgmgr-info)
30 BuildRequires: pkgconfig(capi-appfw-application)
31 BuildRequires: pkgconfig(appcore-efl)
32 BuildRequires: pkgconfig(capi-system-info)
33 BuildRequires: pkgconfig(efl-extension)
34 BuildRequires: pkgconfig(wayland-client)
35 BuildRequires: pkgconfig(libtbm)
36 BuildRequires: pkgconfig(libtzplatform-config)
37 BuildRequires: pkgconfig(cynara-client)
38 BuildRequires: pkgconfig(appsvc)
39 BuildRequires: pkgconfig(ecore-wl2)
40 BuildRequires: pkgconfig(wayland-tbm-client)
41 BuildRequires: pkgconfig(screen_connector_watcher_evas)
42 BuildRequires: pkgconfig(capi-system-device)
43 BuildRequires: pkgconfig(screen_connector_launcher_service)
44 BuildRequires: pkgconfig(screen_connector_shared_widget_launch)
45 BuildRequires: pkgconfig(libsmack)
46 BuildRequires: pkgconfig(screen_connector_remote_surface_evas_mock)
47 BuildRequires: pkgconfig(uuid)
48 BuildRequires: pkgconfig(gmock)
56 API for creating a new instance of the widget and managing its life-cycle.
70 export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
71 export CXXFLAGS+=" -DEFL_BETA_API_SUPPORT "
73 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
74 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
75 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
76 export LDFLAGS+=" -lgcov"
79 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
80 %cmake -DWIDGET_ENABLED=On \
81 -DTZ_SYS_SHARE=/usr/share \
82 -DFULLVER=%{version} \
83 -DMAJORVER=${MAJORVER} \
90 lcov -c --ignore-errors graph --no-external -q -d . -o widget-viewer.info
91 genhtml widget-viewer.info -o widget-viewer.out
92 zip -r widget-viewer.zip widget-viewer.out
93 install -m 0644 widget-viewer.zip %{buildroot}%{_datadir}/gcov/obj/
99 cat << EOF > run-unittest.sh
106 echo "test_main start"
107 /usr/bin/widget_viewer-unittests
111 echo "teardown start"
123 mkdir -p %{buildroot}%{_bindir}/tizen-unittests/%{name}
124 install -m 0755 run-unittest.sh %{buildroot}%{_bindir}/tizen-unittests/%{name}/
127 builddir=$(basename $PWD)
128 gcno_obj_dir=%{buildroot}%{_datadir}/gcov/obj/%{name}/"$builddir"
129 mkdir -p "$gcno_obj_dir"
130 find . -name '*.gcno' -exec cp --parents '{}' "$gcno_obj_dir" ';'
134 %post -n %{name} -p /sbin/ldconfig
135 %postun -n %{name} -p /sbin/ldconfig
137 #################################################
138 # libwidget_viewer_evas
139 %package -n %{name}_evas
140 Summary: Library for developing the widget viewer evas
141 Group: Applications/Core Applications
144 %description -n %{name}_evas
145 Provider APIs to develop the widget viewer EFL application.
147 %package -n %{name}_evas-devel
148 Summary: Widget provider application development library (dev) (EFL version)
149 Group: Development/Libraries
150 Requires: %{name}_evas
152 %description -n %{name}_evas-devel
153 Header & package configuration files to support development of the widget viewer applications. (for EFL app)
155 %post -n %{name}_evas -p /sbin/ldconfig
156 %postun -n %{name}_evas -p /sbin/ldconfig
158 #################################################
159 # org.tizen.widget_viewer_sdk
160 %package -n org.tizen.widget_viewer_sdk
161 Summary: The widget viewer for development using SDK(IDE)
163 Group: Development/Tools
165 Requires: %{name}_evas
167 %description -n org.tizen.widget_viewer_sdk
168 While developing the widget applications, this viewer will load it and execute it to help you to see it on the screen.
170 %post -n org.tizen.widget_viewer_sdk -p /sbin/ldconfig
171 %postun -n org.tizen.widget_viewer_sdk -p /sbin/ldconfig
173 #################################################
174 # libwidget_viewer_evas-unittests
175 #################################################
176 %package -n libwidget_viewer_evas-unittests
177 Summary: GTest for widget-viewer
178 Group: Development/Libraries
180 %description -n libwidget_viewer_evas-unittests
181 GTest for widget-viewer
183 %files -n libwidget_viewer_evas-unittests
184 %{_bindir}/widget_viewer-unittests
185 %{_bindir}/tizen-unittests/%{name}/run-unittest.sh
187 #################################################
188 # libwidget_viewer_evas-gcov
189 #################################################
191 %package -n libwidget_viewer_evas-gcov
192 Summary: Simple string key-val dictionary ADT (gcov)
193 Group: Application Framework/Testing
195 %description -n libwidget_viewer_evas-gcov
196 Simple string key-val dictionary ADT gcov objects
200 %files -n libwidget_viewer_evas-gcov
201 %{_datadir}/gcov/obj/*
204 ################################################
206 %package -n watch-control
207 Summary: APIs to control watch applications
210 Group: Applications/Core Applications
212 %description -n watch-control
213 A set of APIs to control watch applications
215 %package -n watch-control-devel
216 Summary: APIs to control watch applications
217 Group: Development/Libraries
218 Requires: watch-control
220 %description -n watch-control-devel
221 Header & package configuration of watch-control
223 %post -n watch-control -p /sbin/ldconfig
224 %postun -n watch-control -p /sbin/ldconfig
226 ################################################
227 # libwatch_holder_base
228 %package -n watch-holder-base
229 Summary: APIs to control watch applications
232 Group: Applications/Core Applications
234 %description -n watch-holder-base
235 A set of APIs to control watch applications
237 %package -n watch-holder-base-devel
238 Summary: APIs to control watch applications
239 Group: Development/Libraries
240 Requires: watch-holder-base
242 %description -n watch-holder-base-devel
243 Header & package configuration of watch-holder-base
245 %post -n watch-holder-base -p /sbin/ldconfig
246 %postun -n watch-holder-base -p /sbin/ldconfig
248 ################################################
250 %package -n watch-holder
251 Summary: APIs to control watch applications
254 Group: Applications/Core Applications
255 Requires: watch-holder-base
258 %description -n watch-holder
259 A set of APIs to control watch applications
261 %package -n watch-holder-devel
262 Summary: APIs to control watch applications
263 Group: Development/Libraries
264 Requires: watch-holder
266 %description -n watch-holder-devel
267 Header & package configuration of watch-holder
269 %post -n watch-holder -p /sbin/ldconfig
270 %postun -n watch-holder -p /sbin/ldconfig
273 ################################################
275 ################################################
276 %package -n frame-broker
277 Summary: APIs to handle launching images for the launcher
279 Group: Applications/Core Applications
281 Recommends: amd-mod-screen-resolution
283 %description -n frame-broker
284 A set of APIs to handle launching images for the launcher
286 %package -n frame-broker-devel
287 Summary: APIs to handle launching images for the launcher
288 Group: Development/Libraries
289 Requires: frame-broker
291 %description -n frame-broker-devel
292 Header & package configuration of launcher service
294 %post -n frame-broker -p /sbin/ldconfig
295 %postun -n frame-broker -p /sbin/ldconfig
297 ################################################
299 ################################################
300 %package -n frame-provider
301 Summary: APIs to handle launching images for the callee
303 Group: Applications/Core Applications
305 %description -n frame-provider
306 A set of APIs to handle launching images for the callee
308 %package -n frame-provider-devel
309 Summary: APIs to handle launching images for the callee (devel)
310 Group: Development/Libraries
311 Requires: frame-provider
313 %description -n frame-provider-devel
314 Header & package configuration for the callee (devel)
316 %post -n frame-provider -p /sbin/ldconfig
317 %postun -n frame-provider -p /sbin/ldconfig
319 ################################################
321 ################################################
322 %package -n ambient-viewer
323 Summary: APIs to control ambient viewer
326 Group: Applications/Core Applications
328 %description -n ambient-viewer
329 A set of APIs to control viewer applications
331 %package -n ambient-viewer-devel
332 Summary: APIs to control watch applications
333 Group: Development/Libraries
334 Requires: ambient-viewer
336 %description -n ambient-viewer-devel
337 Header & package configuration of ambient-viewer
339 %post -n ambient-viewer -p /sbin/ldconfig
340 %postun -n ambient-viewer -p /sbin/ldconfig
342 ################################################
344 ################################################
345 %files -n %{name}_evas
346 %manifest %{name}_evas.manifest
347 %attr(0644,root,root) %{_libdir}/%{name}_evas.so.*
348 %license LICENSE.Flora-1.1 LICENSE.Apache-2.0
349 /usr/share/widget_viewer_evas/res/edje/widget_viewer_evas.edj
350 /usr/share/widget_viewer_evas/res/image/*.png
351 /usr/share/widget_viewer_evas/res/locale/*/LC_MESSAGES/*
352 %{_bindir}/widget-mgr
354 %files -n %{name}_evas-devel
355 %{_includedir}/widget_viewer_evas/widget_viewer_evas.h
356 %{_includedir}/widget_viewer_evas/widget_viewer_evas_extension.h
357 %{_libdir}/pkgconfig/widget_viewer_evas.pc
358 %attr(0644,root,root) %{_libdir}/%{name}_evas.so
360 %files -n org.tizen.widget_viewer_sdk
361 %manifest org.tizen.widget_viewer_sdk.manifest
362 %{_datarootdir}/packages/org.tizen.widget_viewer_sdk.xml
363 %license LICENSE.Flora-1.1 LICENSE.Apache-2.0
364 %{_prefix}/apps/org.tizen.widget_viewer_sdk/*
366 %files -n watch-control
367 %manifest watch-control.manifest
368 %license LICENSE.Flora-1.1 LICENSE.Apache-2.0
369 %{_libdir}/libwatch-control.so.*
371 %files -n watch-control-devel
372 %{_includedir}/watch-control/*.h
373 %{_libdir}/pkgconfig/watch-control.pc
374 %{_libdir}/libwatch-control.so
376 %files -n watch-holder
377 %manifest watch-holder.manifest
378 %license LICENSE.Flora-1.1 LICENSE.Apache-2.0
379 %{_libdir}/libwatch-holder.so.*
381 %files -n watch-holder-devel
382 %{_includedir}/watch-holder/*.h
383 %{_includedir}/watch-holder/*.hh
384 %{_libdir}/pkgconfig/watch-holder.pc
385 %{_libdir}/libwatch-holder.so
387 %files -n watch-holder-base
388 %manifest watch-holder-base.manifest
389 %license LICENSE.Flora-1.1 LICENSE.Apache-2.0
390 %{_libdir}/libwatch-holder-base.so.*
392 %files -n watch-holder-base-devel
393 %{_includedir}/watch-holder-base/*.hh
394 %{_libdir}/pkgconfig/watch-holder-base.pc
395 %{_libdir}/libwatch-holder-base.so
397 %files -n frame-broker
398 %manifest frame-broker.manifest
399 %{_libdir}/libframe-broker.so.*
401 %files -n frame-broker-devel
402 %{_includedir}/frame-broker/*.h
403 %{_libdir}/pkgconfig/frame-broker.pc
404 %{_libdir}/libframe-broker.so
406 %files -n frame-provider
407 %manifest frame-provider.manifest
408 %{_libdir}/libframe-provider.so.*
410 %files -n frame-provider-devel
411 %{_includedir}/frame-provider/*.h
412 %{_libdir}/pkgconfig/frame-provider.pc
413 %{_libdir}/libframe-provider.so
415 %files -n ambient-viewer
416 %manifest ambient-viewer.manifest
417 %{_libdir}/libambient-viewer.so.*
419 %files -n ambient-viewer-devel
420 %{_includedir}/ambient-viewer/*.h
421 %{_includedir}/ambient-viewer/*.hh
422 %{_libdir}/pkgconfig/ambient-viewer.pc
423 %{_libdir}/libambient-viewer.so