From 4ab4f401809b63327f078614b98a15eb455312f1 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Jul 25 2008 18:35:31 +0000 Subject: - Upgrade to 2.59 - Initial spec file for Fedora and Red Hat Enterprise Linux --- diff --git a/.cvsignore b/.cvsignore index e69de29..f3eba10 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +calamaris-2.59.tar.gz diff --git a/calamaris-filter-requires.sh b/calamaris-filter-requires.sh new file mode 100644 index 0000000..fc7722a --- /dev/null +++ b/calamaris-filter-requires.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# The original script name has been passed as the first argument: +"$@" | awk '$0 != "perl(-F)" && $0 != "perl(-f)"' diff --git a/calamaris.spec b/calamaris.spec new file mode 100644 index 0000000..17cb15e --- /dev/null +++ b/calamaris.spec @@ -0,0 +1,51 @@ +%{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%{?dist} +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 diff --git a/sources b/sources index e69de29..b423d54 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +63c233b3407f9aec34b03647ed7fc852 calamaris-2.59.tar.gz