8
0
Pascal Bleser
2010-08-31 22:01:25 +00:00
committed by Git OBS Bridge
parent 27647e4c6e
commit 18904e0050
4 changed files with 53 additions and 43 deletions

View File

@@ -1,64 +1,57 @@
# vim: set sw=4 ts=4 et nu:
# 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
Name: perl-Data-Page
Version: 2.02
Release: 0
Summary: Help when 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
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: perl(Module::Build) >= 0.35
BuildRequires: perl(Test::More)
BuildRequires: perl(Class::Accessor::Chained::Fast)
BuildRequires: perl(Test::Exception)
Requires: perl(Class::Accessor::Chained::Fast)
%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
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>
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 "Data-Page-%{version}"
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make
%__perl ./Build.PL
./Build
%install
%perl_make_install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%__rm -rf "%{buildroot}"
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc CHANGES README
%doc README NINJA CHANGES
%dir %{perl_vendorlib}/Data
%{perl_vendorlib}/Data/Page.pm
%{perl_vendorarch}/auto/Data
%dir %{perl_vendorarch}/auto/Data
%{perl_vendorarch}/auto/Data/Page
%doc %{perl_man3dir}/Data::Page.%{perl_man3ext}*
/var/adm/perl-modules/%{name}
%doc %{perl_man3dir}/Data::Page.%{perl_man3ext}%{ext_man}
%changelog
* Tue Jul 22 2008 Pascal Bleser <guru@unixtech.be> 2.00
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: