diff --git a/Data-Page-2.00.tar.gz b/Data-Page-2.00.tar.gz deleted file mode 100644 index 1db8677..0000000 --- a/Data-Page-2.00.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aec25125b24a6a1a5f18b48d511c7502a2087f74292b9521f2e4a6d99220e843 -size 6448 diff --git a/Data-Page-2.02.tar.gz b/Data-Page-2.02.tar.gz new file mode 100644 index 0000000..af584dd --- /dev/null +++ b/Data-Page-2.02.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a414bd2e6f9ba8982017b3fbeaa460da8fbadee1cf5ec37c7e560948984871c3 +size 8189 diff --git a/perl-Data-Page.changes b/perl-Data-Page.changes new file mode 100644 index 0000000..6330a1e --- /dev/null +++ b/perl-Data-Page.changes @@ -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 + + diff --git a/perl-Data-Page.spec b/perl-Data-Page.spec index aba75ba..43414a7 100644 --- a/perl-Data-Page.spec +++ b/perl-Data-Page.spec @@ -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 +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 2.00 -- new package - -# Local Variables: -# mode: rpm-spec -# tab-width: 3 -# End: