From f7e7eec9a82bfd662e6680f10ecbf4c936d2b7a2 Mon Sep 17 00:00:00 2001 From: Emmanuel Seyman Date: Tue, 15 May 2018 16:38:58 +0200 Subject: [PATCH] Initial import. --- .gitignore | 1 + README.md | 3 -- perl-Mojo-Pg.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 perl-Mojo-Pg.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..64a8f7e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Mojo-Pg-4.08.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 8f0da99..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# perl-Mojo-Pg - -The perl-Mojo-Pg package \ No newline at end of file diff --git a/perl-Mojo-Pg.spec b/perl-Mojo-Pg.spec new file mode 100644 index 0000000..3f5a046 --- /dev/null +++ b/perl-Mojo-Pg.spec @@ -0,0 +1,81 @@ +Name: perl-Mojo-Pg +Version: 4.08 +Release: 2%{?dist} +Summary: Mojolicious ♥ PostgreSQL +License: Artistic 2.0 + +URL: http://search.cpan.org/dist/Mojo-Pg/ +Source0: http://www.cpan.org/authors/id/S/SR/SRI/Mojo-Pg-%{version}.tar.gz + +BuildArch: noarch +# Build +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(Mojolicious) >= 7.53 +BuildRequires: perl(strict) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) +# Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(DBD::Pg) >= 3.5.1 +BuildRequires: perl(DBI) +BuildRequires: perl(Mojo::Base) +BuildRequires: perl(Mojo::Collection) +BuildRequires: perl(Mojo::EventEmitter) +BuildRequires: perl(Mojo::File) +BuildRequires: perl(Mojo::IOLoop) +BuildRequires: perl(Mojo::JSON) +BuildRequires: perl(Mojo::Loader) +BuildRequires: perl(Mojo::Promise) +BuildRequires: perl(Mojo::URL) +BuildRequires: perl(Mojo::Util) +BuildRequires: perl(SQL::Abstract) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(constant) +# Tests +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(FindBin) +BuildRequires: perl(Mojolicious::Lite) +BuildRequires: perl(Test::Mojo) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(SQL::Abstract) >= 1.85 + +%{?perl_default_filter} + +%description +Mojo::Pg is a tiny wrapper around DBD::Pg that makes PostgreSQL a lot of +fun to use with the Mojolicious real-time web framework. Perform queries +blocking and non-blocking, use all SQL features PostgreSQL has to offer, +generate CRUD queries from data structures, manage your database schema +with migrations and build scalable real-time web applications with the +publish/subscribe pattern. + +%prep +%setup -q -n Mojo-Pg-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README.md +%license LICENSE +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue May 15 2018 Emmanuel Seyman - 4.08-2 +- Take into account review comments (#1578151) + +* Mon May 14 2018 Emmanuel Seyman - 4.08-1 +- Initial specfile, based on the one autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..a386b95 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Mojo-Pg-4.08.tar.gz) = 0d4f7a40f861bae37128abae027116181830019635d4cbecb2b8d0772d21f161e7f363cc9c7112cac0da07c1556ed6b25e281a32c3462c4798635a03055c7d2e