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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
Name: app-installers
Summary: Application installers
Version: 1.34.45
Release: 1
Group: Application Framework/Package Management
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1000: app-installers.manifest
Source1001: app-installers-tests.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(pkgmgr-parser)
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: pkgconfig(pkgmgr-installer)
BuildRequires: pkgconfig(security-manager)
BuildRequires: pkgconfig(libiri)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(minizip)
BuildRequires: pkgconfig(libzip)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(cert-svc-vcore)
BuildRequires: pkgconfig(manifest-parser-utils)
BuildRequires: pkgconfig(delta-manifest-handlers)
BuildRequires: pkgconfig(security-privilege-manager)
BuildRequires: pkgconfig(tpk-manifest-handlers)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(libgum)
BuildRequires: pkgconfig(app2sd)
BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(vconf-internal-keys)
BuildRequires: pkgconfig(storage)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(ttrace)
BuildRequires: pkgconfig(tanchor)
BuildRequires: pkgconfig(libsmack)
BuildRequires: pkgconfig(gmock)
Requires: ca-certificates-tizen
Requires: libtzplatform-config
Requires: xdelta3
Requires(post): /usr/bin/chsmack
%define unpackdir /opt/usr/share/package-unpacked
%define rwsignaturedir /opt/share/signatures
%define rosignaturedir /usr/share/signatures
%define logdir /var/log/appfw/app-installers
%description
This is a meta package that installs the common application
installers of Tizen.
%package devel
Summary: App-installers development files
Group: Application Framework/Package Management
Requires: %{name} = %{version}
%description devel
This package contains header files of app-installers common library
%package tests
Summary: Smoke tests for app-installers
Requires: %{name} = %{version}
%description tests
Smoke tests for all modules of app-installers and common utils for smoke test
%prep
%setup -q
cp %{SOURCE1000} .
cp %{SOURCE1001} .
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=%{?verbose_make:ON}%{!?verbose_make:OFF} \
-DTIZEN_FULL_VERSION=%{tizen_full_version} \
-DUNITDIR=%{_unitdir} \
-DUNITDIR_USER=%{_unitdir_user} \
-DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
-DUNPACKDIR=%{unpackdir} \
-DLOGDIR=%{logdir}
make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{unpackdir}
mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
ln -sf ../package-recovery.service %{buildroot}%{_unitdir}/multi-user.target.wants/package-recovery.service
mkdir -p %{buildroot}%{rosignaturedir}
mkdir -p %{buildroot}%{rwsignaturedir}
mkdir -p %{buildroot}%{logdir}
%post
chsmack -a System %{unpackdir}
chsmack -t -a User::Home %{logdir}
chown -R app_fw:priv_platform %{logdir}
chmod 755 %{logdir}
touch %{logdir}/installation-history.log
chown app_fw:priv_platform %{logdir}/installation-history.log
chsmack -a User::Home %{logdir}/installation-history.log
%postun
%files
%defattr(-,root,root)
%{_datarootdir}/parser-plugins/plugins_list.txt
%manifest app-installers.manifest
%{_libdir}/libapp-installers.so.*
%{_bindir}/pkgdir-tool
%{_prefix}/share/dbus-1/system-services/org.tizen.pkgdir_tool.service
%{_sysconfdir}/dbus-1/system.d/org.tizen.pkgdir_tool.conf
%{_unitdir}/pkgdir-tool.service
%{_bindir}/pkg_initdb
%attr(0755,root,root) %{_sysconfdir}/gumd/useradd.d/10_package-manager-add.post
%attr(0755,root,root) %{_sysconfdir}/gumd/userdel.d/11_package-manager-del.post
%attr(2775,app_fw,system_share) %{logdir}
%{_bindir}/pkg_recovery
%{_unitdir}/package-recovery.service
%{_unitdir}/multi-user.target.wants/package-recovery.service
%{unpackdir}
%license LICENSE
%{rosignaturedir}
%{rwsignaturedir}
%files devel
%{_includedir}/app-installers/common/*.h
%{_includedir}/app-installers/common/*/*.h
%{_includedir}/app-installers/common/*/*/*.h
%{_libdir}/pkgconfig/app-installers.pc
%{_libdir}/libapp-installers.so
%files tests
%manifest app-installers-tests.manifest
%{_bindir}/app-installers-ut/*
%{_datadir}/app-installers-ut/*
%{_libdir}/libtest-assessor-lib.so*
%{_libdir}/libsmoke-utils.so*
%{_includedir}/app-installers/smoke_tests/common/smoke_utils.h
%changelog
* Tue Sep 01 2015 Pawel Sikorski <p.sikorski@samsung.com> 1.8-1
- manifest-parser alignement; icons fixes; boost namespace cleanup
- package directories update (security policy, tmp and cache dirs)
- apps killing during update/deinstallation
* Thu Aug 27 2015 Pawel Sikorski <p.sikorski@samsung.com> 1.7-1
- fixes: privileges list length, manifest generation, icon for tpk
- RequestMode introduction
* Fri Aug 21 2015 Pawel Sikorski <p.sikorski@samsung.com> 1.6-1
- Icons generation fix;
- Privilege translation for backward compatilibity
* Fri Aug 21 2015 Pawel Sikorski <p.sikorski@samsung.com> 1.5-1
- [Bug] Fix installation/deinstallation mode with smack
* Thu Aug 20 2015 Pawel Sikorski <p.sikorski@samsung.com> 1.4-1
- WebApp encryption alignement to the libwebappenc API change
- TPK recovery, update; WGT RDS fixup; icon fixes;
- Smoke tests updated
* Tue Aug 18 2015 Pawel Sikorski <p.sikorski@samsung.com> 1.3-1
- TPK installer exposed and TPK smoke tests added; smoke tests cleanup;
- preserving icons extensions in backup; fix deinstallation rollback
- SMACK label changed
* Fri Aug 14 2015 Pawel Sikorski <p.sikorski@samsung.com> 1.2-1
- Account info added to manifest.xml during installation; Smoke tests added; TPK update detection
* Fri Aug 14 2015 Pawel Sikorski <p.sikorski@samsung.com> 1.1-1
- Initial rpm changelog; Recovery (WGT) mode added, warngings cleanup; undo() can return ERROR
|