forked from pool/perl-Mojo-SQLite
- updated to 3.005
see /usr/share/doc/packages/perl-Mojo-SQLite/Changes
3.005 2021-02-15 21:47:59 EST
- Add query_p, select_p, insert_p, update_p, delete_p Mojo::Promise-returning methods to Mojo::SQLite::Database.
These are for API compatibility with Mojo::Pg and do not provide non-blocking query functionality. (#20, Stefan Adams)
- Use Mojo::Promise in tests instead of the deprecated and decored Mojo::IOLoop::Delay (#20, Stefan Adams)
OBS-URL: https://build.opensuse.org/request/show/873043
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Mojo-SQLite?expand=0&rev=26
77 lines
2.6 KiB
RPMSpec
77 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package perl-Mojo-SQLite
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Mojo-SQLite
|
|
Name: perl-Mojo-SQLite
|
|
Version: 3.005
|
|
Release: 0
|
|
Summary: Tiny Mojolicious wrapper for SQLite
|
|
License: Artistic-2.0
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(DBD::SQLite) >= 1.64
|
|
BuildRequires: perl(DBI) >= 1.627
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
|
BuildRequires: perl(Module::Metadata)
|
|
BuildRequires: perl(Mojolicious) >= 8.03
|
|
BuildRequires: perl(SQL::Abstract) >= 1.81
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
BuildRequires: perl(URI) >= 1.69
|
|
BuildRequires: perl(URI::db) >= 0.15
|
|
BuildRequires: perl(URI::file) >= 4.21
|
|
Requires: perl(DBD::SQLite) >= 1.64
|
|
Requires: perl(DBI) >= 1.627
|
|
Requires: perl(Mojolicious) >= 8.03
|
|
Requires: perl(SQL::Abstract) >= 1.81
|
|
Requires: perl(URI) >= 1.69
|
|
Requires: perl(URI::db) >= 0.15
|
|
Requires: perl(URI::file) >= 4.21
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Mojo::SQLite is a tiny wrapper around DBD::SQLite that makes at
|
|
https://www.sqlite.org/ a lot of fun to use with the at https://mojolico.us
|
|
real-time web framework. Use all at http://sqlite.org/lang.html SQLite has
|
|
to offer, generate CRUD queries from data structures, and manage your
|
|
database schema with migrations.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build build --flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes CONTRIBUTING.md examples prereqs.yml README
|
|
%license LICENSE
|
|
|
|
%changelog
|