3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Class::DBI::Pager - pager utility for Class::DBI
9 Summary(pl): Class::DBI::Pager - narzêdzie stronicuj±ce dla Class::DBI
10 Name: perl-Class-DBI-Pager
14 License: GPL 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: ab4eb2c465318f992308dd2445ae55a9
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Class-DBI >= 0.90
22 BuildRequires: perl-Data-Page >= 0.13
23 BuildRequires: perl-Exporter-Lite
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Class::DBI::Pager is a plugin for Class::DBI, which glues Data::Page
30 with Class::DBI. This module reduces your work a lot, for example when
31 you have to do something like:
32 - retrieve objects from a database
33 - display objects with 20 items per page
34 In addition, your work will be reduced more, when you use
35 Template-Toolkit as your templating engine.
38 Class::DBI::Pager to wtyczka dla Class::DBI, która skleja Data::Page z
39 Class::DBI. Ten modu³ oszczêdza wiele pracy, na przyk³ad kiedy robimy
41 - odczytanie obiektów z bazy danych
42 - wy¶wietlenie obiektów po 20 elementów na stronie.
43 Ponadto jeszcze wiêcej pracy mo¿na oszczêdziæ przy u¿yciu
44 Template-Toolkitu jako silnika szablonów.
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/Class/DBI/Pager.pm