2 Summary: Gesture client library and daemon
5 Group: Graphics & UI Framework/Input
7 Source0: %{name}-%{version}.tar.gz
8 Source1: capi-ui-gesture.service
9 Source2: org.tizen.gesture.server.service
10 Source3: capi-ui-gesture.conf
11 BuildRequires: cmake, coreutils
12 BuildRequires: pkgconfig(capi-appfw-app-common)
13 BuildRequires: pkgconfig(capi-appfw-app-control)
14 BuildRequires: pkgconfig(capi-appfw-app-manager)
15 BuildRequires: pkgconfig(capi-appfw-package-manager)
16 BuildRequires: pkgconfig(capi-system-info)
17 BuildRequires: pkgconfig(cynara-client)
18 BuildRequires: pkgconfig(cynara-session)
19 BuildRequires: pkgconfig(dbus-1)
20 BuildRequires: pkgconfig(dlog)
21 BuildRequires: pkgconfig(glib-2.0)
22 BuildRequires: pkgconfig(json-glib-1.0)
23 BuildRequires: pkgconfig(libtzplatform-config)
24 BuildRequires: pkgconfig(pkgmgr-info)
25 BuildRequires: pkgconfig(aul)
26 Requires: security-config
27 Requires(post): /sbin/ldconfig
29 Requires(postun): /sbin/ldconfig
32 Gesture client library and daemon
35 Summary: Gesture client library and daemon (Development)
36 Group: Graphics & UI Framework/Input
37 Requires: %{name} = %{version}-%{release}
40 Gesture client library and daemon (Development)
44 Summary: Gesture client library and daemon (gcov)
45 Group: Graphics & UI Framework/Input
47 Gesture client library and daemon (gcov)
51 %setup -q -n %{name}-%{version}
56 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
57 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
58 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
59 export LDFLAGS+=" -lgcov"
62 export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden -Werror"
63 export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden -Werror"
64 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
66 %cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} -DINCLUDEDIR=%{_includedir} \
67 -DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE -DTZ_SYS_BIN=%TZ_SYS_BIN -DTZ_SYS_SHARE=%TZ_SYS_SHARE
72 find . -name '*_dbus.c.gcno' -exec rm {} \;
73 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
80 mkdir -p %{buildroot}%{_prefix}/lib/systemd/system
81 install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/capi-ui-gesture.service
83 mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services
84 install -m 0644 %SOURCE2 %{buildroot}%{_datadir}/dbus-1/system-services/org.tizen.gesture.server.service
86 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
87 install -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/dbus-1/system.d/capi-ui-gesture.conf
90 mkdir -p %{buildroot}%{_datadir}/gcov/obj
91 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
94 mkdir -p %{buildroot}/etc/dbus-1/system.d/
95 cp %{SOURCE3} %{buildroot}/etc/dbus-1/system.d/capi-ui-gesture.conf
100 %postun -p /sbin/ldconfig
103 %manifest %{name}.manifest
106 %attr(0755,ui_fw,ui_fw) %{_bindir}/gesture-server
107 %attr(0644,root,root) %{_datadir}/gesture/capi-ui-gesture-gdbus.xml
108 %attr(0644,root,root) %{_unitdir}/capi-ui-gesture.service
109 %attr(0644,root,root) %{_datadir}/dbus-1/system-services/org.tizen.gesture.server.service
110 %config %{_sysconfdir}/dbus-1/system.d/capi-ui-gesture.conf
113 %manifest %{name}-devel.manifest
114 %defattr(-,root,root,-)
116 %{_libdir}/pkgconfig/capi-ui-gesture-client.pc
117 %{_libdir}/pkgconfig/capi-ui-gesture-engine.pc
118 %{_includedir}/gesture.h
119 %{_includedir}/gesture_internal.h
120 %{_includedir}/gesture_engine.h
121 %{_includedir}/gesture_common.h
122 %{_includedir}/gesture_common_internal.h
123 %{_includedir}/gesture_data_info.h
125 %config(noreplace) /etc/dbus-1/system.d/capi-ui-gesture.conf
129 %{_datadir}/gcov/obj/*