2 Summary: App utility library
5 Group: Application Framework/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
10 Requires(post): /sbin/ldconfig
11 Requires(post): /usr/bin/systemctl
12 Requires(postun): /sbin/ldconfig
13 Requires(postun): /usr/bin/systemctl
14 Requires(preun): /usr/bin/systemctl
15 Requires: tizen-platform-config
18 BuildRequires: pkgconfig(gio-2.0)
19 BuildRequires: pkgconfig(glib-2.0)
20 BuildRequires: pkgconfig(bundle)
21 BuildRequires: pkgconfig(dlog)
22 BuildRequires: xdgmime-devel, pkgconfig(xdgmime)
23 BuildRequires: pkgconfig(vconf)
24 BuildRequires: pkgconfig(pkgmgr-info)
25 BuildRequires: libattr-devel
26 BuildRequires: pkgconfig(libtzplatform-config)
27 BuildRequires: pkgconfig(capi-system-info)
28 BuildRequires: pkgconfig(iniparser)
29 BuildRequires: pkgconfig(sqlite3)
30 BuildRequires: pkgconfig(storage)
31 BuildRequires: pkgconfig(ttrace)
32 BuildRequires: pkgconfig(pkgmgr-installer)
33 BuildRequires: pkgconfig(libxml-2.0)
36 Application utility library
39 Summary: App utility library (devel)
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 Application utility library (devel)
47 Summary: App utility test tools
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
52 Application utility library (test tools)
56 sed -i 's|TZ_SYS_DB|%{TZ_SYS_DB}|g' %{SOURCE1001}
61 CFLAGS="%{optflags} -D__emul__"; export CFLAGS
64 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
65 %cmake -DFULLVER=%{version} \
66 -DMAJORVER=${MAJORVER} \
69 %__make %{?_smp_mflags}
71 sqlite3 .appsvc.db < ./data/appsvc_db.sql
77 mkdir -p %{buildroot}%{_tmpfilesdir}
78 mkdir -p %{buildroot}%{TZ_SYS_DB}
79 install -m 0644 .appsvc.db %{buildroot}%{TZ_SYS_DB}
80 install -m 0644 .appsvc.db-journal %{buildroot}%{TZ_SYS_DB}
82 mkdir -p %{buildroot}%{_datadir}/appsvc
83 cp -R %{_builddir}/%{name}-%{version}/alias/* %{buildroot}%{_datadir}/appsvc
85 mkdir -p %{buildroot}%{_sysconfdir}/gumd/useradd.d
86 cp -f scripts/12_appsvc-add.post %{buildroot}%{_sysconfdir}/gumd/useradd.d/12_appsvc-add.post
93 chmod 666 %{TZ_SYS_DB}/.appsvc.db
94 chmod 666 %{TZ_SYS_DB}/.appsvc.db-journal
95 chsmack -a 'User::Home' %{TZ_SYS_DB}/.appsvc.db
96 chsmack -a 'User::Home' %{TZ_SYS_DB}/.appsvc.db-journal
103 %manifest %{name}.manifest
104 %attr(0644,root,root) %{_libdir}/libaul.so.*
105 %config %{_sysconfdir}/dbus-1/system.d/aul.conf
107 %{_bindir}/app_launcher
108 %{_bindir}/appgroup_info
109 %{_bindir}/app_com_tool
110 %{_bindir}/launch_app
112 %{_bindir}/launch_debug
113 %{_datadir}/aul/miregex/*
114 %{_datadir}/aul/preexec_list.txt
116 %{TZ_SYS_DB}/.appsvc.db
117 %{TZ_SYS_DB}/.appsvc.db-journal
118 %{_sysconfdir}/package-manager/parserlib/metadata/libaul-parser.so
119 %attr(0755,root,root) %{_sysconfdir}/gumd/useradd.d/12_appsvc-add.post
125 %{_includedir}/aul/*.h
127 %{_libdir}/pkgconfig/*.pc