diff options
author | Kyuho Jo <kyuho.jo@samsung.com> | 2015-11-10 10:59:35 +0900 |
---|---|---|
committer | Kyuho Jo <kyuho.jo@samsung.com> | 2015-11-10 14:05:10 +0900 |
commit | b6f547ae1bc3a399d08877fe8e998dfaee2aaa6f (patch) | |
tree | 32360d04f3b300ab9cdf3fe21022c8abc1b4287b /packaging | |
parent | f0f6c178c2952ad76c89ce998fc80a3afc305992 (diff) | |
download | notification-b6f547ae1bc3a399d08877fe8e998dfaee2aaa6f.tar.gz notification-b6f547ae1bc3a399d08877fe8e998dfaee2aaa6f.tar.bz2 notification-b6f547ae1bc3a399d08877fe8e998dfaee2aaa6f.zip |
Merge from tizen 2.4 latest.submit/tizen/20151111.080035accepted/tizen/wearable/20151111.232135accepted/tizen/tv/20151111.232118accepted/tizen/mobile/20151111.232111
Change-Id: Ic260bc3ee54201b4572976dfec9c5f6cd808c4ff
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/notification.spec | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/packaging/notification.spec b/packaging/notification.spec index 0863c1c..b1d9447 100644 --- a/packaging/notification.spec +++ b/packaging/notification.spec @@ -1,7 +1,7 @@ %bcond_with wayland Name: notification -Summary: notification library -Version: 0.2.34 +Summary: Notification library +Version: 0.2.41 Release: 1 Group: TBD License: Apache-2.0 @@ -26,11 +26,12 @@ BuildRequires: pkgconfig(edbus) BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(eina) +BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: cmake Requires(post): /sbin/ldconfig -Requires(post): /usr/bin/sqlite3 -requires(postun): /sbin/ldconfig +Requires(post): %{TZ_SYS_BIN}/sqlite3 +Requires(postun): /sbin/ldconfig %description Client/Server library for sending notifications. @@ -70,8 +71,8 @@ make %{?jobs:-j%jobs} rm -rf %{buildroot} %make_install -mkdir -p %{buildroot}/usr/share/license -cp -f LICENSE %{buildroot}/usr/share/license/%{name} +mkdir -p %{buildroot}%{TZ_SYS_SHARE}/license +cp -f LICENSE %{buildroot}%{TZ_SYS_SHARE}/license/%{name} %clean rm -rf %{buildroot} @@ -79,14 +80,14 @@ rm -rf %{buildroot} %post /sbin/ldconfig -if [ ! -d /usr/dbspace ] +if [ ! -d %{TZ_SYS_DB} ] then - mkdir /usr/dbspace + mkdir %{TZ_SYS_DB} fi -if [ ! -f /usr/dbspace/.notification.db ] +if [ ! -f %{TZ_SYS_DB}/.notification.db ] then - sqlite3 /usr/dbspace/.notification.db 'PRAGMA journal_mode = PERSIST; + sqlite3 %{TZ_SYS_DB}/.notification.db 'PRAGMA journal_mode = PERSIST; create table if not exists noti_list ( type INTEGER NOT NULL, layout INTEGER NOT NULL default 0, @@ -133,7 +134,9 @@ then display_applist INTEGER, progress_size DOUBLE default 0, progress_percentage DOUBLE default 0, - rowid INTEGER PRIMARY KEY AUTOINCREMENT, + rowid INTEGER PRIMARY KEY AUTOINCREMENT, + ongoing_flag INTEGER default 0, + auto_remove INTEGER default 1, UNIQUE (caller_pkgname, priv_id) ); create table if not exists noti_group_data ( @@ -191,12 +194,14 @@ then CREATE UNIQUE INDEX package_name_idx1 ON notification_setting (package_name); ' +else + echo %{TZ_SYS_DB}/.notification.db ": DB file is already exists" fi -chown :5000 /usr/dbspace/.notification.db -chown :5000 /usr/dbspace/.notification.db-journal -chmod 644 /usr/dbspace/.notification.db -chmod 644 /usr/dbspace/.notification.db-journal +chown :5000 %{TZ_SYS_DB}/.notification.db +chown :5000 %{TZ_SYS_DB}/.notification.db-journal +chmod 644 %{TZ_SYS_DB}/.notification.db +chmod 644 %{TZ_SYS_DB}/.notification.db-journal %postun -p /sbin/ldconfig @@ -204,7 +209,7 @@ chmod 644 /usr/dbspace/.notification.db-journal %manifest notification.manifest %defattr(-,root,root,-) %{_libdir}/libnotification.so* -/usr/share/license/%{name} +%{TZ_SYS_SHARE}/license/%{name} %files devel %defattr(-,root,root,-) |