2 Summary: App utility library
5 Group: Application Framework/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
9 Source1002: %{name}-server.manifest
11 Requires(post): /sbin/ldconfig
12 Requires(post): /usr/bin/systemctl
13 Requires(postun): /sbin/ldconfig
14 Requires(postun): /usr/bin/systemctl
15 Requires(preun): /usr/bin/systemctl
16 Requires: tizen-platform-config
19 BuildRequires: pkgconfig(gio-2.0)
20 BuildRequires: pkgconfig(glib-2.0)
21 BuildRequires: pkgconfig(bundle)
22 BuildRequires: pkgconfig(dlog)
23 BuildRequires: xdgmime-devel, pkgconfig(xdgmime)
24 BuildRequires: pkgconfig(vconf)
25 BuildRequires: pkgconfig(pkgmgr-info)
26 BuildRequires: libattr-devel
27 BuildRequires: pkgconfig(libtzplatform-config)
28 BuildRequires: pkgconfig(capi-system-info)
29 BuildRequires: pkgconfig(iniparser)
30 BuildRequires: pkgconfig(sqlite3)
31 BuildRequires: pkgconfig(storage)
32 BuildRequires: pkgconfig(ttrace)
33 BuildRequires: pkgconfig(pkgmgr-installer)
34 BuildRequires: pkgconfig(libxml-2.0)
35 BuildRequires: pkgconfig(uuid)
36 BuildRequires: pkgconfig(libsmack)
37 BuildRequires: pkgconfig(gmock)
38 BuildRequires: pkgconfig(parcel)
46 Recommends: amd-mod-component-manager
47 Recommends: amd-mod-watchdog
50 Application utility library
53 Summary: App utility library (devel)
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Application utility library (devel)
61 Summary: App utility test tools
62 Group: Development/Libraries
63 Requires: %{name} = %{version}-%{release}
66 Application utility library (test tools)
68 #################################################
70 #################################################
74 Group: Application Framework/Testing
80 #################################################
82 #################################################
84 Summary: Application Utility Library (Server)
85 Group: Development/Libraries
88 Application Utility Library (Server)
91 Summary: Application Utility Library (Server)
92 Group: Development/Libraries
93 Requires: %{name}-server = %{version}-%{release}
95 %description server-devel
96 Application Utility Library (devel)
98 %if "%{?_prelink_enable}" == "y"
99 %define tizen_feature_prelink 1
101 %define tizen_feature_prelink 0
104 %define _aulresdir /opt/usr/home/owner/share/aul/res
108 sed -i 's|TZ_SYS_DB|%{TZ_SYS_DB}|g' %{SOURCE1001}
114 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
115 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
116 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
117 export LDFLAGS+=" -lgcov"
121 CFLAGS="%{optflags} -D__emul__"; export CFLAGS
124 %if 0%{?tizen_feature_prelink}
125 _TIZEN_FEATURE_PRELINK=ON
128 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
129 %cmake -DFULLVER=%{version} \
130 -DMAJORVER=${MAJORVER} \
131 -D_TIZEN_FEATURE_PRELINK:BOOL=${_TIZEN_FEATURE_PRELINK} \
132 -DAUL_RES_DIR=%{_aulresdir} \
135 %__make %{?_smp_mflags}
137 sqlite3 .appsvc.db < ./data/appsvc_db.sql
138 sqlite3 .component.db < ./parser/component/data/component_db.sql
142 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
146 ctest --output-on-failure %{?_smp_mflags}
148 lcov -c --ignore-errors graph --no-external -q -d . -o %{name}.info
149 genhtml %{name}.info -o %{name}.out
150 zip -r %{name}.zip %{name}.out %{name}.info
151 install -m 0644 %{name}.zip %{buildroot}%{_datadir}/gcov/
158 mkdir -p %{buildroot}%{TZ_SYS_DB}
159 install -m 0644 .appsvc.db %{buildroot}%{TZ_SYS_DB}
160 install -m 0644 .appsvc.db-journal %{buildroot}%{TZ_SYS_DB}
161 install -m 0644 .component.db %{buildroot}%{TZ_SYS_DB}
162 install -m 0644 .component.db-journal %{buildroot}%{TZ_SYS_DB}
164 mkdir -p %{buildroot}%{_datadir}/appsvc
165 cp -R %{_builddir}/%{name}-%{version}/alias/* %{buildroot}%{_datadir}/appsvc
167 mkdir -p %{buildroot}%{_sysconfdir}/gumd/useradd.d
168 cp -f scripts/12_appsvc-add.post %{buildroot}%{_sysconfdir}/gumd/useradd.d/12_appsvc-add.post
171 mkdir -p %{buildroot}%{_datadir}/gcov/obj
172 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
180 chmod 666 %{TZ_SYS_DB}/.appsvc.db
181 chmod 666 %{TZ_SYS_DB}/.appsvc.db-journal
182 chsmack -a 'User::Home' %{TZ_SYS_DB}/.appsvc.db
183 chsmack -a 'User::Home' %{TZ_SYS_DB}/.appsvc.db-journal
184 chmod 666 %{TZ_SYS_DB}/.component.db
185 chmod 666 %{TZ_SYS_DB}/.component.db-journal
186 chsmack -a 'User::Home' %{TZ_SYS_DB}/.component.db
187 chsmack -a 'User::Home' %{TZ_SYS_DB}/.component.db-journal
194 %{_bindir}/aul-unit-tests
196 chmod +x %{_aulresdir}/tpk/install.sh
197 %{_aulresdir}/tpk/install.sh
207 %manifest %{name}.manifest
208 %attr(0644,root,root) %{_libdir}/libaul.so.*
209 %config %{_sysconfdir}/dbus-1/system.d/aul.conf
211 %{_bindir}/app_launcher
212 %{_bindir}/appgroup_info
213 %{_bindir}/app_com_tool
214 %{_bindir}/launch_app
216 %{_bindir}/launch_debug
217 %{_bindir}/compmgr_tool
218 %{_bindir}/appsvc-db-recovery
219 %{_bindir}/component-db-recovery
220 %{_datadir}/aul/miregex/*
221 %{_datadir}/aul/preexec_list.txt
223 %{_datadir}/parser-plugins/*
224 %{TZ_SYS_DB}/.appsvc.db*
225 %{TZ_SYS_DB}/.component.db*
226 %{_sysconfdir}/package-manager/parserlib/metadata/*.so
227 %{_sysconfdir}/package-manager/parserlib/libcomponent-based-application.so
228 %attr(0755,root,root) %{_sysconfdir}/gumd/useradd.d/*
229 %attr(0755,root,root) %{_datadir}/upgrade/scripts/501.component_upgrade.sh
232 %{_bindir}/app-control-tests
233 %{_bindir}/aul-unit-tests
238 %{_includedir}/aul/*.h
239 %{_includedir}/aul/api/*.h
241 %{_libdir}/pkgconfig/aul.pc
243 #################################################
245 #################################################
252 %manifest %{name}-server.manifest
253 %attr(0644,root,root) %{_libdir}/libaul-server.so.*
256 %{_includedir}/aul/server/*.h
257 %{_libdir}/libaul-server.so
258 %{_libdir}/pkgconfig/aul-server.pc