%{expand:%%define prev__perl_requires %{__perl_requires}} %define __perl_requires perl %{SOURCE1} %{prev__perl_requires} Summary: Squid native log format (NLF) analyzer and report generator Name: calamaris Version: 2.59 Release: 1 License: GPLv2+ Group: Applications/Internet URL: http://calamaris.cord.de/ Source0: http://calamaris.cord.de/%{name}-%{version}.tar.gz Source1: calamaris-filter-requires.sh BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Calamaris parses the Squid Native Log and generates reports about Peak-usage, Request-Methods, Status-reports of incoming and outgoing requests, second and Top-level destinations, content-types and performance. %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} install -m 755 %{name} $RPM_BUILD_ROOT%{_bindir} install -m 644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 # Convert everything to UTF-8 iconv -f iso-8859-1 -t utf-8 -o CHANGES.utf8 CHANGES touch -r CHANGES CHANGES.utf8; mv -f CHANGES.utf8 CHANGES iconv -f iso-8859-1 -t utf-8 -o EXAMPLES.utf8 EXAMPLES touch -r EXAMPLES EXAMPLES.utf8; mv -f EXAMPLES.utf8 EXAMPLES %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES COPYRIGHT EXAMPLES README %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Thu Jul 24 2008 Robert Scheck 2.59-1 - Upgrade to 2.59 - Initial spec file for Fedora and Red Hat Enterprise Linux