3 %bcond_without tests # do not perform "make test"
6 %define pnam Page-Pageset
7 Summary: Data::Page::Pageset - change long page list to be shorter and well navigate
8 Name: perl-Data-Page-Pageset
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 859bb3abdfa710ef38b1140274eae051
15 URL: http://search.cpan.org/dist/Data-Page-Pageset/
16 BuildRequires: perl-Data-Page
17 BuildRequires: perl-Module-Build
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Pages number can be very high, and it is not comfortable to show user
25 from the first page to the last page list. Sometimes we need split the
26 page list into some sets to shorten the page list, the form is like:
28 1-6 7-12 13 14 15 16 17 18 19-24 25-30 31-36 37-41
30 the first two part indicats the two pagesets, and in current pageset,
31 we provide the normal page list from the first one to the last one,
32 and provide the rest pagesets to indicate the pages scope.
34 In this module, you can specify the pages_per_set or max_pagesets for
38 %setup -q -n %{pdir}-%{pnam}-%{version}
42 destdir=$RPM_BUILD_ROOT \
46 %{?with_tests:./Build test}
49 rm -rf $RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %dir %{perl_vendorlib}/Data/Page
60 %{perl_vendorlib}/Data/Page/*.pm
61 %{perl_vendorlib}/Data/Page/Pageset