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)
21 Requires(post): /sbin/ldconfig
22 Requires(post): /usr/bin/sqlite3
23 requires(postun): /sbin/ldconfig
32 Summary: Notification library (devel)
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 Notificaiton library (devel).
40 export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
41 LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
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 caller_pkgname TEXT NOT NULL,
67 group_id INTEGER default 0,
68 internal_group_id INTEGER default 0,
69 priv_id INTERGER NOT NULL,
74 num_format_args INTEGER default 0,
77 time INTEGER default 0,
78 insert_time INTEGER default 0,
81 b_execute_option TEXT,
82 b_service_responding TEXT,
83 b_service_single_launch TEXT,
84 b_service_multi_launch TEXT,
85 sound_type INTEGER default 0,
87 vibration_type INTEGER default 0,
89 flags_for_property INTEGER default 0,
90 flag_simmode INTEGER default 0,
91 display_applist INTEGER,
92 progress_size DOUBLE default 0,
93 progress_percentage DOUBLE default 0,
94 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
95 UNIQUE (caller_pkgname, priv_id)
97 create table if not exists noti_group_data (
98 caller_pkgname TEXT NOT NULL,
99 group_id INTEGER default 0,
100 badge INTEGER default 0,
105 count_display_title INTEGER,
106 count_display_content INTEGER,
107 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
108 UNIQUE (caller_pkgname, group_id)
110 create table if not exists ongoing_list (
111 caller_pkgname TEXT NOT NULL,
114 group_id INTEGER default 0,
115 internal_group_id INTEGER default 0,
116 priv_id INTERGER NOT NULL,
119 default_content TEXT,
122 loc_default_content TEXT,
127 flag INTEGER default 0,
128 progress_size DOUBLE default 0,
129 progress_percentage DOUBLE default 0,
130 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
131 UNIQUE (caller_pkgname, priv_id)
136 chown root:5000 /opt/dbspace/.notification.db
137 chown root:5000 /opt/dbspace/.notification.db-journal
138 chmod 660 /opt/dbspace/.notification.db
139 chmod 660 /opt/dbspace/.notification.db-journal
141 %postun -p /sbin/ldconfig
144 %defattr(-,root,root,-)
145 %{_libdir}/libnotification.so*
148 %defattr(-,root,root,-)
149 %{_includedir}/notification/*.h
150 %{_libdir}/pkgconfig/notification.pc