File nall.spec of Package nall
Name: nall
Version: 1.0
Release: 5%{?dist}
Summary: A simple, non-intrusive, everything notifier in the system tray
%if 0%{?suse_version}
Group: System/Monitoring
%else
Group: Applications/System
%endif
License: GPL-2+
URL: http://herewe.servebeer.com/nall/
Source0: http://herewe.servebeer.com/nall/releases/%{name}-%{version}.tar.gz
Patch0: nall-1.0-libnotify.patch
Patch1: nall-1.0-desktop.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libnotify-devel gtk2-devel intltool
BuildRequires: desktop-file-utils
%if 0%{?suse_version}
BuildRequires: automake
%else
BuildRequires: kdebase-runtime samba4-libs
%endif
%description
Nall is a small gtk+ application that discretely fits into your freedesktop
system tray (such as trayer).
Its purpose is to spawn periodically every kind of script and display a
one-line output in the tooltip window. The main usage of nall is monitoring or
just notifying of almost everything (it just depends upon your imagination and
ability to script).
%prep
%setup -q
%if 0%{?suse_version} > 1140 || 0%{?fedora_version} > 14
%patch0 -p1 -b libnotify
%endif
%patch1 -p1
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name} _examples
find _examples/ -type f -exec chmod a-x {} \;
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING NEWS README AUTHORS
%doc _examples/examples
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/pixmaps/*
%changelog
* Wed Jan 04 2012 Stefan Jakobs <stefan.jakobs@rus.uni-stuttgart.de> - 1.0
- initial build