8
0
Files
perl-DBD-SQLite/perl-DBD-SQLite.spec
Stephan Kulow 871b99ede2 Accepting request 1037719 from devel:languages:perl:autoupdate
- Update perl-DBD-SQLite-use-external-sqlite3.patch (remove metadata
  fix, not needed anymore)
- updated to 1.72
   see /usr/share/doc/packages/perl-DBD-SQLite/Changes
  1.72 2022-11-04
      - Switched to a production version
  1.71_07 2022-10-26
      - Upgraded SQLite to 3.39.4
  1.71_06 2022-03-12
      - Set UTF8CACHE to avoid slowdown with -DDEBUGGING (andk, Leont, FGasper)
  1.71_05 2022-02-26
      - Fix another test failure on perl built with -DDEBUGGING
      - Lowercase datatype in table column metadata for backcompat
  1.71_04 2022-02-26
      - Fix test failure on perl built with -DDEBUGGING (andk++)
  1.71_03 2022-02-23
      - Upgraded SQLite to 3.38.0
      - Expose sqlite_error_offset introduced in 3.38.0
  1.71_02 2022-01-07
      - Upgraded SQLite to 3.37.2
      - Improve sqlite_load_extension doc (GH#94, Derek Lamb++)
  1.71_01 2021-12-02
      - Upgraded SQLite to 3.37.0
      - Add a feature to unregister a created function
      - Fix accented characters in POD (GH#90, HaraldJoerg++)

OBS-URL: https://build.opensuse.org/request/show/1037719
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-SQLite?expand=0&rev=75
2022-11-24 09:14:01 +00:00

121 lines
3.9 KiB
RPMSpec

#
# spec file for package perl-DBD-SQLite
#
# Copyright (c) 2022 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-SQLite
Name: perl-DBD-SQLite
Version: 1.72
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Self Contained SQLite RDBMS in a DBI Driver
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
# PATCH-FIX-OPENSUSE use system sqlite
Patch0: perl-DBD-SQLite-use-external-sqlite3.patch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DBI) >= 1.57
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.48
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(DBI) >= 1.57
Requires: perl(Test::More) >= 0.88
%{perl_requires}
# MANUAL BEGIN
%if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400
%else
BuildRequires: sqlite3-devel >= 3.35
Recommends: sqlite3-devel
%endif
# MANUAL END
%description
SQLite is a public domain file-based relational database engine that you
can find at https://www.sqlite.org/.
*DBD::SQLite* is a Perl DBI driver for SQLite, that 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.
SQLite supports the following features:
* Implements a large subset of SQL92
See https://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::SQLite* 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. The API works like every DBI module does. However,
currently many statement attributes are not implemented or are limited by
the typeless nature of the SQLite database.
%prep
%autosetup -n %{cpan_name}-%{version} -p1
# MANUAL BEGIN
%if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400
patch -p1 --reverse <%{PATCH0}
%endif
# MANUAL END
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
# MANUAL BEGIN
%if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400
%else
ln -fs %{_includedir}/sqlite3ext.h %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/
ln -fs %{_includedir}/sqlite3.h %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/
rm %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c
echo >%{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c
chmod 444 %{buildroot}%{perl_vendorarch}/auto/share/dist/%{cpan_name}/sqlite3.c
%endif
# MANUAL END
%perl_gen_filelist
%files -f %{name}.files
%doc Changes constants.inc dbdimp_tokenizer.inc dbdimp_virtual_table.inc README
%license LICENSE
# the links are ignored by perl_gen_filelist, so we need to add them manually again
%if 0%{?sle_version} >= 140000 && 0%{?sle_version} <= 150400
%else
%{perl_vendorarch}/auto/share/dist/%{cpan_name}/*.h
%endif
%changelog