Name: torsmo
Version: 0.18
Release: alt2
Summary: Torsmo is a system monitor like gkrellm, but lightweight

Source0: %name-%version.tar.gz
Patch0: torsmo-0.18-alt-makefile.patch
URL: http://torsmo.sourceforge.net/
Group: Monitoring
License: BSD

Packager: Ilya Mashkin <oddity at altlinux dot ru>

# Automatically added by buildreq on Tue Feb 01 2005
BuildRequires: xorg-x11-devel


%description
Torsmo is a system monitor that sits in the corner of your desktop. It's very
simple, customizable and it renders only text on the desktop (and
percentagebars if you want it to ;) and the only lib it uses is Xlib.
Torsmo can show various information about your system and it's peripherals.

%prep

%setup -q
%patch0 -p1

%build

autoreconf -fisv
%configure --x-libraries=%_libdir

%make

%install


%makeinstall BINDIR=$RPM_BUILD_ROOT%_bindir

mkdir -p %buildroot/%_menudir
cat << EOF > %buildroot/%_menudir/%name
?package(torsmo):needs="x11" \
section="Applications/Monitoring" \
title="Torsmo" command="%_bindir/torsmo -d" \
longtitle="Torsmo is a lightweight system monitor" 
EOF


%post
%update_menus

%postun
%clean_menus

%files
%doc AUTHORS COPYING README torsmorc.sample ChangeLog
%_man1dir/torsmo.1*
%_bindir/torsmo
%_menudir/*

%changelog
* Fri Mar 04 2005 Ilya Mashkin  <oddity at altlinux dot ru> 0.18-alt2
- fixed menu (#6148)

* Tue Feb 01 2005 Ilya Mashkin  <oddity at altlinux dot ru> 0.18-alt1
- Initial build for ALT Linux
