3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: DBD::SQLite - DBI driver for SQLite database
9 Summary(pl): DBD::SQLite - sterownik DBI dla bazy SQLite
13 License: GPL or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: c5bccf84c698beb7b3063e4371151e88
17 BuildRequires: perl-devel >= 5.8
19 BuildRequires: perl-DBI
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 DBD::SQLite is a DBI driver for SQLite database. SQLite is a public
26 domain RDBMS database engine that you can find at
27 http://www.hwaci.com/sw/sqlite/.
30 DBD::SQLite to sterownik DBI do baz danych SQLite. SQLite to silnik
31 relacyjnych baz danych na licencji public domain. Mo¿na go znale¼æ pod
32 http://www.hwaci.com/sw/sqlite/.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
41 # If SQLITE_PTR_SZ is not set in OPTIMIZE SQLite assumes 64-bit
42 # architecture and fails.
44 OPTIMIZE="%{rpmcflags} -DSQLITE_PTR_SZ=`%{__perl} -MConfig -e 'print \"$Config{ptrsize}\";'`"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorarch}/DBD/SQLite.pm
61 %dir %{perl_vendorarch}/auto/DBD/SQLite
62 %{perl_vendorarch}/auto/DBD/SQLite/SQLite.bs
63 %attr(755,root,root) %{perl_vendorarch}/auto/DBD/SQLite/SQLite.so