]>
Commit | Line | Data |
---|---|---|
98e03d87 AZ |
1 | Summary: a fast PostgreSQL log analyzer |
2 | Name: pgbadger | |
b43edb48 | 3 | Version: 6.0 |
98e03d87 AZ |
4 | Release: 1 |
5 | License: BSD | |
6 | Group: Applications/Databases | |
a90af799 | 7 | Source0: http://downloads.sourceforge.net/project/pgbadger/%{version}/%{name}-%{version}.tar.gz |
b43edb48 | 8 | # Source0-md5: 55b680a4b49803f9f59a52bcc2ac0d6d |
98e03d87 AZ |
9 | URL: http://dalibo.github.com/pgbadger/ |
10 | BuildRequires: perl-devel >= 1:5.6 | |
11 | BuildRequires: perl-ExtUtils-MakeMaker | |
12 | Requires: perl-base >= 1:5.6 | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | BuildArch: noarch | |
15 | ||
16 | %description | |
17 | pgBadger is a PostgreSQL log analyzer build for speed with fully | |
18 | detailed reports from your PostgreSQL log file. It's a single and | |
19 | small Perl script that aims to replace and outperform the old php | |
20 | script pgFouine. | |
21 | ||
22 | pgBadger is written in pure Perl language. It uses a javascript | |
23 | library to draw graphs so that you don't need additional Perl modules | |
24 | or any other package to install. Furthermore, this library gives us | |
25 | more features such as zooming. | |
26 | ||
27 | pgBadger is able to autodetect your log file format (syslog, stderr or | |
28 | csvlog). It is designed to parse huge log files as well as gzip | |
29 | compressed file. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | ||
34 | %build | |
35 | %{__perl} Makefile.PL \ | |
36 | INSTALLDIRS=vendor | |
37 | ||
38 | %{__make} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | %{__make} pure_install \ | |
43 | PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %attr(755,root,root) %{_bindir}/%{name} | |
51 | %{_mandir}/man1/%{name}.1* | |
52 |