2011-01-25 10:05:07 +00:00
|
|
|
Name: perl-Eval-Closure
|
2016-05-29 12:16:36 +00:00
|
|
|
Version: 0.14
|
2017-06-05 10:56:40 +00:00
|
|
|
Release: 3%{?dist}
|
2011-01-25 10:05:07 +00:00
|
|
|
Summary: Safely and cleanly create closures via string eval
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: http://search.cpan.org/dist/Eval-Closure/
|
2014-11-12 14:22:59 +00:00
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Eval-Closure-%{version}.tar.gz
|
2011-01-25 10:05:07 +00:00
|
|
|
BuildArch: noarch
|
2014-11-12 14:22:59 +00:00
|
|
|
# Module Build
|
2016-05-29 12:16:36 +00:00
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: make
|
2014-11-12 14:22:59 +00:00
|
|
|
BuildRequires: perl
|
2016-05-29 12:16:36 +00:00
|
|
|
BuildRequires: perl-generators
|
2015-01-19 22:27:04 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2014-11-12 14:22:59 +00:00
|
|
|
# Module Runtime
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
BuildRequires: perl(Devel::LexAlias) >= 0.05
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(overload)
|
2011-01-25 10:05:07 +00:00
|
|
|
BuildRequires: perl(Perl::Tidy)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
2014-11-12 14:22:59 +00:00
|
|
|
BuildRequires: perl(strict)
|
|
|
|
# Test Suite
|
|
|
|
BuildRequires: perl(B)
|
2016-05-29 12:16:36 +00:00
|
|
|
BuildRequires: perl(blib)
|
2015-01-19 22:27:04 +00:00
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
BuildRequires: perl(IPC::Open3)
|
2014-11-12 14:22:59 +00:00
|
|
|
BuildRequires: perl(PadWalker)
|
2011-01-25 10:05:07 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(Test::Requires)
|
2014-11-12 14:22:59 +00:00
|
|
|
BuildRequires: perl(warnings)
|
2015-01-19 22:27:04 +00:00
|
|
|
# Optional Tests
|
|
|
|
BuildRequires: perl(Test::Output)
|
2014-11-12 14:22:59 +00:00
|
|
|
# Runtime
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(Devel::LexAlias) >= 0.05
|
2011-01-25 10:05:07 +00:00
|
|
|
Requires: perl(Perl::Tidy)
|
|
|
|
|
|
|
|
%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
|
2014-11-12 14:22:59 +00:00
|
|
|
determines which variables are in scope inside the eval), and it can be quite
|
|
|
|
slow, especially if doing a large number of evals.
|
|
|
|
|
|
|
|
This module attempts to solve both of those problems. It provides an
|
|
|
|
eval_closure function, which evals a string in a clean environment, other than
|
|
|
|
a fixed list of specified variables. It also caches the result of the eval, so
|
|
|
|
that doing repeated evals of the same source, even with a different
|
|
|
|
environment, will be much faster (but note that the description is part of the
|
|
|
|
string to be evaled, so it must also be the same (or non-existent) if caching
|
|
|
|
is to work properly).
|
2011-01-25 10:05:07 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Eval-Closure-%{version}
|
|
|
|
|
|
|
|
%build
|
2014-11-12 14:22:59 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2011-01-25 10:05:07 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
2016-05-29 12:16:36 +00:00
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
2014-11-12 14:22:59 +00:00
|
|
|
%{_fixperms} %{buildroot}
|
2011-01-25 10:05:07 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%files
|
2014-11-12 14:22:59 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc Changes README
|
|
|
|
%{perl_vendorlib}/Eval/
|
|
|
|
%{_mandir}/man3/Eval::Closure.3*
|
2011-01-25 10:05:07 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-06-05 10:56:40 +00:00
|
|
|
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.14-3
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-02-11 02:55:02 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-05-29 12:16:36 +00:00
|
|
|
* Sun May 29 2016 Paul Howarth <paul@city-fan.org> - 0.14-1
|
|
|
|
- Update to 0.14
|
|
|
|
- A couple of minor optimizations (GH#8)
|
|
|
|
- BR: perl-generators
|
|
|
|
- Simplify find command using -delete
|
|
|
|
|
2016-05-15 15:01:20 +00:00
|
|
|
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-5
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-02-04 13:29:54 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-18 02:56:08 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-06 08:40:30 +00:00
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-2
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2015-05-12 07:52:46 +00:00
|
|
|
* Tue May 12 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-1
|
|
|
|
- Update to 0.13
|
|
|
|
- Fix tests under blead (GH#6)
|
|
|
|
|
2015-01-19 22:27:04 +00:00
|
|
|
* Mon Jan 19 2015 Paul Howarth <paul@city-fan.org> - 0.12-1
|
|
|
|
- Update to 0.12
|
|
|
|
- Fix tests under blead (GH#4)
|
|
|
|
|
2014-11-12 14:22:59 +00:00
|
|
|
* Wed Nov 12 2014 Paul Howarth <paul@city-fan.org> - 0.11-1
|
|
|
|
- Update to 0.11
|
|
|
|
- Support lexical subs on 5.18+
|
|
|
|
- Fix pod links
|
|
|
|
- Add "alias => 1" option for making closure variables actually alias the
|
|
|
|
closed over variables (so the variable referenced in the environment
|
|
|
|
hashref will actually be updated by changes made in the closure)
|
|
|
|
- Classify buildreqs by usage
|
|
|
|
- Use %%license
|
|
|
|
- Make %%files list more explicit
|
|
|
|
- Update %%description
|
|
|
|
- Don't need to remove empty directories from the buildroot
|
|
|
|
|
2014-08-29 00:40:05 +00:00
|
|
|
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-8
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 03:52:34 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
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.
|