96 lines
2.9 KiB
RPMSpec
96 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-DBD-SQLite2
|
|
#
|
|
# Copyright (c) 2024 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 DBD-SQLite2
|
|
Name: perl-DBD-SQLite2
|
|
Version: 0.380.0
|
|
Release: 0
|
|
# 0.38 -> normalize -> 0.380.0
|
|
%define cpan_version 0.38
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Self Contained RDBMS in a DBI Driver (sqlite 2.x)
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(DBI) >= 1.625
|
|
Requires: perl(DBI) >= 1.625
|
|
Provides: perl(DBD::SQLite2) = %{version}
|
|
Provides: perl(DBD::SQLite2::db)
|
|
Provides: perl(DBD::SQLite2::dr)
|
|
%undefine __perllib_provides
|
|
Recommends: perl(DBD::SQLite) >= 1.37
|
|
Recommends: perl(DBI) >= 1.625
|
|
%{perl_requires}
|
|
|
|
%description
|
|
SQLite is a public domain RDBMS database engine that you can find at
|
|
http://www.sqlite.org/.
|
|
|
|
Rather than ask you to install SQLite first, because SQLite is public
|
|
domain, DBD::SQLite2 includes the entire thing in the distribution. So in
|
|
order to get a fast transaction capable RDBMS working for your perl project
|
|
you simply have to install this module, and *nothing* else.
|
|
|
|
For real work please use the updated DBD::SQLite driver with the up-to-date
|
|
sqlite3 backend. SQLite2 supports the following features:
|
|
|
|
* Implements a large subset of SQL92
|
|
|
|
See http://www.sqlite.org/lang.html for details.
|
|
|
|
* A complete DB in a single disk file
|
|
|
|
Everything for your database is stored in a single disk file, making it
|
|
easier to move things around than with DBD::CSV.
|
|
|
|
* Atomic commit and rollback
|
|
|
|
Yes, DBD::SQLite2 is small and light, but it supports full transactions
|
|
|
|
* Extensible
|
|
|
|
User-defined aggregate or regular functions can be registered with the SQL
|
|
parser.
|
|
|
|
There's lots more to it, so please refer to the docs on the SQLite web
|
|
page, listed above, for SQL details. Also refer to DBI for details on how
|
|
to use DBI itself.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
|
|
%changelog
|