File perl-Mojo-SQLite.spec of Package perl-Mojo-SQLite

# 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

%define cpan_name Mojo-SQLite
Name:           perl-Mojo-SQLite
Version:        3.007
Release:        0
Summary:        Tiny Mojolicious wrapper for SQLite
License:        Artistic-2.0
URL:  {cpan_name}
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(DBD::SQLite) >= 1.68
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::Pg) >= 1.0
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.68
Requires:       perl(DBI) >= 1.627
Requires:       perl(Mojolicious) >= 8.03
Requires:       perl(SQL::Abstract::Pg) >= 1.0
Requires:       perl(URI) >= 1.69
Requires:       perl(URI::db) >= 0.15
Requires:       perl(URI::file) >= 4.21

Mojo::SQLite is a tiny wrapper around DBD::SQLite that makes at a lot of fun to use with the at
real-time web framework. Use all at SQLite has
to offer, generate CRUD queries from data structures, and manage your
database schema with migrations.

%autosetup  -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644

perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}

./Build test

./Build install --destdir=%{buildroot} --create_packlist=0

%files -f %{name}.files
%doc Changes examples prereqs.yml README
%license LICENSE

openSUSE Build Service is sponsored by