Summary: Utility to display Apache logs with a top-like interface Name: apachetop Version: 0.23.2 Release: %mkrel 1 License: BSD Group: Monitoring URL: https://github.com/tessus/apachetop Source0: https://github.com/tessus/apachetop/releases/download/%{version}/%{name}-%{version}.tar.gz # mandrivaize default logfile Patch1: apachetop-0.12.6-logfile.patch # support logfiles over 2GB (from Debian) Patch2: apachetop-0.12.5-large_logfile.patch # fix some error Patch3: apachetop-0.12.6-buffer_overflow.patch BuildRequires: m4 BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(libpcre2-8) BuildRequires: pkgconfig(gamin) BuildRequires: pkgconfig(readline) 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 -p0 %build %configure \ --with-pcre2=%{_prefix} \ --without-adns \ --with-logfile=%{_localstatedir}/log/httpd/access_log %make_build %install %make_install %files %doc AUTHORS README ChangeLog %license LICENSE %{_bindir}/* %{_mandir}/man1/*