8
0
Files
perl-DBD-SQLite/perl-DBD-SQLite.spec

95 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-DBD-SQLite
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Accepting request 141389 from home:vitezslav_cizek:branches:devel:languages:perl - update to 1.37 - Updated to SQLite 3.7.12.1 (ISHIGAKI) - Tweaked Makefile.PL to behave better during the Bsymbolic check (HMBRAND) - Added SQLITE_WITHOUT_ZONEMALLOC for older MacOS X (ISHIGAKI) - Fix >32bit integer truncation and other sqlite_set_result condition issue (Yuriy Kaminskiy) - Fix integer overflow in passing argument to perl function - Convert unsigned -> int64 when possible (Yuriy Kaminskiy) - Turned datatype mismatch error (introduced in 1.34_02) into a warning (you can disable this warning by setting PrintWarn attribute to false). (ISHIGAKI) - Refactored sqlite_is_number to fix various corner cases - Downgraded SQLite to 3.7.9, as 3.7.10 turned out to be broken on the latest MacOS X (due to a missing symbol), and broke other modules that typically use temporary tables under a few environments too. As of this writing, would-be 3.7.11 seems fine, but it would take another month to be released. (ISHIGAKI) *** CHANGES THAT MAY POSSIBLY BREAK YOUR OLD APPLICATIONS *** Note that this release changed the default schema format number, that means newly created database files will be unreadable by SQLite version prior to 3.3.0 (2006-01-10) (or DBD::SQLite prior to 1.12) unless you explicitly issue "PRAGMA legacy_file_format=ON". - Enabled SQLITE_ENABLE_FTS4 - Enabled SQLITE_ENABLE_STAT3 - Resolved #73159: FTS tokenizer segfault (ISHIGAKI) - Resolved #73787: sqlite_see_if_its_a_number causes a buffer overflow (ISHIGAKI) OBS-URL: https://build.opensuse.org/request/show/141389 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DBD-SQLite?expand=0&rev=34
2012-11-16 08:01:33 +00:00
Name: perl-DBD-SQLite
Version: 1.60
Release: 0
%define cpan_name DBD-SQLite
Summary: Self-contained RDBMS in a DBI Driver
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DBI) >= 1.57
BuildRequires: perl(Test::Builder) >= 0.86
Requires: perl(DBI) >= 1.57
Requires: perl(Test::Builder) >= 0.86
%{perl_requires}
%description
SQLite is a public domain file-based relational database engine that you
can find at http://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 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::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
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes constants.inc dbdimp_tokenizer.inc dbdimp_virtual_table.inc README
%license LICENSE
%changelog