%define pkg_name Data-Page %define pkg_version 2.00 %define rpm_pkg_version 2.00 %define rpm_pkg_release 5.n0i.8 Summary: Help when paging through sets of results Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/L/LB/LBROCARD/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(Module::Build) %{!?_without_test:BuildRequires: perl(Class::Accessor::Chained::Fast)} %{!?_without_test:BuildRequires: perl(Test::Exception)} %{!?_without_test:BuildRequires: perl(Test::More)} %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 %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc CHANGES README %changelog * Tue May 22 2007 Marius Feraru - 2.00-5.n0i.8 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - mass rebuild * Sun Jul 24 2005 Marius Feraru 2.00-4.n0i.7 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Wed Mar 30 2005 Marius Feraru 0:2.00-3.n0i.6 - automatic rebuild (perl 5.8.6) * Mon Jan 03 2005 Marius FERARU 0:2.00-3.n0i.5 - statically added perl(Class::Accessor::Chained::Fast) to requirements * Sat Dec 04 2004 Marius Feraru 0:2.00-2.n0i.4 - version 2.00 * Tue May 04 2004 Marius Feraru 0:1.01-1.n0i.3 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 - rebuild (perl 5.8.4) * Thu Jan 22 2004 Marius FERARU 0:1.01-0.n0i.2 - automatic rebuild (perl v.5.8.3) * Sat Jan 10 2004 Marius FERARU 0:1.01-0.n0i.1 - version 1.01 * Mon Nov 03 2003 Marius FERARU 0:0.18-0.n0i.1 - version 0.18 - spec file (re?)created using N0i::CPAN::RPMizer/2003102001