2 Summary: Sticker client library and daemon
5 Group: Graphics & UI Framework/Input
7 Source0: %{name}-%{version}.tar.gz
8 Source1: capi-ui-sticker.service
9 Source2: org.tizen.sticker.server.service
10 Source3: capi-ui-sticker.conf
11 BuildRequires: cmake, coreutils
12 BuildRequires: pkgconfig(capi-appfw-app-common)
13 BuildRequires: pkgconfig(capi-appfw-package-manager)
14 BuildRequires: pkgconfig(capi-system-info)
15 BuildRequires: pkgconfig(cynara-client)
16 BuildRequires: pkgconfig(cynara-session)
17 BuildRequires: pkgconfig(dbus-1)
18 BuildRequires: pkgconfig(dlog)
19 BuildRequires: pkgconfig(gio-2.0)
20 BuildRequires: pkgconfig(gio-unix-2.0)
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(sqlite3)
27 %if 0%{?sec_product_feature_profile_wearable}
28 BuildRequires: pkgconfig(capi-base-common)
29 BuildRequires: pkgconfig(capi-appfw-service-application)
30 BuildRequires: pkgconfig(capi-message-port)
31 BuildRequires: pkgconfig(sap-client-stub-api)
32 BuildRequires: hash-signer
34 Requires(post): signing-client
35 Requires: org.tizen.sticker-receiver
38 Requires: security-config
39 Requires(post): /sbin/ldconfig
41 Requires(postun): /sbin/ldconfig
44 Sticker client library and daemon
47 Summary: Sticker client library and daemon (Development)
48 Group: Graphics & UI Framework/Input
49 Requires: %{name} = %{version}-%{release}
51 %if 0%{?sec_product_feature_profile_wearable}
52 %define _companion_app_name org.tizen.sticker-receiver
54 %package -n %{_companion_app_name}
55 Summary: Sticker companion service
56 Group: Graphics & UI Framework/Input
57 Requires: %{name} = %{version}-%{release}
62 Sticker client library and daemon (Development)
64 %if 0%{?sec_product_feature_profile_wearable}
65 %description -n %{_companion_app_name}
66 Sticker companion service
71 Summary: Sticker client library and daemon (gcov)
72 Group: Graphics & UI Framework/Input
74 Sticker client library and daemon (gcov)
78 %setup -q -n %{name}-%{version}
83 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
84 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
85 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
86 export LDFLAGS+=" -lgcov"
89 export CFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden -Werror"
90 export CXXFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden -Werror"
91 export FFLAGS+=" -DTIZEN_DEBUG_ENABLE -fvisibility=hidden"
94 %if 0%{?sec_product_feature_profile_wearable}
95 -DCOMPANION_MODE=true \
97 -DCMAKE_INSTALL_PREFIX=/usr -DLIBDIR=%{_libdir} -DBINDIR=%{_bindir} -DINCLUDEDIR=%{_includedir} \
98 -DTZ_SYS_RO_SHARE=%TZ_SYS_RO_SHARE -DTZ_SYS_BIN=%TZ_SYS_BIN -DTZ_SYS_SHARE=%TZ_SYS_SHARE \
99 -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES
100 make %{?jobs:-j%jobs}
104 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
111 mkdir -p %{buildroot}%{_prefix}/lib/systemd/system
112 install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/capi-ui-sticker.service
114 mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services
115 install -m 0644 %SOURCE2 %{buildroot}%{_datadir}/dbus-1/system-services/org.tizen.sticker.server.service
117 mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
118 install -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/dbus-1/system.d/capi-ui-sticker.conf
121 mkdir -p %{buildroot}%{_datadir}/gcov/obj
122 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
125 %if 0%{?sec_product_feature_profile_wearable}
127 %define tizen_sign_base %{TZ_SYS_RO_APP}/%{_companion_app_name}
128 %define tizen_sign_level public
129 %define tizen_author_sign 1
130 %define tizen_dist_sign 1
136 mkdir -p -m 0775 %{TZ_SYS_SHARE}/sticker-data
137 chown -R ui_fw:ui_fw %{TZ_SYS_SHARE}/sticker-data
138 chsmack -t %{TZ_SYS_SHARE}/sticker-data
139 chsmack -a "System::Shared" %{TZ_SYS_SHARE}/sticker-data
141 %postun -p /sbin/ldconfig
144 %manifest %{name}.manifest
147 %attr(0755,ui_fw,ui_fw) %{_bindir}/sticker-server
148 %attr(0644,root,root) %{_unitdir}/capi-ui-sticker.service
149 %attr(0644,root,root) %{_datadir}/dbus-1/system-services/org.tizen.sticker.server.service
150 %config %{_sysconfdir}/dbus-1/system.d/capi-ui-sticker.conf
151 %{TZ_SYS_RO_SHARE}/parser-plugins/capi-ui-sticker.info
152 %{TZ_SYS_RO_ETC}/package-manager/parserlib/category/libcapi-ui-sticker-parser.so*
153 %{TZ_SYS_RO_ETC}/package-manager/parserlib/metadata/libcapi-ui-sticker-parser.so*
156 %manifest %{name}-devel.manifest
157 %defattr(-,root,root,-)
159 %{_libdir}/pkgconfig/capi-ui-sticker-consumer.pc
160 %{_libdir}/pkgconfig/capi-ui-sticker-provider.pc
161 %{_includedir}/sticker_error.h
162 %{_includedir}/sticker_data.h
163 %{_includedir}/sticker_consumer.h
164 %{_includedir}/sticker_provider.h
166 %if 0%{?sec_product_feature_profile_wearable}
167 %post -n %{_companion_app_name}
168 /usr/bin/signing-client/hash-signer-client.sh -a -d -p platform %{TZ_SYS_RO_APP}/%{_companion_app_name}
170 %files -n %{_companion_app_name}
171 %manifest receiver/%{_companion_app_name}.manifest
173 %{TZ_SYS_RO_PACKAGES}/%{_companion_app_name}.xml
174 %{TZ_SYS_RO_APP}/%{_companion_app_name}/*
179 %{_datadir}/gcov/obj/*