3 Summary: Notification library
6 Group: Applications/Core Applications
8 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: pkgconfig(sqlite3)
10 BuildRequires: pkgconfig(vconf)
11 BuildRequires: pkgconfig(bundle)
12 BuildRequires: pkgconfig(dbus-1)
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(aul)
15 BuildRequires: pkgconfig(capi-appfw-app-control)
16 BuildRequires: pkgconfig(capi-appfw-app-common)
17 BuildRequires: pkgconfig(capi-appfw-package-manager)
18 BuildRequires: pkgconfig(pkgmgr-info)
19 BuildRequires: pkgconfig(libtzplatform-config)
20 BuildRequires: pkgconfig(glib-2.0)
21 BuildRequires: pkgconfig(iniparser)
22 BuildRequires: pkgconfig(security-manager)
23 BuildRequires: pkgconfig(libsmack)
24 BuildRequires: pkgconfig(gmock)
25 BuildRequires: pkgconfig(uuid)
28 Requires(post): /sbin/ldconfig
29 Requires(post): %{TZ_SYS_BIN}/sqlite3
30 Requires(postun): /sbin/ldconfig
32 %define upgrade_script_path /usr/share/upgrade/scripts
35 Client/Server library for sending notifications.
39 Summary: Notification API(gcov)
40 Group: Applications/Core Applications
43 gcov objects of a notification library
50 Summary: Notification library (devel)
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
55 Development files needed to build software that needs to system a system notification.
59 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
60 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
61 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
62 export LDFLAGS+=" -lgcov"
65 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
67 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
68 -DMAJORVER=${MAJORVER} -DFULLVER=%{version}
69 %__make %{?jobs:-j%jobs}
73 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
77 ctest --output-on-failure %{?_smp_mflags}
84 mkdir -p %{buildroot}%{_datadir}/gcov/obj
85 install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
88 mkdir -p %{buildroot}%{upgrade_script_path}
89 cp -f scripts/505.notification_upgrade.sh %{buildroot}%{upgrade_script_path}
97 if [ ! -d %{TZ_SYS_DB} ]
102 %postun -p /sbin/ldconfig
105 %manifest notification.manifest
106 %defattr(-,root,root,-)
107 %{_libdir}/libnotification.so.*
109 %attr(755,root,root) %{_sysconfdir}/gumd/useradd.d/11_notification-add.post
110 %{_bindir}/notification_init
111 %{upgrade_script_path}/505.notification_upgrade.sh
112 #%{_bindir}/notification-test-app
115 %defattr(-,root,root,-)
116 %{_includedir}/notification/notification.h
117 %{_includedir}/notification/notification_db.h
118 %{_includedir}/notification/notification_internal.h
119 %{_includedir}/notification/notification_error.h
120 %{_includedir}/notification/notification_type.h
121 %{_includedir}/notification/notification_list.h
122 %{_includedir}/notification/notification_ongoing.h
123 %{_includedir}/notification/notification_ongoing_flag.h
124 %{_includedir}/notification/notification_text_domain.h
125 %{_includedir}/notification/notification_status.h
126 %{_includedir}/notification/notification_status_internal.h
127 %{_includedir}/notification/notification_setting.h
128 %{_includedir}/notification/notification_setting_internal.h
129 %{_includedir}/notification/notification_ipc.h
130 %{_includedir}/notification/notification_noti.h
131 %{_includedir}/notification/notification_setting_service.h
132 %{_includedir}/notification/notification_viewer.h
133 %{_includedir}/notification/notification_shared_file.h
134 %{_includedir}/notification/notification_type_internal.h
135 %{_libdir}/pkgconfig/notification.pc
136 %{_libdir}/libnotification.so
140 #################################################
142 #################################################
143 %package -n %{name}-ex
144 Summary: Library for developing the notification
145 Group: Applications/Application Utility
148 %description -n %{name}-ex
149 Provide APIs to develop the notification.
151 %package -n %{name}-ex-devel
152 Summary: Notification development library (dev)
153 Group: Development/Libraries
156 %description -n %{name}-ex-devel
157 Header & package configuration files to support development of the notification.
162 %postun -n %{name}-ex -p /sbin/ldconfig
165 %manifest %{name}-ex.manifest
166 %attr(0644,root,root) %{_libdir}/libnotification-ex.so.*
169 %files -n %{name}-ex-devel
170 %{_includedir}/notification-ex/*
171 %{_libdir}/pkgconfig/notification-ex.pc
172 %attr(0644,root,root) %{_libdir}/libnotification-ex.so
175 #################################################
176 # notification-ex_unittests
177 #################################################
178 %package -n notification-ex_unittests
179 Summary: GTest for notification-ex
180 Group: Development/Libraries
182 %description -n notification-ex_unittests
183 GTest for notification-ex
185 %files -n notification-ex_unittests
186 %{_bindir}/notification-ex_unittests
190 %{_datadir}/gcov/obj/*