diff --git a/Data-Page-2.02.tar.gz b/Data-Page-2.02.tar.gz deleted file mode 100644 index af584dd..0000000 --- a/Data-Page-2.02.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a414bd2e6f9ba8982017b3fbeaa460da8fbadee1cf5ec37c7e560948984871c3 -size 8189 diff --git a/Data-Page-2.03.tar.gz b/Data-Page-2.03.tar.gz new file mode 100644 index 0000000..46d3274 --- /dev/null +++ b/Data-Page-2.03.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2efa52167d1f7ab35902cf32ae02776a623705d7919d4118981287b044ce3d8b +size 28899 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..76ad4a4 --- /dev/null +++ b/cpanspec.yml @@ -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 diff --git a/perl-Data-Page.changes b/perl-Data-Page.changes index c7a1155..ad1cedc 100644 --- a/perl-Data-Page.changes +++ b/perl-Data-Page.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 11 05:07:39 UTC 2019 - Stephan Kulow + +- updated to 2.03 + see /usr/share/doc/packages/perl-Data-Page/Changes + ------------------------------------------------------------------- Wed Dec 1 09:44:31 UTC 2010 - coolo@novell.com diff --git a/perl-Data-Page.spec b/perl-Data-Page.spec index 5b902f1..2f82fe2 100644 --- a/perl-Data-Page.spec +++ b/perl-Data-Page.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 +Version: 2.03 +Release: 0 %define cpan_name Data-Page 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 -Version: 2.02 -Release: 0 -Url: http://search.cpan.org/dist/Data-Page/ -Source: http://www.cpan.org/modules/by-module/Data/Data-Page-%{version}.tar.gz +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Class::Accessor::Chained::Fast) -BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Exception) -BuildRequires: perl(Test::More) Requires: perl(Class::Accessor::Chained::Fast) -Requires: perl(Test::Exception) +%{perl_requires} %description 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 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. +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. + +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 %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %check -./Build test +make test %install -./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%perl_make_install +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root,-) -%doc CHANGES README +%defattr(-,root,root,755) +%doc Changes CONTRIBUTING README +%license LICENCE %changelog