3a8f4ea
# Review: https://bugzilla.redhat.com/show_bug.cgi?id=499282
3a8f4ea
98c1932
%global minorversion 0.1
5b3d742
ca659c3
Name:           xfce4-notifyd
98c1932
Version:        0.1.1
5b3d742
Release:        1%{?dist}
ca659c3
Summary:        Simple notification daemon for Xfce
ca659c3
ca659c3
Group:          User Interface/Desktops
ca659c3
License:        GPLv2
5b3d742
URL:            http://goodies.xfce.org/projects/applications/xfce4-notifyd
5b3d742
Source0:        http://archive.xfce.org/src/apps/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
98c1932
Patch0:         xfce4-notifyd-0.1.1-dbus-service-name.patch
ca659c3
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ca659c3
98c1932
BuildRequires:  gtk2-devel >= 2.10.0
98c1932
BuildRequires:  libxfcegui4-devel >= 4.5.90
ca659c3
BuildRequires:  xfconf-devel >= 4.5.90
ca659c3
BuildRequires:  dbus-glib-devel >= 0.72
ca659c3
BuildRequires:  libglade2-devel >= 2.6.0
ca659c3
BuildRequires:  desktop-file-utils
ca659c3
BuildRequires:  intltool
ca659c3
Requires:       dbus
ca659c3
Requires:       hicolor-icon-theme
d78bce5
# for compatibility this package provides
ca659c3
Provides:       desktop-notification-daemon
ca659c3
# and obsoletes all notification-daemon-xfce releases
ca659c3
Obsoletes:      notification-daemon-xfce <= 0.3.7
ca659c3
ca659c3
ca659c3
%description
ca659c3
Xfce4-notifyd is a simple, visually-appealing notification daemon for Xfce 
ca659c3
that implements the freedesktop.org desktop notifications specification.
ca659c3
Features:
ca659c3
* Themable using the GTK+ theming mechanism
ca659c3
* Visually appealing: rounded corners, shaped windows
ca659c3
* Supports transparency and fade effects
ca659c3
ca659c3
ca659c3
%prep
ca659c3
%setup -q
d78bce5
%patch0 -p1 -b .dbus-service-name
5b3d742
ca659c3
ca659c3
%build
ca659c3
%configure
ca659c3
make %{?_smp_mflags}
ca659c3
ca659c3
ca659c3
%install
ca659c3
rm -rf $RPM_BUILD_ROOT
ca659c3
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
ca659c3
desktop-file-install                                            \
ca659c3
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
ca659c3
        --add-only-show-in=XFCE                                 \
ca659c3
        --delete-original                                       \
ca659c3
        ${RPM_BUILD_ROOT}%{_datadir}/applications/xfce4-notifyd-config.desktop
ca659c3
%find_lang %{name}
ca659c3
ca659c3
ca659c3
%post
ca659c3
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
ca659c3
ca659c3
ca659c3
%postun
ca659c3
if [ $1 -eq 0 ] ; then
ca659c3
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
ca659c3
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
ca659c3
fi
ca659c3
ca659c3
ca659c3
%posttrans
ca659c3
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
ca659c3
ca659c3
ca659c3
ca659c3
%clean
ca659c3
rm -rf $RPM_BUILD_ROOT
ca659c3
ca659c3
ca659c3
%files -f %{name}.lang
ca659c3
%defattr(-,root,root,-)
ca659c3
%doc AUTHORS ChangeLog COPYING NEWS README TODO
ca659c3
%{_bindir}/xfce4-notifyd-config
98c1932
%{_libexecdir}/xfce4-notifyd
ca659c3
%{_datadir}/applications/xfce4-notifyd-config.desktop
5b3d742
%{_datadir}/dbus-1/services/org.xfce.Notifications.service
ca659c3
%{_datadir}/icons/hicolor/48x48/apps/xfce4-notifyd.png
ca659c3
%{_datadir}/themes/Default/xfce-notify-4.0/
ca659c3
%{_datadir}/themes/Smoke/
ca659c3
%{_datadir}/themes/ZOMG-PONIES!/
ca659c3
ca659c3
ca659c3
%changelog
98c1932
* Wed Feb 02 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.1-1
98c1932
- Update to 0.1.1
5b3d742
374a85b
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-3
374a85b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
374a85b
d78bce5
* Mon Feb 23 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.0-2
d78bce5
- Patch to rename dbus-service file to avoid conflict with notification-daemon
c553d5c
- Add Debian's patch support the reason arg in libnotify 0.4.5
d78bce5
ca659c3
* Mon Feb 23 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.0-1
ca659c3
- Initial Fedora Package