blob: 5e7cd0f051f0816b800c5cd96cc42c53d5e14daf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
Name: aul
Summary: App utility library
Version: 0.8.3
Release: 1
Group: Application Framework/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/systemctl
Requires(postun): /sbin/ldconfig
Requires(postun): /usr/bin/systemctl
Requires(preun): /usr/bin/systemctl
Requires: tizen-platform-config
BuildRequires: cmake
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(dlog)
BuildRequires: xdgmime-devel, pkgconfig(xdgmime)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: libattr-devel
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(iniparser)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(storage)
BuildRequires: pkgconfig(ttrace)
BuildRequires: pkgconfig(pkgmgr-installer)
BuildRequires: pkgconfig(libxml-2.0)
%description
Application utility library
%package devel
Summary: App utility library (devel)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Application utility library (devel)
%package test
Summary: App utility test tools
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description test
Application utility library (test tools)
%prep
%setup -q
sed -i 's|TZ_SYS_DB|%{TZ_SYS_DB}|g' %{SOURCE1001}
cp %{SOURCE1001} .
%build
%if 0%{?simulator}
CFLAGS="%{optflags} -D__emul__"; export CFLAGS
%endif
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake -DFULLVER=%{version} \
-DMAJORVER=${MAJORVER} \
.
%__make %{?_smp_mflags}
sqlite3 .appsvc.db < ./data/appsvc_db.sql
%install
rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}%{_tmpfilesdir}
mkdir -p %{buildroot}%{TZ_SYS_DB}
install -m 0644 .appsvc.db %{buildroot}%{TZ_SYS_DB}
install -m 0644 .appsvc.db-journal %{buildroot}%{TZ_SYS_DB}
mkdir -p %{buildroot}%{_datadir}/appsvc
cp -R %{_builddir}/%{name}-%{version}/alias/* %{buildroot}%{_datadir}/appsvc
mkdir -p %{buildroot}%{_sysconfdir}/gumd/useradd.d
cp -f scripts/12_appsvc-add.post %{buildroot}%{_sysconfdir}/gumd/useradd.d/12_appsvc-add.post
%preun
%post
/sbin/ldconfig
chmod 666 %{TZ_SYS_DB}/.appsvc.db
chmod 666 %{TZ_SYS_DB}/.appsvc.db-journal
chsmack -a 'User::Home' %{TZ_SYS_DB}/.appsvc.db
chsmack -a 'User::Home' %{TZ_SYS_DB}/.appsvc.db-journal
%postun
/sbin/ldconfig
%files
%license LICENSE
%manifest %{name}.manifest
%attr(0644,root,root) %{_libdir}/libaul.so.*
%{_bindir}/aul_test
%{_bindir}/app_launcher
%{_bindir}/appgroup_info
%{_bindir}/app_com_tool
%{_bindir}/launch_app
%{_bindir}/appid2pid
%{_bindir}/launch_debug
%{_datadir}/aul/miregex/*
%{_datadir}/aul/preexec_list.txt
%{_datadir}/appsvc/*
%{TZ_SYS_DB}/.appsvc.db
%{TZ_SYS_DB}/.appsvc.db-journal
%{_sysconfdir}/package-manager/parserlib/metadata/libaul-parser.so
%attr(0755,root,root) %{_sysconfdir}/gumd/useradd.d/12_appsvc-add.post
%files test
%{_bindir}/open_app
%files devel
%{_includedir}/aul/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
|