3 Summary: notification library
8 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: pkgconfig(sqlite3)
10 BuildRequires: pkgconfig(db-util)
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)
20 BuildRequires: pkgconfig(appcore-common)
21 BuildRequires: pkgconfig(capi-appfw-application)
22 BuildRequires: pkgconfig(capi-appfw-app-manager)
23 BuildRequires: pkgconfig(capi-appfw-package-manager)
24 BuildRequires: pkgconfig(pkgmgr-info)
25 BuildRequires: pkgconfig(edbus)
26 BuildRequires: pkgconfig(elementary)
27 BuildRequires: pkgconfig(ecore)
28 BuildRequires: pkgconfig(eina)
31 Requires(post): /sbin/ldconfig
32 Requires(post): /usr/bin/sqlite3
33 requires(postun): /sbin/ldconfig
36 Client/Server library for sending notifications.
42 Summary: Notification library (devel)
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Development files needed to build software that needs to system a system notification.
50 %if 0%{?tizen_build_binary_release_type_eng}
51 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
52 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
53 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
55 %if 0%{?sec_build_binary_debug_enable}
56 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
57 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
58 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
60 export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
63 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DHAVE_WAYLAND=On
65 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DHAVE_X11=On
73 mkdir -p %{buildroot}/usr/share/license
74 cp -f LICENSE %{buildroot}/usr/share/license/%{name}
82 if [ ! -d /usr/dbspace ]
87 if [ ! -f /usr/dbspace/.notification.db ]
89 sqlite3 /usr/dbspace/.notification.db 'PRAGMA journal_mode = PERSIST;
90 create table if not exists noti_list (
91 type INTEGER NOT NULL,
92 layout INTEGER NOT NULL default 0,
93 caller_pkgname TEXT NOT NULL,
96 group_id INTEGER default 0,
97 internal_group_id INTEGER default 0,
98 priv_id INTERGER NOT NULL,
104 num_format_args INTEGER default 0,
107 time INTEGER default 0,
108 insert_time INTEGER default 0,
111 b_execute_option TEXT,
112 b_service_responding TEXT,
113 b_service_single_launch TEXT,
114 b_service_multi_launch TEXT,
115 b_event_handler_click_on_button_1 TEXT,
116 b_event_handler_click_on_button_2 TEXT,
117 b_event_handler_click_on_button_3 TEXT,
118 b_event_handler_click_on_button_4 TEXT,
119 b_event_handler_click_on_button_5 TEXT,
120 b_event_handler_click_on_button_6 TEXT,
121 b_event_handler_click_on_icon TEXT,
122 b_event_handler_click_on_thumbnail TEXT,
123 sound_type INTEGER default 0,
125 vibration_type INTEGER default 0,
127 led_operation INTEGER default 0,
128 led_argb INTEGER default 0,
129 led_on_ms INTEGER default -1,
130 led_off_ms INTEGER default -1,
131 flags_for_property INTEGER default 0,
132 flag_simmode INTEGER default 0,
133 display_applist INTEGER,
134 progress_size DOUBLE default 0,
135 progress_percentage DOUBLE default 0,
136 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
137 UNIQUE (caller_pkgname, priv_id)
139 create table if not exists noti_group_data (
140 caller_pkgname TEXT NOT NULL,
141 group_id INTEGER default 0,
142 badge INTEGER default 0,
147 count_display_title INTEGER,
148 count_display_content INTEGER,
149 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
150 UNIQUE (caller_pkgname, group_id)
152 create table if not exists ongoing_list (
153 caller_pkgname TEXT NOT NULL,
156 group_id INTEGER default 0,
157 internal_group_id INTEGER default 0,
158 priv_id INTERGER NOT NULL,
161 default_content TEXT,
164 loc_default_content TEXT,
169 flag INTEGER default 0,
170 progress_size DOUBLE default 0,
171 progress_percentage DOUBLE default 0,
172 rowid INTEGER PRIMARY KEY AUTOINCREMENT,
173 UNIQUE (caller_pkgname, priv_id)
175 CREATE TABLE IF NOT EXISTS notification_setting (
176 priv_id INTEGER PRIMARY KEY AUTOINCREMENT,
177 package_name TEXT NOT NULL,
178 allow_to_notify INTEGER DEFAULT 1,
179 do_not_disturb_except INTEGER DEFAULT 0,
180 visibility_class INTEGER DEFAULT 0,
181 UNIQUE (priv_id, package_name)
183 CREATE TABLE IF NOT EXISTS notification_system_setting (
184 priv_id INTERGER PRIMARY KEY,
185 do_not_disturb INTEGER DEFAULT 0,
186 visibility_class INTEGER DEFAULT 0,
190 INSERT INTO notification_system_setting (priv_id, do_not_disturb, visibility_class) VALUES (0, 0, 0);
192 CREATE UNIQUE INDEX package_name_idx1 ON notification_setting (package_name);
196 chown :5000 /usr/dbspace/.notification.db
197 chown :5000 /usr/dbspace/.notification.db-journal
198 chmod 644 /usr/dbspace/.notification.db
199 chmod 644 /usr/dbspace/.notification.db-journal
201 %postun -p /sbin/ldconfig
204 %manifest notification.manifest
205 %defattr(-,root,root,-)
206 %{_libdir}/libnotification.so*
207 /usr/share/license/%{name}
210 %defattr(-,root,root,-)
211 %{_includedir}/notification/notification.h
212 %{_includedir}/notification/notification_internal.h
213 %{_includedir}/notification/notification_error.h
214 %{_includedir}/notification/notification_type.h
215 %{_includedir}/notification/notification_list.h
216 %{_includedir}/notification/notification_ongoing_flag.h
217 %{_includedir}/notification/notification_text_domain.h
218 %{_includedir}/notification/notification_status.h
219 %{_includedir}/notification/notification_status_internal.h
220 %{_includedir}/notification/notification_setting.h
221 %{_includedir}/notification/notification_setting_internal.h
222 %{_includedir}/notification/notification_ipc.h
223 %{_includedir}/notification/notification_noti.h
224 %{_includedir}/notification/notification_setting_service.h
225 %{_libdir}/pkgconfig/notification.pc