3 %bcond_without tests # do not perform "make test"
7 Summary: DBIx::Simple - Very complete easy-to-use OO interface to DBI
11 License: Any from http://www.opensource.org/licenses/alphabetical
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/DBIx/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: eb53ef4a93be7ebf043cd49075e81913
15 URL: https://metacpan.org/release/DBIx-Simple
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
18 BuildRequires: rpmbuild(macros) >= 1.745
20 BuildRequires: perl-DBI >= 1.21
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 DBIx::Simple provides a simplified interface to DBI, Perl's powerful
29 This module is aimed at rapid development and easy maintenance. Query
30 preparation and execution are combined in a single method, the result
31 object (which is a wrapper around the statement handle) provides easy
32 row-by-row and slurping methods.
34 The query method returns either a result object, or a dummy object.
35 The dummy object returns undef (or an empty list) for all methods and
36 when used in boolean context, is false. The dummy object lets you
37 postpone (or skip) error checking, but it also makes immediate error
38 checking simply $db->query(...) or die $db->error.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %{perl_vendorlib}/DBIx/Simple.pm
63 %{perl_vendorlib}/DBIx/Simple
64 %{_mandir}/man3/DBIx::Simple*.3*