[perl-Array-Base] Initial import

Jitka Plesnikova jplesnik at fedoraproject.org
Mon Jun 11 13:36:59 UTC 2012


commit 08537d54fd4e9a97921482e68ebeb3357409be54
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date:   Mon Jun 11 15:36:49 2012 +0200

    Initial import

 .gitignore           |    1 +
 perl-Array-Base.spec |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cc1d134 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Array-Base-0.005.tar.gz
diff --git a/perl-Array-Base.spec b/perl-Array-Base.spec
new file mode 100644
index 0000000..6d380c0
--- /dev/null
+++ b/perl-Array-Base.spec
@@ -0,0 +1,56 @@
+Name:           perl-Array-Base
+Version:        0.005
+Release:        1%{?dist}
+Summary:        Array index offsetting
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Array-Base/
+Source0:        http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/Array-Base-%{version}.tar.gz
+BuildRequires:  perl >= 0:5.008001
+BuildRequires:  perl(ExtUtils::CBuilder) >= 0.15
+BuildRequires:  perl(Lexical::SealRequireHints) >= 0.006
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage)
+BuildRequires:  perl(XSLoader)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Conflicts:      perl(B::Hooks::OP::Check) < 0.19
+
+%{?perl_default_filter}
+
+%description
+This module implements automatic offsetting of array indices. In normal
+Perl, the first element of an array has index 0, the second element has
+index 1, and so on. This module allows array indexes to start at some
+other value. Most commonly it is used to give the first element of an
+array the index 1 (and the second 2, and so on), to imitate the indexing
+behavior of FORTRAN and many other languages. It is usually considered
+poor style to do this.
+
+%prep
+%setup -q -n Array-Base-%{version}
+
+%build
+%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
+./Build
+
+%install
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Array*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Jun 08 2012 Jitka Plesnikova <jplesnik at redhat.com> 0.005-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..d72d1d5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+42daf2426cfbdf0d8ec709d3f94c2b50  Array-Base-0.005.tar.gz


More information about the scm-commits mailing list