Files
perl-DBD-SQLite2/perl-DBD-SQLite2.spec

92 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-DBD-SQLite2
#
# Copyright (c) 2012 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: perl-DBD-SQLite2
Version: 0.33
Release: 0
%define cpan_name DBD-SQLite2
Summary: Self Contained RDBMS in a DBI Driver (sqlite 2.x)
License: CHECK(GPL-1.0+ or Artistic-1.0)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DBD-SQLite2/
#Source: http://www.cpan.org/authors/id/M/MS/MSERGEANT/DBD-SQLite2-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DBI) >= 1.21
Requires: perl(DBI) >= 1.21
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
SQLite is a public domain RDBMS database engine that you can find at
http://www.hwaci.com/sw/sqlite/.
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.
SQLite supports the following features:
* Implements a large subset of SQL92
See http://www.hwaci.com/sw/sqlite/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 the DBI manpage for
details on how to use DBI itself.
%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
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes README
%changelog