3 %bcond_with tests # perform "make test" (requires working DBI connection)
7 %include /usr/lib/rpm/macros.perl
8 Summary: DBIx::SQLEngine - extends DBI with high-level operations
9 Summary(pl.UTF-8): DBIx::SQLEngine - rozszerzenie DBI o wysokopoziomowe operacje
10 Name: perl-DBIx-SQLEngine
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: 963f4e41b77f7a1f6287eeac760a94e1
18 URL: http://search.cpan.org/dist/DBIx-SQLEngine/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Class-MakeMethods >= 1.003
23 BuildRequires: perl-Class-MakeMethods-Template >= 1.003
24 BuildRequires: perl-DBI >= 1.0
25 BuildRequires: perl-DBIx-AnyDBD >= 2.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 The DBIx::SQLEngine class provides an extended interface for the DBI
32 database interface, adding methods that support ad-hoc SQL generation
33 and query execution in a single call.
35 %description -l pl.UTF-8
36 Klasa DBIx::SQLEngine udostępnia rozszerzony interfejs dla interfejsu
37 bazodanowego DBI, dodając metody obsługujące generowanie SQL w locie i
38 wykonywanie zapytań w pojedynczym wywołaniu.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %{perl_vendorlib}/DBIx/*.pm
62 %dir %{perl_vendorlib}/DBIx/SQLEngine
63 %{perl_vendorlib}/DBIx/SQLEngine/*.pm
64 %{perl_vendorlib}/DBIx/SQLEngine/Cache
65 %{perl_vendorlib}/DBIx/SQLEngine/Criteria
66 %{perl_vendorlib}/DBIx/SQLEngine/Driver
67 %{perl_vendorlib}/DBIx/SQLEngine/Record
68 %{perl_vendorlib}/DBIx/SQLEngine/RecordSet
69 %{perl_vendorlib}/DBIx/SQLEngine/Schema
70 %{perl_vendorlib}/DBIx/SQLEngine/Utility