3 # _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
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: f7143b55b27cc347936434a76fad15a8
17 BuildRequires: perl-devel >= 5.6
18 %if %{?_without_tests:0}%{!?_without_tests:1}
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 %{__make} OPTIMIZE="%{rpmcflags}"
43 %{!?_without_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorarch}/DBD/SQLite.pm
57 %dir %{perl_vendorarch}/auto/DBD/SQLite
58 %{perl_vendorarch}/auto/DBD/SQLite/SQLite.bs
59 %attr(755,root,root) %{perl_vendorarch}/auto/DBD/SQLite/SQLite.so