Blob Blame History Raw
Name:           apachetop
Version:        0.12
Release:        2
Summary:        Top-like display of Apache logs

Group:          Applications/Internet
License:        BSD
URL:            http://clueful.shagged.org/apachetop
Source0:        http://clueful.shagged.org/apachetop/files/apachetop-0.12.tar.gz
Patch:          apachetop-0.12-gcc34.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
%patch -p1 -b .gcc34


%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
%{_sbindir}/*
%{_mandir}/man[^3]/*


%changelog
* 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.