]> git.pld-linux.org Git - packages/calamaris.git/blobdiff - calamaris.spec
- need sysconfig/calamaris under stats cron
[packages/calamaris.git] / calamaris.spec
index f4cb30d09a00d75def2398cd6e1c3511587ca5e4..8e9dd2fe2bd48110c6b4cf115cb803620601e5eb 100644 (file)
@@ -1,20 +1,29 @@
+# TODO:
+# - think about default directory for calamaris output (somwhere in /var) so
+#   it works out-of-the-box
+#
+%include       /usr/lib/rpm/macros.perl
 Summary:       Squid and NetCache log parser and report generator
-Summary(pl):   Generator raportów dla Squid'a i NetCache
+Summary(pl.UTF-8):     Generator raportów dla Squida i NetCache
 Name:          calamaris
-Version:       2.40
-Release:       1
+Version:       2.99.4.0
+Release:       2
 License:       GPL
 Group:         Networking/Utilities
-Group(de):     Netzwerkwesen/Werkzeuge
-Group(pl):     Sieciowe/Narzêdzia
-Source0:       http://Cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz
+Source0:       http://cord.de/tools/squid/calamaris/%{name}-%{version}.tar.gz
+# Source0-md5: 61d4fe8b4c00550b58dff09b643aff10
 Source1:       %{name}.crontab
 Source2:       %{name}.sysconfig
 Source3:       %{name}-croniface
-Prereq:                /sbin/chkconfig
+URL:           http://cord.de/tools/squid/calamaris/Welcome.html
+BuildRequires: sed >= 4.0
+Requires:      /bin/zcat
 Requires:      /etc/cron.d
 Requires:      crontabs
-Requires:      /bin/zcat
+Requires:      setup >= 2.4.6
+Conflicts:     logrotate < 3.7-3
+Conflicts:     squid < 7:2.5.STABLE7-5
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,16 +31,18 @@ Calamaris is statistical info generator for Squid and NetCache based
 on log parsing. It can create both plain-text and HTML reports. A
 must-have for Squid/NetCache administrators.
 
-%description -l pl
-Calamaris generuje informacje statystyczne o pracy Squid'a i NetCache
-w oparciu o ich logi. Potrafi tworzyæ raporty w postaci czystego
-tekstu jak i HTML. Niezbêdny dla administratorów Squid'a i NetCache.
+%description -l pl.UTF-8
+Calamaris generuje informacje statystyczne o pracy Squida i NetCache w
+oparciu o ich logi. Potrafi tworzyć raporty w postaci czystego tekstu
+jak i HTML-a. Niezbędny dla administratorów Squida i NetCache.
 
 %prep
-%setup -q -a 0
+%setup -q
+%{__sed} -i -e 's/use ident/use the ident/' calamaris calamaris.conf
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 install -d $RPM_BUILD_ROOT{/etc/{cron.d,sysconfig},%{_bindir},%{_sbindir},%{_mandir}/man1}
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/calamaris
@@ -40,16 +51,14 @@ install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}
 install calamaris $RPM_BUILD_ROOT%{_bindir}
 install calamaris.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-gzip -9nf CHANGES EXAMPLES README
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%attr(750,root,root) /etc/cron.d/calamaris
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/calamaris
+%doc CHANGES EXAMPLES README
+%config(noreplace) /etc/cron.d/calamaris
+%attr(640,root,stats) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/calamaris
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/*/*
This page took 0.264385 seconds and 4 git commands to generate.