Blob Blame History Raw
Name:           nall
Version:        1.0
Release:        3%{?dist}
Summary:        A simple, non-intrusive, everything notifier in the system tray
Group:          Applications/System
License:        GPLv2+
URL:            http://herewe.servebeer.com/nall/
Source0:        http://herewe.servebeer.com/nall/releases/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  libnotify-devel gtk2-devel intltool
BuildRequires:  desktop-file-utils

%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

%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
* Fri Apr 09 2010 Christian Krause <chkr@fedoraproject.org> - 1.0-3
- Use %%{_bindir}/%%{name} to specify packaged executable

* Thu Apr 08 2010 Christian Krause <chkr@fedoraproject.org> - 1.0-2
- Use desktop-file-validate and add appropriate BuildRequires
- Don't package standard INSTALL file
- Minor beautifications

* Wed Apr 07 2010 Christian Krause <chkr@fedoraproject.org> - 1.0-1
- Initial spec file