%define upstream_name Data-Page %define upstream_version 2.02 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Help when paging through sets of results License: Artistic/GPL Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name}/ Source0: http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Class::Accessor::Chained) BuildRequires: perl(Test::Exception) Requires: perl(Class::Accessor::Chained::Fast) BuildArch: noarch Buildroot: %{_tmppath}/%{name}-%{version}-%{release} %description When searching through large amounts of data, it is often the case that a result set is returned that is larger than we want to display 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. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README CHANGES %perl_vendorlib/Data/* %_mandir/*/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 2.20.0-2.mga3 + Revision: 365396 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Jan 13 2011 jquelin <jquelin> 2.20.0-1.mga1 + Revision: 10610 - imported package perl-Data-Page