2012-05-07 19:17:21 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-DBD-SQLite2
|
|
|
|
#
|
2015-04-16 20:06:23 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-05-07 19:17:21 +00:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-DBD-SQLite2
|
2015-12-09 11:10:43 +00:00
|
|
|
Version: 0.37
|
2012-05-07 19:17:21 +00:00
|
|
|
Release: 0
|
2015-04-16 20:06:23 +00:00
|
|
|
%define cpan_name DBD-SQLite2
|
2012-05-07 19:17:21 +00:00
|
|
|
Summary: Self Contained RDBMS in a DBI Driver (sqlite 2.x)
|
2015-04-16 20:06:23 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2012-05-07 19:17:21 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/DBD-SQLite2/
|
2015-04-16 20:06:23 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/R/RU/RURBAN/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-05-07 19:17:21 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-04-16 20:06:23 +00:00
|
|
|
BuildRequires: perl(DBI) >= 1.625
|
|
|
|
Requires: perl(DBI) >= 1.625
|
|
|
|
Recommends: perl(DBD::SQLite) >= 1.37
|
|
|
|
Recommends: perl(DBI) >= 1.625
|
2012-05-07 19:17:21 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
SQLite is a public domain RDBMS database engine that you can find at
|
2015-04-16 20:06:23 +00:00
|
|
|
http://www.sqlite.org/.
|
2012-05-07 19:17:21 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2015-12-09 11:10:43 +00:00
|
|
|
For real work please use the updated DBD::SQLite driver with the up-to-date
|
|
|
|
sqlite3 backend. SQLite2 supports the following features:
|
2012-05-07 19:17:21 +00:00
|
|
|
|
|
|
|
* Implements a large subset of SQL92
|
|
|
|
|
2015-12-09 11:10:43 +00:00
|
|
|
See http://www.sqlite.org/lang.html for details.
|
2012-05-07 19:17:21 +00:00
|
|
|
|
|
|
|
* A complete DB in a single disk file
|
|
|
|
|
2015-12-09 11:10:43 +00:00
|
|
|
Everything for your database is stored in a single disk file, making it
|
|
|
|
easier to move things around than with DBD::CSV.
|
2012-05-07 19:17:21 +00:00
|
|
|
|
|
|
|
* Atomic commit and rollback
|
|
|
|
|
2015-12-09 11:10:43 +00:00
|
|
|
Yes, DBD::SQLite2 is small and light, but it supports full transactions
|
2012-05-07 19:17:21 +00:00
|
|
|
|
|
|
|
* Extensible
|
|
|
|
|
2015-12-09 11:10:43 +00:00
|
|
|
User-defined aggregate or regular functions can be registered with the SQL
|
|
|
|
parser.
|
2012-05-07 19:17:21 +00:00
|
|
|
|
|
|
|
There's lots more to it, so please refer to the docs on the SQLite web
|
2015-12-09 11:10:43 +00:00
|
|
|
page, listed above, for SQL details. Also refer to DBI for details on how
|
|
|
|
to use DBI itself.
|
2012-05-07 19:17:21 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%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
|
2015-04-16 20:06:23 +00:00
|
|
|
%defattr(-,root,root,755)
|
2012-05-07 19:17:21 +00:00
|
|
|
%doc Changes README
|
|
|
|
|
|
|
|
%changelog
|