]> git.pld-linux.org Git - packages/calamaris.git/blame - calamaris.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/calamaris.git] / calamaris.spec
CommitLineData
d836d25d 1# TODO:
daa82ad8 2# - think about default directory for calamaris output (somwhere in /var) so
d836d25d
JK
3# it works out-of-the-box
4#
4c32cf08 5Summary: Squid and NetCache log parser and report generator
d2b1e78e 6Summary(pl.UTF-8): Generator raportów dla Squida i NetCache
4c32cf08 7Name: calamaris
4437ae52 8Version: 2.99.4.0
c0dd6bc7 9Release: 3
db55c351 10License: GPL
4c32cf08 11Group: Networking/Utilities
4437ae52 12Source0: http://cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz
13# Source0-md5: 61d4fe8b4c00550b58dff09b643aff10
bc1ed889 14Source1: %{name}.crontab
15Source2: %{name}.sysconfig
16Source3: %{name}-croniface
c963d7fd 17URL: http://cord.de/tools/squid/calamaris/Welcome.html
c0dd6bc7 18BuildRequires: rpm-perlprov >= 4.1-13
4bbfcf42 19BuildRequires: sed >= 4.0
4393849a 20Requires: /bin/zcat
c0dd6bc7 21Requires: crondaemon
d836d25d 22Requires: setup >= 2.4.6
d836d25d 23Conflicts: logrotate < 3.7-3
4bbfcf42 24Conflicts: squid < 7:2.5.STABLE7-5
d2b1e78e 25BuildArch: noarch
087d0757 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4c32cf08 27
28%description
56081607 29Calamaris is statistical info generator for Squid and NetCache based
30on log parsing. It can create both plain-text and HTML reports. A
31must-have for Squid/NetCache administrators.
4c32cf08 32
983a603f 33%description -l pl.UTF-8
52bd3e7f 34Calamaris generuje informacje statystyczne o pracy Squida i NetCache w
983a603f
JR
35oparciu o ich logi. Potrafi tworzyć raporty w postaci czystego tekstu
36jak i HTML-a. Niezbędny dla administratorów Squida i NetCache.
4c32cf08 37
38%prep
491907e7 39%setup -q
4bbfcf42 40%{__sed} -i -e 's/use ident/use the ident/' calamaris calamaris.conf
4c32cf08 41
4c32cf08 42%install
43rm -rf $RPM_BUILD_ROOT
44install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1}
bc1ed889 45
c0dd6bc7
ER
46install -p %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
47install -p calamaris $RPM_BUILD_ROOT%{_bindir}
48cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris
49cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/calamaris
50cp -p calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1
4c32cf08 51
4c32cf08 52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
53f8a353 57%doc CHANGES EXAMPLES README
78031f06 58%config(noreplace) /etc/cron.d/calamaris
69c2f3fb 59%attr(640,root,stats) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/calamaris
5d8ede9b 60%attr(755,root,root) %{_bindir}/*
61%attr(755,root,root) %{_sbindir}/*
62%{_mandir}/*/*
This page took 0.089216 seconds and 4 git commands to generate.