Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > contrib-release-src > by-pkgid > 69b2ae574bba99472b341dcbb7caa483 > files > 2

perl-Template-Plugin-Page-0.10-6mdv2009.0.src.rpm

%define realname Template-Plugin-Page
%define name perl-%realname
%define version 0.10
%define release %mkrel 6

Summary:	A plugin to help when paging through sets of results
Name:		%name
Version:	%version
Release:	%release
License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%realname/
Source:		%realname-%version.tar.bz2
BuildRequires:	perl-devel perl-Data-Page
BuildRequires:  perl-Template-Toolkit
BuildArch:	noarch
Buildroot:	%_tmppath/%name-root

%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.

%prep
%setup -q -n %realname-%version

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{make}

%check
make test

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%files
%defattr(-,root,root)
%doc README Changes
%perl_vendorlib/Template/Plugin/*
%_mandir/*/*

%clean
rm -rf $RPM_BUILD_ROOT



%changelog
* Thu Jul 31 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.10-6mdv2009.0
+ Revision: 258476
- rebuild

* Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.10-5mdv2009.0
+ Revision: 246507
- rebuild

* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 0.10-3mdv2008.1
+ Revision: 140717
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sat Sep 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.10-3mdv2008.0
+ Revision: 86943
- rebuild


* Mon Jan 16 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.10-2mdk
- Add BuildRequires: perl-Template-Toolkit

* Sun Jan 15 2006 Frederic Lepied <flepied@mandriva.com> 0.10-1mdk
- Initial package