%define name apachegrep %define version 0.3 %define release %mkrel 6 Summary: A grep tool for apache log files Name: %{name} Version: %{version} Release: %{release} Source0: http://switch.dl.sourceforge.net/sourceforge/apachegrep/%{name}-%{version}.tar.bz2 License: GPL Group: Text 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 %setup -q %patch0 -p0 %build %install mkdir -p %buildroot/%{_mandir}/man1 mkdir -p %buildroot/%{_bindir} install -m 755 apachegrep %buildroot/%{_bindir} install -m 644 apachegrep.1 %buildroot/%{_mandir}/man1 %files %doc INSTALL CHANGELOG LICENSE README TODO %{_bindir}/apachegrep %{_mandir}/man1/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 0.3-6.mga3 + Revision: 345927 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Oct 26 2012 malo <malo> 0.3-5.mga3 + Revision: 310487 - spec clean-up - update RPM group * Wed Jan 19 2011 erwan <erwan> 0.3-4.mga1 + Revision: 24797 - imported package apachegrep