Name: pgformatter Version: 5.6 Release: 1%{?dist} Summary: A PostgreSQL SQL syntax beautifier License: PostgreSQL URL: https://github.com/darold/pgformatter Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(autodie) Requires: perl(autodie) %description pgFormatter is a PostgreSQL SQL syntax beautifier that can work as a console program or as a CGI. %prep %autosetup -n pgFormatter-%{version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %make_install mkdir -p %{buildroot}%{_bindir} ln -sf %{_bindir}/pg_format %{buildroot}%{_bindir}/pgformatter %files %license LICENSE %doc README.md %{_bindir}/pg_format %{_bindir}/pgformatter %{_mandir}/man1/pg_format.1* %{perl_vendorlib}/pgFormatter/ %{perl_vendorlib}/pgFormatter.pm %changelog %autochangelog