8
0
Files
perl-Data-Page/perl-Data-Page.spec

65 lines
1.7 KiB
RPMSpec
Raw Normal View History

# norootforbuild
Name: perl-Data-Page
Version: 2.00
Release: 0
Summary: Perl Module for Paging through Sets of Results
Source: http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Data-Page-%{version}.tar.gz
URL: http://search.cpan.org/dist/Data-Page/lib/Data/Page.pm
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl perl-Test-Exception perl-Class-Accessor-Chained
BuildRequires: make perl perl-Test-Exception perl-Class-Accessor-Chained
%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.
Authors:
--------
Leon Brocard <acme@astray.com>
%prep
%setup -q -n "Data-Page-%{version}"
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make
%install
%perl_make_install
%perl_process_packlist
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc CHANGES README
%dir %{perl_vendorlib}/Data
%{perl_vendorlib}/Data/Page.pm
%{perl_vendorarch}/auto/Data
%{perl_vendorarch}/auto/Data/Page
%doc %{perl_man3dir}/Data::Page.%{perl_man3ext}*
/var/adm/perl-modules/%{name}
%changelog
* Tue Jul 22 2008 Pascal Bleser <guru@unixtech.be> 2.00
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: