]> git.pld-linux.org Git - packages/pgbadger.git/blob - pgbadger.spec
up to 12.4
[packages/pgbadger.git] / pgbadger.spec
1 Summary:        a fast PostgreSQL log analyzer
2 Name:           pgbadger
3 Version:        12.4
4 Release:        1
5 License:        BSD
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)
15 BuildArch:      noarch
16
17 %description
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
21 script pgFouine.
22
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.
27
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
30 compressed file.
31
32 %prep
33 %setup -q
34 %patch0
35
36 %build
37 %{__perl} Makefile.PL \
38                 INSTALLDIRS=vendor
39
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45         PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_bindir}/%{name}
53 %{_mandir}/man1/%{name}.1*
54
This page took 0.071453 seconds and 4 git commands to generate.