forked from pool/perl-Data-Page
Accepting request 702486 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/702486 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Data-Page?expand=0&rev=6
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a414bd2e6f9ba8982017b3fbeaa460da8fbadee1cf5ec37c7e560948984871c3
|
|
||||||
size 8189
|
|
3
Data-Page-2.03.tar.gz
Normal file
3
Data-Page-2.03.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2efa52167d1f7ab35902cf32ae02776a623705d7919d4118981287b044ce3d8b
|
||||||
|
size 28899
|
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#description: |-
|
||||||
|
# override description from CPAN
|
||||||
|
#summary: override summary from CPAN
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_build: |-
|
||||||
|
# rm unused.files
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 11 05:07:39 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||||
|
|
||||||
|
- updated to 2.03
|
||||||
|
see /usr/share/doc/packages/perl-Data-Page/Changes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 1 09:44:31 UTC 2010 - coolo@novell.com
|
Wed Dec 1 09:44:31 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Data-Page
|
# spec file for package perl-Data-Page
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,29 +12,28 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Data-Page
|
Name: perl-Data-Page
|
||||||
|
Version: 2.03
|
||||||
|
Release: 0
|
||||||
%define cpan_name Data-Page
|
%define cpan_name Data-Page
|
||||||
Summary: Help when paging through sets of results
|
Summary: Help when paging through sets of results
|
||||||
License: GPL-1.0+ or Artistic-1.0
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Version: 2.02
|
Url: https://metacpan.org/release/%{cpan_name}
|
||||||
Release: 0
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
||||||
Url: http://search.cpan.org/dist/Data-Page/
|
Source1: cpanspec.yml
|
||||||
Source: http://www.cpan.org/modules/by-module/Data/Data-Page-%{version}.tar.gz
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Class::Accessor::Chained::Fast)
|
BuildRequires: perl(Class::Accessor::Chained::Fast)
|
||||||
BuildRequires: perl(Module::Build)
|
|
||||||
BuildRequires: perl(Test::Exception)
|
BuildRequires: perl(Test::Exception)
|
||||||
BuildRequires: perl(Test::More)
|
|
||||||
Requires: perl(Class::Accessor::Chained::Fast)
|
Requires: perl(Class::Accessor::Chained::Fast)
|
||||||
Requires: perl(Test::Exception)
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
When searching through large amounts of data, it is often the case that a
|
When searching through large amounts of data, it is often the case that a
|
||||||
@@ -42,30 +41,34 @@ 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
|
This results in wanting to page through various pages of data. The maths
|
||||||
behind this is unfortunately fiddly, hence this module.
|
behind this is unfortunately fiddly, hence this module.
|
||||||
|
|
||||||
The main concept is that you pass in the number of total entries, the number
|
The main concept is that you pass in the number of total entries, the
|
||||||
of entries per page, and the current page number. You can then call methods
|
number of entries per page, and the current page number. You can then call
|
||||||
to find out how many pages of information there are, and what number the
|
methods to find out how many pages of information there are, and what
|
||||||
first and last entries on the current page really are.
|
number the first and last entries on the current page really are.
|
||||||
|
|
||||||
|
For example, say we wished to page through the integers from 1 to 100 with
|
||||||
|
20 entries per page. The first page would consist of 1-20, the second page
|
||||||
|
from 21-40, the third page from 41-60, the fourth page from 61-80 and the
|
||||||
|
fifth page from 81-100. This module would help you work this out.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Build.PL installdirs=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
./Build build flags=%{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
%perl_make_install
|
||||||
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,755)
|
||||||
%doc CHANGES README
|
%doc Changes CONTRIBUTING README
|
||||||
|
%license LICENCE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user