3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: DBD::SQLite - Self Contained RDBMS in a DBI Driver (sqlite 3.x)
9 Summary(pl.UTF-8): DBD::SQLite - Kompletny RDBMS zawarty w sterowniku DBI (sqlite 3.x)
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 78a89cc8fd46bb2a5d537433dcccc8e6
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-DBI
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 DBD::SQLite is a DBI driver for SQLite database. SQLite is a public
27 domain RDBMS database engine that you can find at
28 <http://www.sqlite.org/>.
30 Rather than ask you to install SQLite first, DBD::SQLite includes the
31 entire thing in the distribution. So in order to get a fast
32 transaction capable RDBMS working for your perl project you simply
33 have to install this module, and nothing else.
35 To use databases created using older SQLite version (2.x) you should
36 use perl-DBD-SQLite2 package.
38 %description -l pl.UTF-8
39 DBD::SQLite to sterownik DBI do baz danych SQLite. SQLite to silnik
40 relacyjnych baz danych na licencji public domain. Można go znaleźć pod
41 adresem <http://www.sqlite.org/>.
43 DBD::SQLite zawiera w sobie cały silnik bazy danych. Dzięki temu aby
44 otrzymać działający RDBMS dostępny z poziomu Perla nie trzeba
45 instalować żadnych innych pakietów.
47 Aby używać baz danych stworzonych przy pomocy starszej wersji SQLite
48 (2.x) należy zainstalować pakiet perl-DBD-SQLite2.
51 %setup -q -n %{pdir}-%{pnam}-%{version}
54 echo y | %{__perl} Makefile.PL \
58 # dumps core with sqlite 3.5.4 sometimes (eg. t/06error.t)
61 OPTIMIZE="%{rpmcflags}"
63 %{?with_tests:%{__make} test}
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
77 %{perl_vendorarch}/DBD/SQLite.pm
78 %dir %{perl_vendorarch}/auto/DBD/SQLite
79 %{perl_vendorarch}/auto/DBD/SQLite/SQLite.bs
80 %attr(755,root,root) %{perl_vendorarch}/auto/DBD/SQLite/SQLite.so