File whowatch.spec of Package whowatch

# vim: set sw=4 ts=4 et nu:

Name:               whowatch
Version:            1.4
Release:            0
Summary:            User Activity Real-Time Monitoring
Source:             http://www.pttk.ae.krakow.pl/~mike/download/whowatch-%{version}.tar.gz
Patch1:             whowatch-fix_missing_includes.patch
Patch2:             whowatch-fix_updatescr_prototype.patch
Patch3:             whowatch-fix_bogus_cast.patch
Patch4:             whowatch-destdir.patch
URL:                http://www.pttk.ae.krakow.pl/~mike/#whowatch
Group:              System/Monitoring
License:            GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildRequires:      ncurses-devel
BuildRequires:      gcc make glibc-devel pkgconfig
BuildRequires:      autoconf automake libtool

%description
Whowatch is an interactive who-like program that displays information about the
users currently logged on to the machine, in real time. Besides standard
informations (login name, tty, host, user's process), the type of the
connection (ie. telnet or ssh) is shown. You can toggle display between users'
command or idle time. You can watch processes tree, navigate in it and send INT
and KILL signals.

%prep
%setup -q
%patch1
%patch2
%patch3
%patch4

%build
%configure
%__make %{?_smp_flags}

%install
%makeinstall

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog KEYS NEWS README TODO
%{_bindir}/whowatch
%doc %{_mandir}/man1/whowatch.1*