%define url_ver %(echo %{version}|cut -d. -f1,2) Summary: Notification daemon for MATE Desktop Name: mate-notification-daemon Version: 1.8.1 Release: %mkrel 2 License: GPLv2+ Group: System/Servers URL: http://mate-desktop.org/ Source0: http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz Patch0: mate-notification-daemon-1.8.1-no-exit-on-idle.patch BuildRequires: mate-common BuildRequires: mate-desktop-devel BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(libcanberra-gtk) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libwnck-1.0) Requires: libnotify Provides: virtual-notification-daemon Recommends: notification-daemon-engine-nodoka %description A daemon that displays passive pop-up notifications as per the Desktop Notifications spec (http://galago.info/specs/notification/index.php). %prep %autosetup -p1 %build %configure2_5x \ --disable-static \ --disable-schemas-compile \ --with-gtk=2.0 %make %install %makeinstall_std # We don't need these rm -f %{buildroot}%{_libdir}/mate-notification-daemon/engines/*.la rm -fr %{buildroot}%{_datadir}/MateConf # Do not install the DBus service file because multiple programs # can provide org.freedesktop.Notifications (e.g. gnome-shell, # GNOME notification-daemon, Ubuntu notify-osd, XFCE notifyd) # but only one can run at a given time. The supported solution is # for none of them to register for DBus autostart, but leave the # session manager to launch the service provider for the given desktop. # # See: https://bugzilla.redhat.com/show_bug.cgi?id=484945#c33 rm -rf %{buildroot}%{_datadir}/dbus-1/services/org.freedesktop.mate.Notifications.service # Autostart mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart cat << EOF > %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop [Desktop Entry] Type=Application Name=Notification daemon for MATE Desktop Exec=%{_libexecdir}/mate-notification-daemon Icon=mate-notification-properties OnlyShowIn=MATE; EOF %find_lang %{name} --with-gnome --all-name %files -f %{name}.lang %doc AUTHORS README %{_sysconfdir}/xdg/autostart/%{name}.desktop %{_bindir}/mate-notification-properties %{_datadir}/applications/mate-notification-properties.desktop %{_datadir}/mate-notification-daemon/mate-notification-properties.ui %{_libexecdir}/mate-notification-daemon %{_datadir}/icons/hicolor/*/apps/mate-notification-properties.* %{_datadir}/glib-2.0/schemas/org.mate.NotificationDaemon.gschema.xml %{_libdir}/mate-notification-daemon %{_mandir}/man1/mate-notification-properties.1.* %changelog * Tue Mar 31 2015 wally <wally> 1.8.1-2.mga5 + Revision: 819452 - drop DBus service file, launch notification daemon via xdg autostart only in MATE and add a patch to keep it running for the entire session (mga#15602, rhbz#484945) * Thu Oct 23 2014 tarakbumba <tarakbumba> 1.8.1-1.mga5 + Revision: 792782 - Update to 1.8.1 version * Wed Oct 15 2014 umeabot <umeabot> 1.8.0-3.mga5 + Revision: 748979 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.8.0-2.mga5 + Revision: 682197 - Mageia 5 Mass Rebuild + tv <tv> - s/uggests:/Recommends:/ * Wed Mar 05 2014 tarakbumba <tarakbumba> 1.8.0-1.mga5 + Revision: 600094 - Updated to version 1.8.0 * Sat Mar 01 2014 tarakbumba <tarakbumba> 1.7.90-1.mga5 + Revision: 598051 - Update to 1.7.x version * Tue Feb 04 2014 wally <wally> 1.6.1-2.mga5 + Revision: 581077 - drop unneeded conflicts for xfce4-notifyd (mga#12480) * Fri Nov 01 2013 tarakbumba <tarakbumba> 1.6.1-1.mga4 + Revision: 548754 - Updated to latest bugfix version * Sat Oct 19 2013 umeabot <umeabot> 1.6.0-2.mga4 + Revision: 531053 - Mageia 4 Mass Rebuild * Fri Jun 14 2013 tarakbumba <tarakbumba> 1.6.0-1.mga4 + Revision: 442927 - imported package mate-notification-daemon