%global pkg_name Data-Page-Balanced %global pkg_version 1.0.0 %global rpm_pkg_version 1.0.0 %global rpm_pkg_release 1.n0i.1 Summary: Pager with balanced entries per page Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module/Data/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(version) BuildRequires: perl(Class::Accessor::Chained::Fast) BuildRequires: perl(Data::Page) >= 2.00 Requires: perl(Class::Accessor::Chained::Fast) Requires: perl(Data::Page) >= 2.00 %description This module behaves like Data::Page except that it balances the number of entries per page so there is no last page with only a few entries. If, for example, you have 26 entries and want 25 entries per page, a normal pager would give you two pages with 25 entries on the first and 1 on the last. Data::Page::Balanced will instead give you one page with 26 entries. %prep %setup -q -n %{pkg_name}-%{pkg_version} %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 Oct 30 2007 Marius Feraru - 1.0.0-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.11 - version 1.0.0