2 Summary: notification library
7 Source0: %{name}-%{version}.tar.gz
8 BuildRequires: pkgconfig(sqlite3)
9 BuildRequires: pkgconfig(db-util)
10 BuildRequires: pkgconfig(heynoti)
11 BuildRequires: pkgconfig(vconf)
12 BuildRequires: pkgconfig(bundle)
13 BuildRequires: pkgconfig(dbus-1)
14 BuildRequires: pkgconfig(dlog)
15 BuildRequires: pkgconfig(ail)
16 BuildRequires: pkgconfig(aul)
17 BuildRequires: pkgconfig(appsvc)
18 BuildRequires: pkgconfig(dbus-glib-1)
19 BuildRequires: pkgconfig(com-core)
22 Requires(post): /sbin/ldconfig
23 Requires(post): /usr/bin/sqlite3
24 Requires(postun): /sbin/ldconfig
33 Summary: Notification library (devel)
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
38 Notificaiton library (devel).
41 export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--as-needed"
48 mkdir -p %{buildroot}/usr/share/license
49 cp -f LICENSE.APLv2.0 %{buildroot}/usr/share/license/%{name}
54 if [ ! -d /opt/dbspace ]
59 if [ ! -f /opt/dbspace/.notification.db ]
61 sqlite3 /opt/dbspace/.notification.db 'PRAGMA journal_mode = PERSIST;
62 create table if not exists noti_list (
63 type INTEGER NOT NULL,
64 layout INTEGER NOT NULL default 0,
65 caller_pkgname TEXT NOT NULL,
68 group_id INTEGER default 0,
69 internal_group_id INTEGER default 0,
70 priv_id INTERGER NOT NULL,
75 num_format_args INTEGER default 0,
78 time INTEGER default 0,
79 insert_time INTEGER default 0,
82 b_execute_option TEXT,
83 b_service_responding TEXT,
84 b_service_single_launch TEXT,
85 b_service_multi_launch TEXT,
86 sound_type INTEGER default 0,
88 vibration_type INTEGER default 0,
90 led_operation INTEGER default 0,
91 led_argb INTEGER default 0,
92 flags_for_property INTEGER default 0,
93 flag_simmode INTEGER default 0,
94 display_applist INTEGER,
95 progress_size DOUBLE default 0,
96 progress_percentage DOUBLE default 0,
97 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
98 UNIQUE (caller_pkgname, priv_id)
100 create table if not exists noti_group_data (
101 caller_pkgname TEXT NOT NULL,
102 group_id INTEGER default 0,
103 badge INTEGER default 0,
108 count_display_title INTEGER,
109 count_display_content INTEGER,
110 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
111 UNIQUE (caller_pkgname, group_id)
113 create table if not exists ongoing_list (
114 caller_pkgname TEXT NOT NULL,
117 group_id INTEGER default 0,
118 internal_group_id INTEGER default 0,
119 priv_id INTERGER NOT NULL,
122 default_content TEXT,
125 loc_default_content TEXT,
130 flag INTEGER default 0,
131 progress_size DOUBLE default 0,
132 progress_percentage DOUBLE default 0,
133 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
134 UNIQUE (caller_pkgname, priv_id)
139 chown :5000 /opt/dbspace/.notification.db
140 chown :5000 /opt/dbspace/.notification.db-journal
141 chmod 660 /opt/dbspace/.notification.db
142 chmod 660 /opt/dbspace/.notification.db-journal
143 chsmack -a 'notification::db' /opt/dbspace/.notification.db*
144 vconftool set -t string memory/private/libstatus/message "" -i -g 5000
146 %postun -p /sbin/ldconfig
149 %manifest notification.manifest
150 %defattr(-,root,root,-)
151 %{_libdir}/libnotification.so*
152 /usr/share/license/%{name}
155 %defattr(-,root,root,-)
156 %{_includedir}/notification/*.h
157 %{_libdir}/pkgconfig/notification.pc