From: Hoseon LEE Date: Mon, 14 Oct 2013 10:49:09 +0000 (+0900) Subject: Merge remote-tracking branch 'rsa/tizen_2.2' into tizen X-Git-Tag: accepted/tizen/20131014.132013^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbec08fe45b6a104ed45c3dcf1294ff96aa92973;p=platform%2Fframework%2Fweb%2Fwrt-commons.git Merge remote-tracking branch 'rsa/tizen_2.2' into tizen Conflicts: packaging/wrt-commons.spec --- dbec08fe45b6a104ed45c3dcf1294ff96aa92973 diff --cc packaging/wrt-commons.spec index f958838,21c4827..e8ae047 --- a/packaging/wrt-commons.spec +++ b/packaging/wrt-commons.spec @@@ -1,11 -1,12 +1,11 @@@ -#git:framework/web/wrt-commons Name: wrt-commons Summary: Wrt common library - Version: 0.2.153 + Version: 0.2.157 Release: 1 -Group: Development/Libraries -License: Apache License, Version 2.0 -URL: N/A +Group: System/Libraries +License: Apache-2.0 Source0: %{name}-%{version}.tar.gz +Source1001: wrt-commons.manifest BuildRequires: cmake BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(appcore-efl) @@@ -77,24 -79,30 +77,30 @@@ mkdir -p /opt/share/widget/syste mkdir -p /opt/share/widget/user mkdir -p /opt/share/widget/exec mkdir -p /opt/share/widget/data/Public -mkdir -p /usr/lib/wrt-plugins +mkdir -p %{_libdir}/wrt-plugins - if [ -z ${2} ]; then - echo "This is new install of wrt-commons" - echo "Calling /usr/bin/wrt_commons_create_clean_db.sh" - /usr/bin/wrt_commons_create_clean_db.sh - else - # Find out old and new version of databases - WRT_OLD_DB_VERSION=`sqlite3 /opt/dbspace/.wrt.db ".tables" | grep "DB_VERSION_"` - WRT_NEW_DB_VERSION=`cat /usr/share/wrt-engine/wrt_db.sql | tr '[:blank:]' '\n' | grep DB_VERSION_` - echo "OLD wrt database version ${WRT_OLD_DB_VERSION}" - echo "NEW wrt database version ${WRT_NEW_DB_VERSION}" - - if [ ${WRT_OLD_DB_VERSION} -a ${WRT_NEW_DB_VERSION} ] - then - if [ ${WRT_NEW_DB_VERSION} = ${WRT_OLD_DB_VERSION} ] + #Don't reset DB when install on QEMU (during other packages building witch GBS) + if [ -z "$EMULATOR_ARCHS" ]; then + if [ -z ${2} ]; then + echo "This is new install of wrt-commons" + echo "Calling /usr/bin/wrt_commons_reset_db.sh" + /usr/bin/wrt_commons_reset_db.sh + else + # Find out old and new version of databases + WRT_OLD_DB_VERSION=`sqlite3 /opt/dbspace/.wrt.db ".tables" | grep "DB_VERSION_"` + WRT_NEW_DB_VERSION=`cat /usr/share/wrt-engine/wrt_db.sql | tr '[:blank:]' '\n' | grep DB_VERSION_` + echo "OLD wrt database version ${WRT_OLD_DB_VERSION}" + echo "NEW wrt database version ${WRT_NEW_DB_VERSION}" + + if [ ${WRT_OLD_DB_VERSION} -a ${WRT_NEW_DB_VERSION} ] then - echo "Equal database detected so db installation ignored" + if [ ${WRT_NEW_DB_VERSION} = ${WRT_OLD_DB_VERSION} ] + then + echo "Equal database detected so db installation ignored" + else + echo "Calling /usr/bin/wrt_commons_reset_db.sh" + /usr/bin/wrt_commons_reset_db.sh + fi else echo "Calling /usr/bin/wrt_commons_reset_db.sh" /usr/bin/wrt_commons_reset_db.sh