Name: perl-Scope-Upper Summary: Act on upper scopes Version: 0.33 Release: 4%{?dist} License: GPL+ or Artistic Source0: https://cpan.metacpan.org/authors/id/V/VP/VPIT/Scope-Upper-%{version}.tar.gz URL: https://metacpan.org/release/Scope-Upper # Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Runtime BuildRequires: perl(base) BuildRequires: perl(Exporter) BuildRequires: perl(XSLoader) # Tests only BuildRequires: perl(File::Spec) BuildRequires: perl(feature) BuildRequires: perl(lib) BuildRequires: perl(POSIX) # It's either Scalar::Util or B; with the former being preferred BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) BuildRequires: perl(threads) BuildRequires: perl(threads::shared) # Optional tests only BuildRequires: perl(Time::HiRes) Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Requires: perl(XSLoader) %{?perl_default_filter} # Filter modules bundled for tests %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Scope::Upper::TestGenerator\\) %global __requires_exclude %{__requires_exclude}|^perl\\(Test::Leaner\\) %global __requires_exclude %{__requires_exclude}|^perl\\(VPIT::TestHelpers\\) %description This module lets you defer actions that will take place when the control flow returns into an upper scope. Currently, you can hook an upper scope end, or localize variables, array/hash values or deletions of elements in higher contexts. You can also return to an upper level and know which context was in use then. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(Time::HiRes) %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Scope-Upper-%{version} perl -MConfig -pi -e 's|^#!.*perl|$Config{startperl}|' samples/* # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -a -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %doc README Changes samples %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto %{_mandir}/man3/*.3* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.33-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.33-3 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.33-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 21 2021 Jitka Plesnikova - 0.33-1 - 0.33 bump - Package tests * Thu Jul 22 2021 Fedora Release Engineering - 0.32-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.32-7 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.32-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.32-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.32-4 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.32-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.32-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 09 2019 Jitka Plesnikova - 0.32-1 - 0.32 bump * Thu May 30 2019 Jitka Plesnikova - 0.31-3 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.31-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Aug 27 2018 Jitka Plesnikova - 0.31-1 - 0.31 bump * Fri Jul 13 2018 Fedora Release Engineering - 0.30-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.30-4 - Perl 5.28 rebuild * Mon Feb 19 2018 Jitka Plesnikova - 0.30-3 - Add build-require gcc * Fri Feb 09 2018 Fedora Release Engineering - 0.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Nov 06 2017 Jitka Plesnikova - 0.30-1 - 0.30 bump * Thu Aug 03 2017 Fedora Release Engineering - 0.29-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.29-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.29-3 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.29-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jun 07 2016 Jitka Plesnikova - 0.29-1 - 0.29 bump * Mon May 30 2016 Petr Pisar - 0.28-4 - Adapt to perl-5.24 (bug #1338725) - Modernize spec file * Tue May 17 2016 Jitka Plesnikova - 0.28-3 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.28-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Aug 24 2015 Petr Šabata - 0.28-1 - 0.28 bump; minor SUB() and EVAL() behavior changes * Thu Jun 18 2015 Fedora Release Engineering - 0.27-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 0.27-2 - Perl 5.22 rebuild * Tue Mar 31 2015 Petr Šabata - 0.27-1 - 0.27 bugfix bump * Fri Mar 20 2015 Petr Šabata - 0.26-1 - 0.26 bump * Tue Nov 25 2014 Petr Pisar - 0.25-1 - 0.25 bump * Wed Aug 27 2014 Jitka Plesnikova - 0.24-3 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.24-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Tue Aug 05 2014 Jitka Plesnikova - 0.24-1 - 0.24 bump, update BRs * Sat Jun 07 2014 Fedora Release Engineering - 0.22-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.22-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 30 2013 Petr Pisar - 0.22-2 - Perl 5.18 rebuild * Fri Feb 15 2013 Iain Arnell 0.22-1 - udpate to latest upstream version - drop old tests sub-package obsoletes/provides * Thu Feb 14 2013 Fedora Release Engineering - 0.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Oct 21 2012 Iain Arnell 0.21-1 - update to latest upstream version * Fri Sep 07 2012 Iain Arnell 0.19-1 - update to latest upstream version * Fri Jul 20 2012 Fedora Release Engineering - 0.18-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jun 23 2012 Petr Pisar - 0.18-2 - Perl 5.16 rebuild * Sun Jan 22 2012 Iain Arnell 0.18-1 - update to latest upstream version - drop tests subpackage; move tests to main package documentation * Fri Jan 13 2012 Fedora Release Engineering - 0.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Oct 02 2011 Iain Arnell 0.16-1 - update to latest upstream version * Tue Jul 19 2011 Petr Sabata - 0.14-2 - Perl mass rebuild * Thu May 12 2011 Iain Arnell 0.14-1 - update to latest upstream version * Thu Feb 24 2011 Iain Arnell 0.13-1 - update to latest upstream version * Wed Feb 09 2011 Fedora Release Engineering - 0.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Marcela Maslanova - 0.12-2 - 661697 rebuild for fixing problems with vendorach/lib * Sat Dec 18 2010 Iain Arnell 0.12-1 - update to latest upstream version - clean up spec for modern rpmbuild - additional BRs for better test coverage * Thu May 06 2010 Marcela Maslanova - 0.10-2 - Mass rebuild with perl-5.12.0 * Mon Mar 08 2010 Chris Weyl 0.10-1 - update by Fedora::App::MaintainerTools 0.004 - PERL_INSTALL_ROOT => DESTDIR - updating to latest GA CPAN version (0.10) - added a new br on perl(base) (version 0) - dropped old BR on perl(Test::Pod::Coverage) - added a new req on perl(Exporter) (version 0) - added a new req on perl(XSLoader) (version 0) - added a new req on perl(base) (version 0) * Mon Dec 7 2009 Stepan Kasal - 0.09-3 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering - 0.09-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Jun 09 2009 Chris Weyl 0.09-1 - auto-update to 0.09 (by cpan-spec-update 0.01) * Sun May 17 2009 Chris Weyl 0.08-1 - auto-update to 0.08 (by cpan-spec-update 0.01) - filter private Perl so provides * Thu Feb 26 2009 Fedora Release Engineering - 0.07-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Feb 22 2009 Chris Weyl 0.07-1 - update to 0.07 * Tue Feb 10 2009 Chris Weyl 0.06-1 - brush-up for review submission * Tue Feb 10 2009 Chris Weyl 0.06-0 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)