From 59a8849653520ad3891d2ac3ddbb4d83c188ba73 Mon Sep 17 00:00:00 2001 From: Emmanuel Seyman Date: Nov 21 2018 09:03:50 +0000 Subject: Initial import. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7a626e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Mojo-SQLite-3.001.tar.gz diff --git a/perl-Mojo-SQLite.spec b/perl-Mojo-SQLite.spec new file mode 100644 index 0000000..c21f2da --- /dev/null +++ b/perl-Mojo-SQLite.spec @@ -0,0 +1,77 @@ +Name: perl-Mojo-SQLite +Version: 3.001 +Release: 1%{?dist} +Summary: Tiny Mojolicious wrapper for SQLite +License: Artistic 2.0 + +URL: https://metacpan.org/release/Mojo-SQLite/ +Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/Mojo-SQLite-%{version}.tar.gz + +BuildArch: noarch +# build deps +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Module::Build) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# run deps +BuildRequires: perl(Carp) +BuildRequires: perl(DBD::SQLite) >= 1.54 +BuildRequires: perl(DBI) >= 1.627 +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) +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::Util) +BuildRequires: perl(SQL::Abstract) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(constant) +# test deps +BuildRequires: perl(File::Spec) +BuildRequires: perl(FindBin) +BuildRequires: perl(Module::Metadata) +BuildRequires: perl(Mojolicious::Lite) +BuildRequires: perl(Test::Mojo) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(URI) >= 1.69 +BuildRequires: perl(URI::db) >= 0.15 +BuildRequires: perl(URI::file) >= 4.21 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Mojo::SQLite is a tiny wrapper around DBD::SQLite that makes SQLite a lot +of fun to use with the Mojolicious real-time web framework. Use all SQL +features SQLite has to offer, generate CRUD queries from data structures, +and manage your database schema with migrations. + +%prep +%setup -q -n Mojo-SQLite-%{version} + +%build +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +RELEASE_TESTING=1 ./Build test + +%files +%doc Changes CONTRIBUTING.md README +%license LICENSE +%{perl_vendorlib}/Mojo* +%{_mandir}/man3/Mojo* + +%changelog +* Fri Nov 16 2018 Emmanuel Seyman 3.001-1 +- Initial specfile, based on the one autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..b6dac6b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Mojo-SQLite-3.001.tar.gz) = c1593636954a0c02ab3b8630e207e1354cbe2e851e87b33a54bd1cd39a2cd627390e491161e34a72e32ea7b6ae564fba8a773ac3dc22a3bd075aa7ae42c756b0