1 Summary: a fast PostgreSQL log analyzer
6 Group: Applications/Databases
7 Source0: https://github.com/darold/pgbadger/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: d09facc144818b98904d7d95a7a2b7df
9 URL: https://pgbadger.darold.net/
10 Patch0: %{name}-perl_path.patch
11 BuildRequires: perl-devel >= 1:5.6
12 BuildRequires: perl-ExtUtils-MakeMaker
13 Requires: perl-base >= 1:5.6
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 pgBadger is a PostgreSQL log analyzer build for speed with fully
19 detailed reports from your PostgreSQL log file. It's a single and
20 small Perl script that aims to replace and outperform the old php
23 pgBadger is written in pure Perl language. It uses a javascript
24 library to draw graphs so that you don't need additional Perl modules
25 or any other package to install. Furthermore, this library gives us
26 more features such as zooming.
28 pgBadger is able to autodetect your log file format (syslog, stderr or
29 csvlog). It is designed to parse huge log files as well as gzip
37 %{__perl} Makefile.PL \
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_bindir}/%{name}
53 %{_mandir}/man1/%{name}.1*