#
# Conditional build:
%bcond_without tests # do not perform "make test"
-
+#
%include /usr/lib/rpm/macros.perl
%define pdir Data
%define pnam Page
Summary: Data::Page - help when paging through sets of results
+Summary(pl): Data::Page - pomoc przy stronicowaniu zbiorów wyników
Name: perl-Data-Page
Version: 1.01
Release: 1
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 9f66ce0f5e4136da71723864fc8480ea
+BuildRequires: perl-Module-Build
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
-BuildRequires: perl-Module-Build
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
on one page. This results in wanting to page through various pages of
data. The maths behind this is unfortunately fiddly, hence this
module.
+
The main concept is that you pass in the number of total entries, the
number of entries per page, and the current page number. You can then
call methods to find out how many pages of information there are, and
what number the first and last entries on the current page really are.
+%description -l pl
+Przy przeszukiwaniu du¿ych ilo¶ci danych zwykle zwracany zbiór wyników
+jest wiêkszy ni¿ chcieliby¶my wy¶wietliæ na jednej stronie. Powoduje
+to chêæ podzielenia danych na strony. Obliczenia przy tym s± niestety
+nietrywialne i st±d ten modu³.
+
+G³ówn± ide± jest to, ¿e przekazuje siê liczbê wszystkich elementów,
+liczbê elementów na stronie i aktualny numer strony. Mo¿na wtedy
+wywo³ywaæ metody, aby okre¶liæ liczbê stron z informacjami oraz numer
+pierwszego i ostatniego elementu na aktualnej stronie.
+
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}