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,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aec25125b24a6a1a5f18b48d511c7502a2087f74292b9521f2e4a6d99220e843
size 6448

3
Data-Page-2.02.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a414bd2e6f9ba8982017b3fbeaa460da8fbadee1cf5ec37c7e560948984871c3
size 8189

17
perl-Data-Page.changes Normal file
View File

@@ -0,0 +1,17 @@
-------------------------------------------------------------------
Tue Aug 31 21:58:00 UTC 2010 - pascal.bleser@opensuse.org
- update to 2.02:
* fix SQL documentation
* added change_entries_per_page
* run perltidy on the modules
- changes from 2.01:
* add human-readable license to the documentation
-------------------------------------------------------------------
Tue Jul 22 00:00:00 UTC 2008 - guru@unixtech.be
- new package

View File

@@ -1,64 +1,57 @@
# vim: set sw=4 ts=4 et nu:
# norootforbuild # norootforbuild
Name: perl-Data-Page Name: perl-Data-Page
Version: 2.00 Version: 2.02
Release: 0 Release: 0
Summary: Perl Module for Paging through Sets of Results Summary: Help when paging through sets of results
Source: http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Data-Page-%{version}.tar.gz 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 URL: http://search.cpan.org/dist/Data-Page
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
License: Perl License License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl perl-Test-Exception perl-Class-Accessor-Chained Requires: perl = %{perl_version}
BuildRequires: make perl perl-Test-Exception perl-Class-Accessor-Chained 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 %description
When searching through large amounts of data, it is often the case that a 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 result set is returned that is larger than we want to display on one page.
page. This results in wanting to page through various pages of data. The maths
This results in wanting to page through various pages of data. The maths
behind this is unfortunately fiddly, hence this module. behind this is unfortunately fiddly, hence this module.
The main concept is that you pass in the number of total entries, the number The main concept is that you pass in the number of total entries, the
of entries per page, and the current page number. You can then call methods to number of entries per page, and the current page number. You can then call
find out how many pages of information there are, and what number the first methods to find out how many pages of information there are, and what
and last entries on the current page really are. number the first and last entries on the current page really are.
Authors:
--------
Leon Brocard <acme@astray.com>
%prep %prep
%setup -q -n "Data-Page-%{version}" %setup -q -n "Data-Page-%{version}"
%build %build
%__perl Makefile.PL PREFIX="%{_prefix}" %__perl ./Build.PL
%__make ./Build
%install %install
%perl_make_install ./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist %perl_process_packlist
%check
./Build test
%clean %clean
%__rm -rf "%{buildroot}" %{?buildroot:%__rm -rf "%{buildroot}"}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc CHANGES README %doc README NINJA CHANGES
%dir %{perl_vendorlib}/Data %dir %{perl_vendorlib}/Data
%{perl_vendorlib}/Data/Page.pm %{perl_vendorlib}/Data/Page.pm
%{perl_vendorarch}/auto/Data %dir %{perl_vendorarch}/auto/Data
%{perl_vendorarch}/auto/Data/Page %{perl_vendorarch}/auto/Data/Page
%doc %{perl_man3dir}/Data::Page.%{perl_man3ext}* %doc %{perl_man3dir}/Data::Page.%{perl_man3ext}%{ext_man}
/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: