Summary: A grep tool for apache log files Name: apachegrep Version: 0.3 Release: 6 Source0: http://switch.dl.sourceforge.net/sourceforge/apachegrep/%{name}-%{version}.tar.bz2 License: GPL Group: File tools Url: http://apachegrep.sourceforge.net/ Patch0: apachegrep-zcat.patch BuildArch: noarch Requires: gzip, bzip2 %description apachegrep is a perl program to help webmasters go through their apache logs and try to pullout various bits of information. Built in the spirit of unix tools, it's designed to be used standalone or as part of a pipeline of tools to pore over common (or combined) logs and print out entire lines, specified fields or a simple count of matching lines. You specify what fields you want and what regular expression you want applied to that field. It supports gzipped and bzipped log files. %prep %autosetup -p0 %build %install rm -rf $RPM_BUILD_ROOT mkdir -p %buildroot/%{_mandir}/man1 mkdir -p %buildroot/%{_bindir} install -m 755 apachegrep %buildroot/%{_bindir} install -m 644 apachegrep.1 %buildroot/%{_mandir}/man1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc INSTALL CHANGELOG LICENSE README TODO %{_bindir}/apachegrep %{_mandir}/man1/*