## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: pgbadger Version: 13.0 Release: %autorelease Summary: PostgreSQL log analyzer with fully detailed reports and graphs License: PostgreSQL URL: https://github.com/darold/pgbadger Source: https://github.com/darold/pgbadger/archive/refs/tags/v%{version}.tar.gz Patch0: pgbadger-13.0-Fix-for-perl-5.40.patch Patch1: pgbadger-13.0-Update-Makefile.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Benchmark) BuildRequires: perl(constant) BuildRequires: perl(Digest::MD5) BuildRequires: perl(Encode) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) BuildRequires: perl(FileHandle) BuildRequires: perl(Getopt::Long) BuildRequires: perl(IO::File) BuildRequires: perl(IO::Handle) BuildRequires: perl(IO::Pipe) BuildRequires: perl(JSON::XS) BuildRequires: perl(POSIX) BuildRequires: perl(Socket) BuildRequires: perl(Storable) BuildRequires: perl(strict) BuildRequires: perl(Test::Simple) BuildRequires: perl(Text::CSV) BuildRequires: perl(Text::CSV_XS) BuildRequires: perl(Text::Wrap) BuildRequires: perl(Time::Local) BuildRequires: perl(utf8) BuildRequires: perl(vars) BuildRequires: perl(warnings) # podchecker BuildRequires: perl-Pod-Checker # pod2markdown BuildRequires: perl-Pod-Markdown Requires: perl(Text::CSV_XS) %description PgBadger is a PostgreSQL log analyzer built for speed providing fully detailed reports based on your PostgreSQL log files. It's a small standalone Perl script that outperforms any other PostgreSQL log analyzer. %prep %setup -q %patch -P0 -p1 %patch -P1 -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %make_build %install %make_install %{_fixperms} %{buildroot}/* %check make test %files %doc README %license LICENSE %{_bindir}/%{name} %{_mandir}/man1/%{name}.1p.gz %changelog ## START: Generated by rpmautospec * Mon Feb 10 2025 John Doe - 13.0-1 - Uncommitted changes ## END: Generated by rpmautospec