Source0: %{name}-%{version}.tar.gz
Source1001: ail.manifest
BuildRequires: cmake
-BuildRequires: vconf-keys-devel
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(libsmack)
BuildRequires: pkgconfig(xdgmime)
BuildRequires: pkgconfig(libtzplatform-config)
Provides: libail = %{version}-%{release}
-Requires: libcap-tools
%description
Application Information Library package
Summary: Application Information Library Development files
Requires: libail = %{version}-%{release}
Requires: pkgconfig(libtzplatform-config)
-Requires: pkgconfig(libsmack)
+Requires: pkgconfig(libsmack)
%description devel
Application Information Library Development files package
cp %{SOURCE1001} .
%build
-CFLAGS+=" -fpic"
+CFLAGS="$CFLAGS -fpic"
%if 0%{?tizen_build_binary_release_type_eng}
export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
%endif
%cmake . -DTZ_SYS_RW_DESKTOP_APP=%TZ_SYS_RW_DESKTOP_APP \
- -DBUILD_PKGTYPE=rpm \
- -DSMACK=Off
+ -DBUILD_PKGTYPE=rpm
%__make %{?_smp_mflags}
%make_install
%post
-/sbin/ldconfig
+ldconfig
# Create tizenglobalapp user needed for global installation
-%{_sbindir}/useradd -d %TZ_SYS_RW_APP -m %TZ_SYS_GLOBALAPP_USER -r -c "system user for common applications" -g root
+useradd -d %TZ_SYS_RW_APP -m %TZ_SYS_GLOBALAPP_USER -r -c "system user for common applications" -g root
-#mkdir -p %TZ_SYS_RW_APP/.config/xwalk-service/applications
-#cd %TZ_SYS_RW_APP/
+#mkdir -p %%TZ_SYS_RW_APP/.config/xwalk-service/applications
+#cd %%TZ_SYS_RW_APP/
#ln -s .config/xwalk-service/applications/
-vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse
-vconftool set -t string db/menuscreen/desktop "0" -f -s system::vconf_inhouse
-vconftool set -t string db/menu_widget/language "en_US.utf8" -f -s system::vconf_inhouse
-chsmack -a User %TZ_SYS_CONFIG/db/ail
-chsmack -a User %TZ_SYS_CONFIG/db/ail/ail_info
-chsmack -a User %TZ_SYS_CONFIG/db/menuscreen
-chsmack -a User %TZ_SYS_CONFIG/db/menuscreen/desktop
-chsmack -a User %TZ_SYS_CONFIG/db/menu_widget
-chsmack -a User %TZ_SYS_CONFIG/db/menu_widget/language
+vconftool set -t string db/ail/ail_info "0" -f -s User
+vconftool set -t string db/menuscreen/desktop "0" -f -s User
+vconftool set -t string db/menu_widget/language "en_US.utf8" -f -s User
mkdir -p %{TZ_SYS_RO_DESKTOP_APP}
mkdir -p %{TZ_SYS_RW_DESKTOP_APP}
mkdir -p %{TZ_SYS_RW_APP}
mkdir -p %{TZ_SYS_DB}
+mkdir -p %{TZ_SYS_RW_ICONS}/default/small
chsmack -a '*' %{TZ_SYS_DB}
chsmack -a '*' %{TZ_SYS_RW_APP}
chsmack -a '*' %{TZ_SYS_RW_DESKTOP_APP}
chsmack -a '*' %{TZ_SYS_RO_DESKTOP_APP}
+chsmack -a '*' %{TZ_SYS_RW_ICONS}
+chsmack -a '*' %{TZ_SYS_RW_ICONS}/default
+chsmack -a '*' %{TZ_SYS_RW_ICONS}/default/small/
chmod g+w %{TZ_SYS_RW_DESKTOP_APP}
chmod g+w %{TZ_SYS_RO_DESKTOP_APP}
chown %TZ_SYS_GLOBALAPP_USER:root %{TZ_SYS_RO_DESKTOP_APP}
chown %TZ_SYS_GLOBALAPP_USER:root %{TZ_SYS_RW_APP}
chown %TZ_SYS_GLOBALAPP_USER:root %{TZ_SYS_DB}
+chown %TZ_SYS_GLOBALAPP_USER:root %{TZ_SYS_DB}
+chown %TZ_SYS_GLOBALAPP_USER:root -R %{TZ_SYS_RW_ICONS}
-ail_initdb 2>/dev/null
+ail_createdb 2>/dev/null
+ail_syncdb 2>/dev/null
chsmack -a '*' %{TZ_SYS_DB}/.app_info.db*
%postun
%files
%manifest %{name}.manifest
%license LICENSE
+%attr(06775,root,root) %{_bindir}/ail_createdb
+%attr(0775,root,root) %{_bindir}/ail_createdb_user
+%attr(06775,root,root) %{_bindir}/ail_syncdb
+%attr(0775,root,root) %{_bindir}/ail_syncdb_user
+#obsolete tools
%attr(06775,root,root) %{_bindir}/ail_initdb
%attr(0775,root,root) %{_bindir}/ail_initdb_user
%{_bindir}/ail_fota