To allow installation for all users, we need to assign tizenglobalapp user as owner of
/usr/share/packages
Change-Id: I3b05bc77e65185783a769f13e04c8870b7e00b87
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
# create the directory for hosting Read-Write application manifest files
mkdir -p %{buildroot}%{TZ_SYS_RW_PACKAGES}
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+chsmack -a '*' %{TZ_SYS_RW_PACKAGES}
%postun -p /sbin/ldconfig
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/libpkgmgr-info.so.*
-%dir %{TZ_SYS_RW_PACKAGES}
+%attr(-,tizenglobalapp,root) %dir %{TZ_SYS_RW_PACKAGES}
%files devel
%manifest %{name}.manifest