File xfce4-notifyd.spec of Package xfce4-notifyd

#
# spec file for package xfce4-notifyd
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           xfce4-notifyd
Version:        0.2.1
Release:        4.<RELEASE3>
License:        GPLv2+
Summary:        Simple notification daemon for Xfce
Url:            http://spuriousinterrupt.org/projects/xfce4-notifyd
Group:          System/Daemons
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.xml
BuildRequires:  intltool
BuildRequires:  pkgconfig(libsexy)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(libxfce4ui-1)
BuildRequires:  pkgconfig(libxfconf-0)
BuildRequires:  update-desktop-files
%if 0%{?suse_version} < 1140
Requires:       libnotify
%else
Requires:       libnotify-tools
%endif
Requires:       xfce4-notifyd-branding >= %{version}
Provides:       notification-daemon-xfce = %{version}
Obsoletes:      notification-daemon-xfce < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Xfce4-notifyd is a simple, visually-appealing notification daemon for
Xfce that implements the Freedesktop.org Desktop Notifications
Specification.

%package branding-upstream
License:        GPLv2+
Summary:        Upstream branding of xfce4-notifyd
Group:          System/GUI/XFCE
# BRAND: xfce4-notifyd.xml: Controls the appearance of notifications.
Conflicts:      otherproviders(xfce4-notifyd-branding)
Provides:       xfce4-notifyd-branding = %{version}
Supplements:    packageand(xfce4-notifyd:branding-upstream)
BuildArch:      noarch

%description branding-upstream
This package provides the upstream look and feel for the Xfce Notification Daemon.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags} V=1

%install
%make_install
install -D -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml
%suse_update_desktop_file -i xfce4-notifyd-config
%find_lang %{name}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/xfce4-notifyd-config
%{_datadir}/applications/xfce4-notifyd-config.desktop
%{_datadir}/dbus-1/services/org.freedesktop.Notifications.service
%{_datadir}/icons/hicolor/48x48/apps/xfce4-notifyd.png
%dir %{_datadir}/themes/*
%dir %{_datadir}/themes/*/xfce-notify-4.0
%{_datadir}/themes/*/xfce-notify-4.0/gtkrc
# should be libexec, upstream uses libdir
%dir %{_libdir}/xfce4
%dir %{_libdir}/xfce4/notifyd
%{_libdir}/xfce4/notifyd/xfce4-notifyd
%doc %{_mandir}/man1/*

%files branding-upstream
%defattr(-,root,root)
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml

%changelog
openSUSE Build Service is sponsored by