2 # - we could reuse gnome notification daemon if there is added xdg/autostart file with NotShowIn=GNOME:
3 # http://git.gnome.org/browse/notification-daemon/commit/data?id=1ad20d22098bc7718614a8a87744a2c22d5438d0
4 Summary: Notification daemon for MATE Desktop
5 Name: mate-notification-daemon
9 Group: Applications/System
10 Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
11 # Source0-md5: 7df51649d029d187fb2e0dbb8f7ecb4d
12 Patch0: use-libnotify.patch
13 Patch1: use-libwnck.patch
14 URL: http://wiki.mate-desktop.org/mate-notification-daemon
15 BuildRequires: dbus-devel >= 0.78
16 BuildRequires: dbus-glib-devel >= 0.78
17 BuildRequires: desktop-file-utils
18 BuildRequires: glib2-devel >= 1:2.18.0
19 BuildRequires: gtk+2-devel > 2:2.18
20 BuildRequires: intltool >= 0.40.0
21 BuildRequires: libcanberra-devel
22 BuildRequires: libcanberra-gtk-devel >= 0.4
23 BuildRequires: libmatenotify-devel
24 BuildRequires: libwnck-devel
25 BuildRequires: mate-common
26 BuildRequires: mate-doc-utils
27 BuildRequires: tar >= 1:1.22
28 BuildRequires: xorg-lib-libX11-devel
30 Requires: glib2 >= 1:2.26.0
31 Requires: gsettings-desktop-schemas
32 Requires: gtk-update-icon-cache
33 Requires: hicolor-icon-theme
34 Provides: dbus(org.freedesktop.Notifications)
35 Requires(post,postun): /sbin/ldconfig
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 # makefiles and this spec gets confused if %{_libdir} == %{_libexecdir}
39 # so we setup separate --libexecdir=%{_libdir}/mnd
40 %define _libexecdir %{_libdir}/mnd
43 Notification daemon for MATE Desktop.
51 NOCONFIGURE=1 ./autogen.sh
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_libdir}
62 LIBTOOL="%{_bindir}/libtool" \
63 DESTDIR=$RPM_BUILD_ROOT
65 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
66 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-notification-daemon.convert
68 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/engines/lib*.la
70 desktop-file-install \
71 --remove-category="MATE" \
72 --add-category="X-Mate" \
74 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
75 $RPM_BUILD_ROOT%{_desktopdir}/mate-notification-properties.desktop
80 rm -rf $RPM_BUILD_ROOT
84 %update_icon_cache hicolor
89 %update_icon_cache hicolor
92 %files -f %{name}.lang
93 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/mate-notification-properties
96 %{_desktopdir}/mate-notification-properties.desktop
97 %{_datadir}/dbus-1/services/org.freedesktop.mate.Notifications.service
98 %dir %{_datadir}/%{name}
99 %{_datadir}/%{name}/mate-notification-properties.ui
101 %attr(755,root,root) %{_libexecdir}/mate-notification-daemon
102 %{_iconsdir}/hicolor/*/apps/mate-notification-properties.*
103 %{_datadir}/glib-2.0/schemas/org.mate.NotificationDaemon.gschema.xml
104 %dir %{_libdir}/%{name}
105 %dir %{_libdir}/%{name}/engines
106 %attr(755,root,root) %{_libdir}/%{name}/engines/libcoco.so
107 %attr(755,root,root) %{_libdir}/%{name}/engines/libnodoka.so
108 %attr(755,root,root) %{_libdir}/%{name}/engines/libslider.so
109 %attr(755,root,root) %{_libdir}/%{name}/engines/libstandard.so