diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..643678c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Minion-Backend-SQLite-4.002.tar.gz diff --git a/perl-Minion-Backend-SQLite.spec b/perl-Minion-Backend-SQLite.spec new file mode 100644 index 0000000..37f279f --- /dev/null +++ b/perl-Minion-Backend-SQLite.spec @@ -0,0 +1,66 @@ +Name: perl-Minion-Backend-SQLite +Version: 4.002 +Release: 1%{?dist} +Summary: SQLite backend for Minion job queue +License: Artistic 2.0 + +URL: https://metacpan.org/release/Minion-Backend-SQLite/ +Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/Minion-Backend-SQLite-%{version}.tar.gz + +BuildArch: noarch +# build deps +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Module::Build) +BuildRequires: perl(warnings) +BuildRequires: perl(Carp) +BuildRequires: perl(List::Util) +BuildRequires: perl(Mojo::Base) +BuildRequires: perl(Mojo::SQLite) >= 3.000 +BuildRequires: perl(Mojo::Util) +BuildRequires: perl(Sys::Hostname) +BuildRequires: perl(Time::HiRes) +BuildRequires: perl(strict) +# test deps +BuildRequires: perl(Config) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Minion) >= 9.0 +BuildRequires: perl(Minion::Backend) +BuildRequires: perl(Module::Metadata) +BuildRequires: perl(Mojo::IOLoop) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(constant) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Minion::Backend::SQLite is a backend for Minion based on Mojo::SQLite. All +necessary tables will be created automatically with a set of migrations +named minion. If no connection string or :temp: is provided, the database +will be created in a temporary directory. + +%prep +%setup -q -n Minion-Backend-SQLite-%{version} + +%build +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes CONTRIBUTING.md examples README +%license LICENSE +%{perl_vendorlib}/Minion* +%{_mandir}/man3/Minion* + +%changelog +* Fri Nov 16 2018 Emmanuel Seyman 4.002-1 +- Initial specfile, based on the one autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..57e4c50 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Minion-Backend-SQLite-4.002.tar.gz) = c9fb7ccefeb4350f6ae31d7d6bff437678168b52acbac28bed7ce978b1c5b7af5810d5c88763cd033f07925a7f789885337a8f81cd9b413217d72bdde0771ef6