1 %include /usr/lib/rpm/macros.perl
2 Summary: Squid and NetCache log parser and report generator
3 Summary(pl): Generator raportów dla Squida i NetCache
8 Group: Networking/Utilities
9 Source0: http://Cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz
10 Source1: %{name}.crontab
11 Source2: %{name}.sysconfig
12 Source3: %{name}-croniface
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Calamaris is statistical info generator for Squid and NetCache based
20 on log parsing. It can create both plain-text and HTML reports. A
21 must-have for Squid/NetCache administrators.
24 Calamaris generuje informacje statystyczne o pracy Squida i NetCache w
25 oparciu o ich logi. Potrafi tworzyæ raporty w postaci czystego tekstu
26 jak i HTML. Niezbêdny dla administratorów Squida i NetCache.
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1}
35 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris
36 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/calamaris
37 install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
38 install calamaris $RPM_BUILD_ROOT%{_bindir}
39 install calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1
42 rm -rf $RPM_BUILD_ROOT
45 %defattr(644,root,root,755)
46 %doc CHANGES EXAMPLES README
47 %attr(750,root,root) %config(noreplace) /etc/cron.d/calamaris
48 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/calamaris
49 %attr(755,root,root) %{_bindir}/*
50 %attr(755,root,root) %{_sbindir}/*