]> git.pld-linux.org Git - packages/perl-Class-DBI-Pager.git/blob - perl-Class-DBI-Pager.spec
- cosmetics
[packages/perl-Class-DBI-Pager.git] / perl-Class-DBI-Pager.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Class
7 %define pnam    DBI-Pager
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
11 Version:        0.05
12 Release:        1
13 # Same as Perl
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
20 %if %{with tests}
21 BuildRequires:  perl-Class-DBI >= 0.90
22 BuildRequires:  perl-Data-Page >= 0.13
23 BuildRequires:  perl-Exporter-Lite
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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.
36
37 %description -l pl
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
40 co¶ w rodzaju:
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.
45
46 %prep
47 %setup -q -n %{pdir}-%{pnam}-%{version}
48
49 %build
50 %{__perl} Makefile.PL \
51         INSTALLDIRS=vendor
52
53 %{__make}
54
55 %{?with_tests:%{__make} test}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc Changes README
69 %{perl_vendorlib}/Class/DBI/Pager.pm
70 %{_mandir}/man3/*
This page took 0.076552 seconds and 4 git commands to generate.