[packages/perl-Data-Page-Pageset] - initial
arekm
arekm at pld-linux.org
Tue Mar 22 10:47:09 CET 2016
commit c0cd1901f354cc8ed5cf91ce04844731dd33e9e6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Mar 22 10:46:54 2016 +0100
- initial
perl-Data-Page-Pageset.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/perl-Data-Page-Pageset.spec b/perl-Data-Page-Pageset.spec
new file mode 100644
index 0000000..9aa5f21
--- /dev/null
+++ b/perl-Data-Page-Pageset.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Data
+%define pnam Page-Pageset
+%include /usr/lib/rpm/macros.perl
+Summary: Data::Page::Pageset - change long page list to be shorter and well navigate
+Name: perl-Data-Page-Pageset
+Version: 1.02
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 859bb3abdfa710ef38b1140274eae051
+URL: http://search.cpan.org/dist/Data-Page-Pageset/
+BuildRequires: perl-Data-Page
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pages number can be very high, and it is not comfortable to show user
+from the first page to the last page list. Sometimes we need split the
+page list into some sets to shorten the page list, the form is like:
+
+1-6 7-12 13 14 15 16 17 18 19-24 25-30 31-36 37-41
+
+the first two part indicats the two pagesets, and in current pageset,
+we provide the normal page list from the first one to the last one,
+and provide the rest pagesets to indicate the pages scope.
+
+In this module, you can specify the pages_per_set or max_pagesets for
+fine showing.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+ destdir=$RPM_BUILD_ROOT \
+ installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%dir %{perl_vendorlib}/Data/Page
+%{perl_vendorlib}/Data/Page/*.pm
+%{perl_vendorlib}/Data/Page/Pageset
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Data-Page-Pageset.git/commitdiff/c0cd1901f354cc8ed5cf91ce04844731dd33e9e6
More information about the pld-cvs-commit
mailing list