Name: apachetop
Version: 0.12.5
Release: 3%{?dist}
Summary: A top-like display of Apache logs
Group: Applications/Internet
License: BSD
URL: http://spork.qfe3.net/apachetop
Source0: http://spork.qfe3.net/apachetop/files/apachetop-0.12.5.tar.gz
Patch0: apachetop-0.12.5-CAN-2005-2660.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel, m4, readline-devel
Requires: httpd
%description
ApacheTop watches a logfile generated by Apache (in standard common or
combined logformat, although it doesn't (yet) make use of any of the extra
fields in combined) and generates human-parsable output in realtime.
%prep
%setup -q
%patch0 -p1 -b .CAN-2005-2660
%build
%configure --with-logfile=%{_localstatedir}/log/httpd/access_log
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE ChangeLog README TODO
%{_bindir}/*
%{_mandir}/man[^3]/*
%changelog
* Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.12.5-3
- rebuilt for FC5
* Tue Oct 04 2005 Aurelien Bompard <gauret[AT]free.fr> 0.12.5-2
- add patch for CAN-2005-2660
* Sun May 08 2005 Aurelien Bompard <gauret[AT]free.fr> 0.12.5-1%{?dist}
- version 0.12.5
- drop patch (applied upsteam)
* Thu Nov 11 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 0.12-2
- Fix build for FC3/GCC 3.4.
* Sat May 22 2004 Aurelien Bompard <gauret[AT]free.fr> 0:0.12-0.fdr.1
- Initial RPM release.