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 led_on_ms INTEGER default -1,
93 led_off_ms INTEGER default -1,
94 flags_for_property INTEGER default 0,
95 flag_simmode INTEGER default 0,
96 display_applist INTEGER,
97 progress_size DOUBLE default 0,
98 progress_percentage DOUBLE default 0,
99 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
100 UNIQUE (caller_pkgname, priv_id)
102 create table if not exists noti_group_data (
103 caller_pkgname TEXT NOT NULL,
104 group_id INTEGER default 0,
105 badge INTEGER default 0,
110 count_display_title INTEGER,
111 count_display_content INTEGER,
112 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
113 UNIQUE (caller_pkgname, group_id)
115 create table if not exists ongoing_list (
116 caller_pkgname TEXT NOT NULL,
119 group_id INTEGER default 0,
120 internal_group_id INTEGER default 0,
121 priv_id INTERGER NOT NULL,
124 default_content TEXT,
127 loc_default_content TEXT,
132 flag INTEGER default 0,
133 progress_size DOUBLE default 0,
134 progress_percentage DOUBLE default 0,
135 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
136 UNIQUE (caller_pkgname, priv_id)
141 chown :5000 /opt/dbspace/.notification.db
142 chown :5000 /opt/dbspace/.notification.db-journal
143 chmod 660 /opt/dbspace/.notification.db
144 chmod 660 /opt/dbspace/.notification.db-journal
145 chsmack -a 'notification::db' /opt/dbspace/.notification.db*
146 vconftool set -t string memory/private/libstatus/message "" -i -g 5000 -f
148 %postun -p /sbin/ldconfig
151 %manifest notification.manifest
152 %defattr(-,root,root,-)
153 %{_libdir}/libnotification.so*
154 /usr/share/license/%{name}
157 %defattr(-,root,root,-)
158 %{_includedir}/notification/*.h
159 %{_libdir}/pkgconfig/notification.pc