8
0
Christian Wittmer
2010-09-06 11:41:35 +00:00
committed by Git OBS Bridge
parent 18904e0050
commit 64c6e98920
4 changed files with 65 additions and 36 deletions

3
Data-Page-2.02.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:11b75b6facba1d42920e2059ad0e14497ad438512ef09c2991dce2661c9bef6d
size 6890

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a414bd2e6f9ba8982017b3fbeaa460da8fbadee1cf5ec37c7e560948984871c3
size 8189

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Sep 6 11:39:58 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
- noarch pkg
- fix deps
o no need for Module::Build >= 0.35
-------------------------------------------------------------------
Tue Aug 31 21:58:00 UTC 2010 - pascal.bleser@opensuse.org
@@ -5,7 +13,6 @@ Tue Aug 31 21:58:00 UTC 2010 - pascal.bleser@opensuse.org
* fix SQL documentation
* added change_entries_per_page
* run perltidy on the modules
- changes from 2.01:
* add human-readable license to the documentation
@@ -14,4 +21,3 @@ Tue Jul 22 00:00:00 UTC 2008 - guru@unixtech.be
- new package

View File

@@ -1,57 +1,80 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Data-Page (Version 2.02)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#
# norootforbuild
Name: perl-Data-Page
Version: 2.02
Release: 0
%define cpan_name Data-Page
Summary: Help when paging through sets of results
Source: http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Data-Page-%{version}.tar.gz
URL: http://search.cpan.org/dist/Data-Page
Version: 2.02
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: perl(Module::Build) >= 0.35
BuildRequires: perl(Test::More)
Url: http://search.cpan.org/dist/Data-Page/
#Source: http://www.cpan.org/modules/by-module/Data/Data-Page-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl(Module::Build)
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Class::Accessor::Chained::Fast)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
Requires: perl = %{perl_version}
Requires: perl(Class::Accessor::Chained::Fast)
Requires: perl(Test::Exception)
%description
When searching through large amounts of data, it is often the case that a
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.
Authors:
--------
James Laver
%prep
%setup -q -n "Data-Page-%{version}"
%setup -q -n %{cpan_name}-%{version}
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%perl_gen_filelist
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README NINJA CHANGES
%dir %{perl_vendorlib}/Data
%{perl_vendorlib}/Data/Page.pm
%dir %{perl_vendorarch}/auto/Data
%{perl_vendorarch}/auto/Data/Page
%doc %{perl_man3dir}/Data::Page.%{perl_man3ext}%{ext_man}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc CHANGES README
%changelog