Blame SPECS/perl-Eval-Closure.spec

2d01b4
# Run optional test
2d01b4
%if ! (0%{?rhel})
2d01b4
%bcond_without perl_Eval_Closure_enables_optional_test
2d01b4
%else
2d01b4
%bcond_with perl_Eval_Closure_enables_optional_test
2d01b4
%endif
2d01b4
2d01b4
Name:           perl-Eval-Closure
2d01b4
Version:        0.14
2d01b4
Release:        5%{?dist}
2d01b4
Summary:        Safely and cleanly create closures via string eval
2d01b4
License:        GPL+ or Artistic
2d01b4
URL:            http://search.cpan.org/dist/Eval-Closure/
2d01b4
Source0:        http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Eval-Closure-%{version}.tar.gz
2d01b4
BuildArch:      noarch
2d01b4
# Module Build
2d01b4
BuildRequires:  coreutils
2d01b4
BuildRequires:  findutils
2d01b4
BuildRequires:  make
2d01b4
BuildRequires:  perl-interpreter
2d01b4
BuildRequires:  perl-generators
2d01b4
BuildRequires:  perl(ExtUtils::MakeMaker)
2d01b4
# Module Runtime
2d01b4
BuildRequires:  perl(Carp)
2d01b4
BuildRequires:  perl(constant)
2d01b4
BuildRequires:  perl(Devel::LexAlias) >= 0.05
2d01b4
BuildRequires:  perl(Exporter)
2d01b4
BuildRequires:  perl(overload)
2d01b4
BuildRequires:  perl(Perl::Tidy)
2d01b4
BuildRequires:  perl(Scalar::Util)
2d01b4
BuildRequires:  perl(strict)
2d01b4
# Test Suite
2d01b4
BuildRequires:  perl(B)
2d01b4
BuildRequires:  perl(blib)
2d01b4
BuildRequires:  perl(File::Spec)
2d01b4
BuildRequires:  perl(IO::Handle)
2d01b4
BuildRequires:  perl(IPC::Open3)
2d01b4
BuildRequires:  perl(PadWalker)
2d01b4
BuildRequires:  perl(Test::Fatal)
2d01b4
BuildRequires:  perl(Test::More) >= 0.88
2d01b4
BuildRequires:  perl(Test::Requires)
2d01b4
BuildRequires:  perl(warnings)
2d01b4
%if %{with perl_Eval_Closure_enables_optional_test}
2d01b4
# Optional Tests
2d01b4
BuildRequires:  perl(Test::Output)
2d01b4
%endif
2d01b4
# Runtime
2d01b4
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
2d01b4
Requires:       perl(Devel::LexAlias) >= 0.05
2d01b4
Requires:       perl(Perl::Tidy)
2d01b4
2d01b4
%description
2d01b4
String eval is often used for dynamic code generation. For instance, Moose uses
2d01b4
it heavily, to generate inlined versions of accessors and constructors, which
2d01b4
speeds code up at runtime by a significant amount. String eval is not without
2d01b4
its issues however - it's difficult to control the scope it's used in (which
2d01b4
determines which variables are in scope inside the eval), and it can be quite
2d01b4
slow, especially if doing a large number of evals.
2d01b4
 
2d01b4
This module attempts to solve both of those problems. It provides an
2d01b4
eval_closure function, which evals a string in a clean environment, other than
2d01b4
a fixed list of specified variables. It also caches the result of the eval, so
2d01b4
that doing repeated evals of the same source, even with a different
2d01b4
environment, will be much faster (but note that the description is part of the
2d01b4
string to be evaled, so it must also be the same (or non-existent) if caching
2d01b4
is to work properly).
2d01b4
2d01b4
%prep
2d01b4
%setup -q -n Eval-Closure-%{version}
2d01b4
2d01b4
%build
2d01b4
perl Makefile.PL INSTALLDIRS=vendor
2d01b4
make %{?_smp_mflags}
2d01b4
2d01b4
%install
2d01b4
make pure_install DESTDIR=%{buildroot}
2d01b4
find %{buildroot} -type f -name .packlist -delete
2d01b4
%{_fixperms} %{buildroot}
2d01b4
2d01b4
%check
2d01b4
make test
2d01b4
2d01b4
%files
2d01b4
%license LICENSE
2d01b4
%doc Changes README
2d01b4
%{perl_vendorlib}/Eval/
2d01b4
%{_mandir}/man3/Eval::Closure.3*
2d01b4
2d01b4
%changelog
2d01b4
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-5
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2d01b4
2d01b4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-4
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2d01b4
2d01b4
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.14-3
2d01b4
- Perl 5.26 rebuild
2d01b4
2d01b4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14-2
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2d01b4
2d01b4
* Sun May 29 2016 Paul Howarth <paul@city-fan.org> - 0.14-1
2d01b4
- Update to 0.14
2d01b4
  - A couple of minor optimizations (GH#8)
2d01b4
- BR: perl-generators
2d01b4
- Simplify find command using -delete
2d01b4
2d01b4
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-5
2d01b4
- Perl 5.24 rebuild
2d01b4
2d01b4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-4
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2d01b4
2d01b4
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-3
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2d01b4
2d01b4
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-2
2d01b4
- Perl 5.22 rebuild
2d01b4
2d01b4
* Tue May 12 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-1
2d01b4
- Update to 0.13
2d01b4
  - Fix tests under blead (GH#6)
2d01b4
2d01b4
* Mon Jan 19 2015 Paul Howarth <paul@city-fan.org> - 0.12-1
2d01b4
- Update to 0.12
2d01b4
  - Fix tests under blead (GH#4)
2d01b4
2d01b4
* Wed Nov 12 2014 Paul Howarth <paul@city-fan.org> - 0.11-1
2d01b4
- Update to 0.11
2d01b4
  - Support lexical subs on 5.18+
2d01b4
  - Fix pod links
2d01b4
  - Add "alias => 1" option for making closure variables actually alias the
2d01b4
    closed over variables (so the variable referenced in the environment
2d01b4
    hashref will actually be updated by changes made in the closure)
2d01b4
- Classify buildreqs by usage
2d01b4
- Use %%license
2d01b4
- Make %%files list more explicit
2d01b4
- Update %%description
2d01b4
- Don't need to remove empty directories from the buildroot
2d01b4
2d01b4
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-8
2d01b4
- Perl 5.20 rebuild
2d01b4
2d01b4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-7
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2d01b4
2d01b4
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-6
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2d01b4
2d01b4
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 0.08-5
2d01b4
- Perl 5.18 rebuild
2d01b4
2d01b4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-4
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2d01b4
2d01b4
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-3
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2d01b4
2d01b4
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.08-2
2d01b4
- Perl 5.16 rebuild
2d01b4
2d01b4
* Fri Feb 10 2012 Iain Arnell <iarnell@gmail.com> 0.08-1
2d01b4
- update to latest upstream version
2d01b4
2d01b4
* Sat Feb 04 2012 Iain Arnell <iarnell@gmail.com> 0.07-1
2d01b4
- update to latest upstream version
2d01b4
- update description
2d01b4
2d01b4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2d01b4
2d01b4
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-2
2d01b4
- Perl mass rebuild
2d01b4
2d01b4
* Tue Jun 07 2011 Iain Arnell <iarnell@gmail.com> 0.06-1
2d01b4
- update to latest upstream version
2d01b4
2d01b4
* Wed May 04 2011 Iain Arnell <iarnell@gmail.com> 0.05-1
2d01b4
- update to latest upstream version
2d01b4
2d01b4
* Wed Apr 20 2011 Iain Arnell <iarnell@gmail.com> 0.04-1
2d01b4
- update to latest upstream version
2d01b4
2d01b4
* Thu Mar 03 2011 Iain Arnell <iarnell@gmail.com> 0.03-1
2d01b4
- update to latest upstream version
2d01b4
2d01b4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-2
2d01b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2d01b4
2d01b4
* Fri Jan 28 2011 Iain Arnell <iarnell@gmail.com> 0.02-1
2d01b4
- update to latest upstream version
2d01b4
2d01b4
* Sun Jan 23 2011 Iain Arnell <iarnell@gmail.com> 0.01-1
2d01b4
- Specfile autogenerated by cpanspec 1.78.