]> git.pld-linux.org Git - packages/calamaris.git/blob - calamaris.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/calamaris.git] / calamaris.spec
1 # TODO:
2 # - think about default directory for calamaris output (somwhere in /var) so
3 #   it works out-of-the-box
4 #
5 Summary:        Squid and NetCache log parser and report generator
6 Summary(pl.UTF-8):      Generator raportów dla Squida i NetCache
7 Name:           calamaris
8 Version:        2.99.4.0
9 Release:        3
10 License:        GPL
11 Group:          Networking/Utilities
12 Source0:        http://cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz
13 # Source0-md5:  61d4fe8b4c00550b58dff09b643aff10
14 Source1:        %{name}.crontab
15 Source2:        %{name}.sysconfig
16 Source3:        %{name}-croniface
17 URL:            http://cord.de/tools/squid/calamaris/Welcome.html
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRequires:  sed >= 4.0
20 Requires:       /bin/zcat
21 Requires:       crondaemon
22 Requires:       setup >= 2.4.6
23 Conflicts:      logrotate < 3.7-3
24 Conflicts:      squid < 7:2.5.STABLE7-5
25 BuildArch:      noarch
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.UTF-8
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 %{__sed} -i -e 's/use ident/use the ident/' calamaris calamaris.conf
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1}
45
46 install -p %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
47 install -p calamaris $RPM_BUILD_ROOT%{_bindir}
48 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris
49 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/calamaris
50 cp -p calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc CHANGES EXAMPLES README
58 %config(noreplace) /etc/cron.d/calamaris
59 %attr(640,root,stats) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/calamaris
60 %attr(755,root,root) %{_bindir}/*
61 %attr(755,root,root) %{_sbindir}/*
62 %{_mandir}/*/*
This page took 0.09278 seconds and 4 git commands to generate.