%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} \
- -DTIZEN_MAJOR_VER=%{tizen_version_major} \
- -DTIZEN_MINOR_VER=%{tizen_version_minor} \
- -DTIZEN_PATCH_VER=%{tizen_version_patch} \
- -DUNITDIR=%{_unitdir}
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DUNITDIR=%{_unitdir}
%__make %{?jobs:-j%jobs}
static const char query_raw[] = "PRAGMA user_version=";
char query[BUFSIZE];
int ret;
- int version;
- version = atoi(TIZEN_MAJOR_VER) * 10000 + atoi(TIZEN_MINOR_VER) * 100 +
- atoi(TIZEN_PATCH_VER);
- snprintf(query, sizeof(query), "%s%d", query_raw, version);
+ snprintf(query, sizeof(query), "%s%d", query_raw, PKG_DB_VERSION);
ret = sqlite3_exec(db, query, NULL, NULL, NULL);
if (ret != SQLITE_OK) {
#ifndef __PKGMGR_PARSER_DB_QUERIES_H__
#define __PKGMGR_PARSER_DB_QUERIES_H__
+#define PKG_DB_VERSION 30001
+
#define QUERY_CREATE_TABLE_PACKAGE_INFO \
"CREATE TABLE IF NOT EXISTS package_info (\n" \
" package TEXT PRIMARY KEY NOT NULL,\n" \