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 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 * fix SQL documentation
* added change_entries_per_page * added change_entries_per_page
* run perltidy on the modules * run perltidy on the modules
- changes from 2.01: - changes from 2.01:
* add human-readable license to the documentation * add human-readable license to the documentation
@@ -14,4 +21,3 @@ Tue Jul 22 00:00:00 UTC 2008 - guru@unixtech.be
- new package - 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 # norootforbuild
Name: perl-Data-Page Name: perl-Data-Page
Version: 2.02 %define cpan_name Data-Page
Release: 0
Summary: Help when paging through sets of results Summary: Help when paging through sets of results
Source: http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Data-Page-%{version}.tar.gz Version: 2.02
URL: http://search.cpan.org/dist/Data-Page Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
License: Perl License Url: http://search.cpan.org/dist/Data-Page/
BuildRoot: %{_tmppath}/build-%{name}-%{version} #Source: http://www.cpan.org/modules/by-module/Data/Data-Page-%{version}.tar.gz
Requires: perl = %{perl_version} Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl(Module::Build) >= 0.35 BuildArch: noarch
BuildRequires: perl(Test::More) 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(Class::Accessor::Chained::Fast)
BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
Requires: perl = %{perl_version}
Requires: perl(Class::Accessor::Chained::Fast) Requires: perl(Class::Accessor::Chained::Fast)
Requires: perl(Test::Exception)
%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
result set is returned that is larger than we want to display on one page. 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 The main concept is that you pass in the number of total entries, the number
number of entries per page, and the current page number. You can then call of entries per page, and the current page number. You can then call methods
methods to find out how many pages of information there are, and what to find out how many pages of information there are, and what number the
number the first and last entries on the current page really are. first and last entries on the current page really are.
Authors:
--------
James Laver
%prep %prep
%setup -q -n "Data-Page-%{version}" %setup -q -n %{cpan_name}-%{version}
%build %build
%__perl ./Build.PL %{__perl} Build.PL installdirs=vendor
./Build ./Build build flags=%{?_smp_mflags}
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check %check
./Build test ./Build test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%perl_gen_filelist
%clean %clean
%{?buildroot:%__rm -rf "%{buildroot}"} %{__rm} -rf $RPM_BUILD_ROOT
%files %files -f %{name}.files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc README NINJA CHANGES %doc CHANGES README
%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}
%changelog