|
|
994c9f1 |
Name: perl-multidimensional
|
|
|
994c9f1 |
Version: 0.010
|
|
|
bed0acb |
Release: 2%{?dist}
|
|
|
994c9f1 |
Summary: Disables multidimensional array emulation
|
|
|
994c9f1 |
License: GPL+ or Artistic
|
|
|
994c9f1 |
Group: Development/Libraries
|
|
|
994c9f1 |
URL: http://search.cpan.org/dist/multidimensional/
|
|
|
994c9f1 |
Source0: http://www.cpan.org/authors/id/I/IL/ILMARI/multidimensional-%{version}.tar.gz
|
|
|
994c9f1 |
# Lexical::SealRequireHints is only necessary for perl < 5.12
|
|
|
994c9f1 |
Patch0: no-Lexical-SealRequireHints.patch
|
|
|
994c9f1 |
BuildRequires: perl(B::Hooks::OP::Check) >= 0.19
|
|
|
994c9f1 |
BuildRequires: perl(ExtUtils::Depends)
|
|
|
994c9f1 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
994c9f1 |
BuildRequires: perl(lib)
|
|
|
994c9f1 |
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
|
994c9f1 |
BuildRequires: perl(Test::More)
|
|
|
994c9f1 |
BuildRequires: perl(Test::Pod)
|
|
|
994c9f1 |
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
994c9f1 |
BuildRequires: perl(XSLoader)
|
|
|
994c9f1 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%{?perl_default_filter}
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%description
|
|
|
994c9f1 |
Perl's multidimensional array emulation stems from the days before the language
|
|
|
994c9f1 |
had references, but these days it mostly serves to bite you when you typo a
|
|
|
994c9f1 |
hash slice by using the $ sigil instead of @.
|
|
|
994c9f1 |
|
|
|
994c9f1 |
This module lexically makes using multidimensional array emulation a fatal error
|
|
|
994c9f1 |
at compile time.
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%prep
|
|
|
994c9f1 |
%setup -q -n multidimensional-%{version}
|
|
|
994c9f1 |
%patch0 -p1
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%build
|
|
|
994c9f1 |
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
994c9f1 |
make %{?_smp_mflags}
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%install
|
|
|
994c9f1 |
make pure_install DESTDIR=%{buildroot}
|
|
|
994c9f1 |
|
|
|
994c9f1 |
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
994c9f1 |
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%{_fixperms} %{buildroot}/*
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%check
|
|
|
994c9f1 |
RELEASE_TESTING=1 make test
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%files
|
|
|
994c9f1 |
%doc Changes LICENSE README
|
|
|
994c9f1 |
%{perl_vendorarch}/auto/*
|
|
|
994c9f1 |
%{perl_vendorarch}/multidimensional*
|
|
|
994c9f1 |
%{_mandir}/man3/*
|
|
|
994c9f1 |
|
|
|
994c9f1 |
%changelog
|
|
|
bed0acb |
* Thu May 10 2012 Iain Arnell <iarnell@gmail.com> 0.010-2
|
|
|
bed0acb |
- drop unnecessary perl buildrequire
|
|
|
bed0acb |
|
|
|
994c9f1 |
* Mon Apr 09 2012 Iain Arnell <iarnell@gmail.com> 0.010-1
|
|
|
994c9f1 |
- Specfile autogenerated by cpanspec 1.79.
|
|
|
994c9f1 |
- remove Lexical::SealRequireHints dependency
|