]> git.pld-linux.org Git - packages/perl-Data-Page-Pageset.git/blob - perl-Data-Page-Pageset.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Data-Page-Pageset.git] / perl-Data-Page-Pageset.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Data
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
9 Version:        1.02
10 Release:        1
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
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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:
27
28 1-6 7-12 13 14 15 16 17 18 19-24 25-30 31-36 37-41
29
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.
33
34 In this module, you can specify the pages_per_set or max_pagesets for
35 fine showing.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 %{__perl} Build.PL \
42         destdir=$RPM_BUILD_ROOT \
43         installdirs=vendor
44 ./Build
45
46 %{?with_tests:./Build test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 ./Build install
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes
59 %dir %{perl_vendorlib}/Data/Page
60 %{perl_vendorlib}/Data/Page/*.pm
61 %{perl_vendorlib}/Data/Page/Pageset
62 %{_mandir}/man3/*
This page took 0.085656 seconds and 4 git commands to generate.