commit 994c9f19969c83f882d97372e3434c2972c2b55a Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Thu May 10 05:08:04 2012 -0600 initial import (rhbz#810937) .gitignore | 1 + no-Lexical-SealRequireHints.patch | 11 +++++++ perl-multidimensional.spec | 61 +++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 74 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..6bf1cc3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/multidimensional-0.010.tar.gz diff --git a/no-Lexical-SealRequireHints.patch b/no-Lexical-SealRequireHints.patch new file mode 100644 index 0000000..fee8012 --- /dev/null +++ b/no-Lexical-SealRequireHints.patch @@ -0,0 +1,11 @@ +diff -up multidimensional-0.010/lib/multidimensional.pm.orig multidimensional-0.010/lib/multidimensional.pm +--- multidimensional-0.010/lib/multidimensional.pm.orig 2012-01-27 05:34:41.000000000 -0700 ++++ multidimensional-0.010/lib/multidimensional.pm 2012-04-09 10:34:54.000000000 -0600 +@@ -8,7 +8,6 @@ package multidimensional; + use strict; + use warnings; + +-use Lexical::SealRequireHints 0.005; + use B::Hooks::OP::Check 0.19; + use XSLoader; + diff --git a/perl-multidimensional.spec b/perl-multidimensional.spec new file mode 100644 index 0000000..273b22a --- /dev/null +++ b/perl-multidimensional.spec @@ -0,0 +1,61 @@ +Name: perl-multidimensional +Version: 0.010 +Release: 1%{?dist} +Summary: Disables multidimensional array emulation +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/multidimensional/ +Source0: http://www.cpan.org/authors/id/I/IL/ILMARI/multidimensional-%{version}.tar.gz +# Lexical::SealRequireHints is only necessary for perl < 5.12 +Patch0: no-Lexical-SealRequireHints.patch +BuildRequires: perl >= 0:5.008 +BuildRequires: perl(B::Hooks::OP::Check) >= 0.19 +BuildRequires: perl(ExtUtils::Depends) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(lib) +BuildRequires: perl(Pod::Coverage::TrustPod) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +BuildRequires: perl(XSLoader) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Perl's multidimensional array emulation stems from the days before the language +had references, but these days it mostly serves to bite you when you typo a +hash slice by using the $ sigil instead of @. + +This module lexically makes using multidimensional array emulation a fatal error +at compile time. + +%prep +%setup -q -n multidimensional-%{version} +%patch0 -p1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; + +%{_fixperms} %{buildroot}/* + +%check +RELEASE_TESTING=1 make test + +%files +%doc Changes LICENSE README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/multidimensional* +%{_mandir}/man3/* + +%changelog +* Mon Apr 09 2012 Iain Arnell <iarnell@xxxxxxxxx> 0.010-1 +- Specfile autogenerated by cpanspec 1.79. +- remove Lexical::SealRequireHints dependency diff --git a/sources b/sources index e69de29..5e628f3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +17d5ddea428a0ac026f4baa14ff60f24 multidimensional-0.010.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel