bluetooth_notification_client_LDADD = $(TIZEN_LIBS)
SCRIPT_IN_FILES = \
- notifications.service.in \
- notifications.socket.in
+ notifications.service.in
install-data-hook:
- $(mkinstalldirs) $(DESTDIR)/usr/lib/systemd/system/sockets.target.wants
+ $(mkinstalldirs) $(DESTDIR)/usr/lib/systemd/system/
install -m 0644 notifications.service $(DESTDIR)/usr/lib/systemd/system/notifications.service
- install -m 0644 notifications.socket $(DESTDIR)/usr/lib/systemd/system/notifications.socket
- ln -fs ../notifications.socket $(DESTDIR)/usr/lib/systemd/system/sockets.target.wants/notifications.socket
-
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(com-core)
BuildRequires: pkgconfig(notification)
-BuildRequires: dbus-devel
+BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
-BuildRequires: bluetooth-frwk-devel
-BuildRequires: bundle-devel
+BuildRequires: pkgconfig(bluetooth-api)
+BuildRequires: pkgconfig(bundle)
+%{?systemd_requires}
%description
Headless notification service that collects incoming notifications from the
%prep
%setup -q -n %{name}-%{version}
-%define PREFIX %{_prefix}/apps/
-
%build
%autogen
make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
%make_install
+%install_service graphical.target.wants notifications.service
+
+%post
+%systemd_post notifications.service
+
+%preun
+%systemd_preun notifications.service
+
+%postun
+%systemd_postun notifications.service
%files
%defattr(-,root,root,-)
%{_bindir}/notification-service
-%{_libdir}/systemd/system/notifications.service
-%{_libdir}/systemd/system/notifications.socket
-%{_libdir}/systemd/system/sockets.target.wants/notifications.socket
+%{_unitdir}/notifications.service
+%{_unitdir}/graphical.target.wants/notifications.service
%files test
%defattr(-,root,root,-)