Name: perl-Long-Jump Version: 0.000003 Release: 1%{?dist} Summary: Mechanism for returning to a specific point from a deeply nested stack License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Long-Jump Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Long-Jump-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8.1 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(Importer) # Tests: # Test2::V0 version from Test2::Suite in META BuildRequires: perl(Test2::V0) >= 0.000126 # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}^}perl\\(Test2::V0\\)$ %description This Perl module essentially provides a multi-level return. You can mark a spot with setjump() and then unwind the stack back to that point from any nested stack frame by name using longjump(). You can also provide a list of return values. It is safer than C language jump in that it only lets you escape frames by going up the stack, you cannot jump in other ways. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(Test2::V0) >= 0.000126 Requires: perl(warnings) %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Long-Jump-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_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 . -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 %license LICENSE %doc Changes README %dir %{perl_vendorlib}/Long %{perl_vendorlib}/Long/Jump.pm %{_mandir}/man3/Long::Jump.* %files tests %{_libexecdir}/%{name} %changelog * Mon Jul 08 2024 Petr Pisar - 0.000003-1 - 0.000003 bump - Package the tests * Thu Jan 25 2024 Fedora Release Engineering - 0.000001-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.000001-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.000001-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.000001-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.000001-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.000001-8 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.000001-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.000001-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.000001-5 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.000001-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.000001-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.000001-2 - Perl 5.32 rebuild * Mon Mar 02 2020 Petr Pisar 0.000001-1 - Specfile autogenerated by cpanspec 1.78.