Blame SPECS/perl-Eval-Closure.spec

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