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 # Source0-md5: 96383551b2e2aee188a221ef141167ce
11 Source1: %{name}.crontab
12 Source2: %{name}.sysconfig
13 Source3: %{name}-croniface
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Calamaris is statistical info generator for Squid and NetCache based
21 on log parsing. It can create both plain-text and HTML reports. A
22 must-have for Squid/NetCache administrators.
25 Calamaris generuje informacje statystyczne o pracy Squida i NetCache w
26 oparciu o ich logi. Potrafi tworzyæ raporty w postaci czystego tekstu
27 jak i HTML-a. Niezbêdny dla administratorów Squida i NetCache.
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1}
36 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris
37 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/calamaris
38 install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
39 install calamaris $RPM_BUILD_ROOT%{_bindir}
40 install calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
47 %doc CHANGES EXAMPLES README
48 %attr(750,root,root) %config(noreplace) /etc/cron.d/calamaris
49 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/calamaris
50 %attr(755,root,root) %{_bindir}/*
51 %attr(755,root,root) %{_sbindir}/*