X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fail.spec;h=0f7949cdda7fec5278db342087097cf1f05e7716;hb=57156cbade2260b3e83a2d3146652f7fa658ee83;hp=e12447868c625040c0ab86bafc32cb0f1f78833a;hpb=b52e4c71ffeac2b4ec84c05d990b8b2e13ac07c2;p=platform%2Fcore%2Fappfw%2Fail.git diff --git a/packaging/ail.spec b/packaging/ail.spec index e124478..0f7949c 100755 --- a/packaging/ail.spec +++ b/packaging/ail.spec @@ -24,6 +24,7 @@ Application Information Library package Summary: Application Information Library Development files Requires: libail = %{version}-%{release} Requires: pkgconfig(libtzplatform-config) +Requires: pkgconfig(libsmack) %description devel Application Information Library Development files package @@ -33,7 +34,7 @@ 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" @@ -42,19 +43,22 @@ export FFLAGS="$FFLAGS -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} %install %make_install -mkdir -p %{buildroot}%{TZ_SYS_DB}/ -mkdir -p %{buildroot}%{TZ_SYS_RW_DESKTOP_APP}/ - %post -/sbin/ldconfig +ldconfig +# Create tizenglobalapp user needed for global installation +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/ +#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 @@ -65,32 +69,32 @@ 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 -CHDBGID="6010" - -update_DAC_for_db_file() -{ - if [ ! -f $@ ]; then - touch $@ - fi - - chown :$CHDBGID $@ 2>/dev/null - if [ $? -ne 0 ]; then - echo "Failed to change the owner of $@" - fi - chmod 664 $@ 2>/dev/null - if [ $? -ne 0 ]; then - echo "Failed to change the perms of $@" - fi -} -ail_initdb 2>/dev/null 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} - -update_DAC_for_db_file %{TZ_SYS_DB}/.app_info.db -update_DAC_for_db_file %{TZ_SYS_DB}/.app_info.db-journal -chsmack -a 'User' %{TZ_SYS_DB}/.app_info.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_RW_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_createdb 2>/dev/null +chsmack -a '*' %{TZ_SYS_DB}/.app_info.db* + %postun /sbin/ldconfig if [ $1 == 0 ]; then @@ -100,9 +104,13 @@ fi %files %manifest %{name}.manifest %license LICENSE -%dir %{TZ_SYS_RW_DESKTOP_APP} -%{_bindir}/ail_initdb -%{_bindir}/ail_initdb +%attr(06775,root,root) %{_bindir}/ail_createdb +%attr(06775,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 %{_bindir}/ail_desktop %{_bindir}/ail_filter