Summary: Utility to display Apache logs with a top-like interface Name: apachetop Version: 0.12.6 Release: %mkrel 5 License: BSD Group: Monitoring URL: http://www.webta.org/projects/apachetop Source0: http://www.webta.org/apachetop/%name-%version.tar.bz2 # mandrivaize default logfile Patch1: %name-0.12.6-logfile.patch # support logfiles over 2GB (from Debian) Patch2: apachetop-0.12.5-large_logfile.patch # gcc4.1 fixes (from Debian) Patch3: apachetop-0.12.6-gcc41.patch # fix some error Patch4: apachetop-0.12.6-buffer_overflow.patch BuildRequires: ncurses-devel BuildRequires: m4 BuildRequires: pcre-devel BuildRequires: gamin-devel BuildRequires: readline-devel BuildRequires: autoconf2.5 Requires: apache %description ApacheTop watches a log-file generated by Apache (in standard common or combined log-format, although it doesn't (yet) make use of any of the extra fields in combined) and generates human coherent output in real-time. %prep %setup -q %patch1 -p1 -b .log %patch2 -p1 -b .large %patch3 -p1 -b .gcc41 %patch4 -p0 sed -i s/AM_CONFIG_HEADER/AC_CONFIG_HEADER/ configure.ac %build %configure2_5x \ --with-pcre=%_prefix \ --without-adns \ --with-logfile=%{_localstatedir}/log/httpd/access_log %make %install %makeinstall %files %defattr(-,root,root,) %_bindir/* %doc AUTHORS LICENSE README ChangeLog TODO %_mandir/man1/*