Name: apachetop Version: 0.12.6 Release: 1 Summary: A top-like display of Apache logs Group: Applications/Internet License: BSD URL: http://www.webta.org/projects/apachetop Source0: http://www.webta.org/apachetop/apachetop-%{version}.tar.gz Patch0: %{name}-%{version}-maxpathlen.patch Patch10: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: m4, autoconf, automake, patch, make BuildRequires: readline-devel >= 5.2-3 BuildRequires: ncurses-devel >= 5.6-1 Requires: readline >= 5.2-3 Requires: ncurses >= 5.6-1 %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 export PATH=/opt/freeware/bin:$PATH %patch0 -p1 -b .maxpathlen autoreconf %patch10 %build ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --with-logfile=/var/log/httpd/access_log gmake %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake install DESTDIR=${RPM_BUILD_ROOT} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -s ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc AUTHORS LICENSE ChangeLog README TODO %{_bindir}/* %{_mandir}/man?/* /usr/bin/* %changelog * Wed Feb 16 2011 Michael Perzl - 0.12.6-1 - first version for AIX V5.1 and higher