2011-01-25 10:05:07 +00:00
|
|
|
Name: perl-Eval-Closure
|
2012-02-10 07:07:19 +00:00
|
|
|
Version: 0.08
|
2013-08-03 20:27:25 +00:00
|
|
|
Release: 6%{?dist}
|
2011-01-25 10:05:07 +00:00
|
|
|
Summary: Safely and cleanly create closures via string eval
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Eval-Closure/
|
|
|
|
Source0: http://www.cpan.org/authors/id/D/DO/DOY/Eval-Closure-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(PadWalker)
|
|
|
|
BuildRequires: perl(Perl::Tidy)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Sub::Exporter)
|
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(Test::Output)
|
|
|
|
BuildRequires: perl(Test::Requires)
|
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
Requires: perl(Perl::Tidy)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
%description
|
|
|
|
String eval is often used for dynamic code generation. For instance, Moose uses
|
|
|
|
it heavily, to generate inlined versions of accessors and constructors, which
|
2012-02-04 07:21:29 +00:00
|
|
|
speeds code up at runtime by a significant amount. String eval is not without
|
2011-01-25 10:05:07 +00:00
|
|
|
its issues however - it's difficult to control the scope it's used in (which
|
2012-02-04 07:21:29 +00:00
|
|
|
determines which variables are in scope inside the eval), and it's easy to miss
|
|
|
|
compilation errors, since eval catches them and sticks them in $@ instead.
|
2011-01-25 10:05:07 +00:00
|
|
|
|
2012-02-04 07:21:29 +00:00
|
|
|
This module attempts to solve these problems. It provides an eval_closure
|
|
|
|
function, which evals a string in a clean environment, other than a fixed list
|
|
|
|
of specified variables. Compilation errors are rethrown automatically.
|
2011-01-25 10:05:07 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Eval-Closure-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2013-08-03 20:27:25 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-24 08:51:52 +00:00
|
|
|
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 0.08-5
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 12:10:56 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-20 15:03:19 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-13 19:18:57 +00:00
|
|
|
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.08-2
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-02-10 07:07:19 +00:00
|
|
|
* Fri Feb 10 2012 Iain Arnell <iarnell@gmail.com> 0.08-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2012-02-04 07:21:29 +00:00
|
|
|
* Sat Feb 04 2012 Iain Arnell <iarnell@gmail.com> 0.07-1
|
|
|
|
- update to latest upstream version
|
|
|
|
- update description
|
|
|
|
|
2012-01-13 13:38:02 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-29 15:01:07 +00:00
|
|
|
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-06-07 07:09:20 +00:00
|
|
|
* Tue Jun 07 2011 Iain Arnell <iarnell@gmail.com> 0.06-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2011-05-04 03:16:51 +00:00
|
|
|
* Wed May 04 2011 Iain Arnell <iarnell@gmail.com> 0.05-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2011-04-20 07:32:06 +00:00
|
|
|
* Wed Apr 20 2011 Iain Arnell <iarnell@gmail.com> 0.04-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2011-03-03 15:55:06 +00:00
|
|
|
* Thu Mar 03 2011 Iain Arnell <iarnell@gmail.com> 0.03-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2011-02-08 21:50:39 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-28 04:08:20 +00:00
|
|
|
* Fri Jan 28 2011 Iain Arnell <iarnell@gmail.com> 0.02-1
|
|
|
|
- update to latest upstream version
|
|
|
|
|
2011-01-25 10:05:07 +00:00
|
|
|
* Sun Jan 23 2011 Iain Arnell <iarnell@gmail.com> 0.01-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|