3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
8 %define pnam DBI-AbstractSearch
9 Summary: Class::DBI::AbstractSearch - Abstract Class::DBI's SQL with SQL::Abstract::Limit
10 Name: perl-Class-DBI-AbstractSearch
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: d40e7301201135fe0246251097132a54
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 %if %{with autodeps} || %{with tests}
21 BuildRequires: perl(Class::DBI) >= 0.9
22 BuildRequires: perl(SQL::Abstract::Limit) >= 0.1
23 BuildRequires: perl(Test::More) >= 0.32
26 Requires: perl-Class-DBI
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Class::DBI::AbstractSearch is a Class::DBI plugin to glue
32 SQL::Abstract::Limit into Class::DBI.
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/Class/DBI/AbstractSearch.pm