]> git.pld-linux.org Git - packages/calamaris.git/blob - calamaris.spec
- cosmetics
[packages/calamaris.git] / calamaris.spec
1 #
2 # TODO:
3 # - think about default directory for calamaris output (somwhere in /var) so
4 #   it works out-of-the-box
5 #
6 %include        /usr/lib/rpm/macros.perl
7 Summary:        Squid and NetCache log parser and report generator
8 Summary(pl):    Generator raportów dla Squida i NetCache
9 Name:           calamaris
10 Version:        2.58
11 Release:        5
12 License:        GPL
13 Group:          Networking/Utilities
14 Source0:        http://Cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz
15 # Source0-md5:  96383551b2e2aee188a221ef141167ce
16 Source1:        %{name}.crontab
17 Source2:        %{name}.sysconfig
18 Source3:        %{name}-croniface
19 URL:            http://cord.de/tools/squid/calamaris/Welcome.html
20 Requires:       /bin/zcat
21 Requires:       /etc/cron.d
22 Requires:       crontabs
23 Requires:       setup >= 2.4.6
24 Conflicts:      squid < 7:2.5.STABLE7-5
25 Conflicts:      logrotate < 3.7-3
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Calamaris is statistical info generator for Squid and NetCache based
30 on log parsing. It can create both plain-text and HTML reports. A
31 must-have for Squid/NetCache administrators.
32
33 %description -l pl
34 Calamaris generuje informacje statystyczne o pracy Squida i NetCache w
35 oparciu o ich logi. Potrafi tworzyæ raporty w postaci czystego tekstu
36 jak i HTML-a. Niezbêdny dla administratorów Squida i NetCache.
37
38 %prep
39 %setup -q
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1}
44
45 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris
46 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/calamaris
47 install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
48 install calamaris $RPM_BUILD_ROOT%{_bindir}
49 install calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc CHANGES EXAMPLES README
57 %attr(750,root,root) %config(noreplace) /etc/cron.d/calamaris
58 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/calamaris
59 %attr(755,root,root) %{_bindir}/*
60 %attr(755,root,root) %{_sbindir}/*
61 %{_mandir}/*/*
This page took 0.052024 seconds and 3 git commands to generate.