# Detect the distribution in use %global __despace head -n 1 | tr -d '[:space:]' | sed -e 's/[(].*[)]//g' %global __lower4 cut -c 1-4 | tr '[:upper:]' '[:lower:]' %global __distfile %([ -f /etc/SuSE-release ] && echo /etc/SuSE-release || echo /etc/redhat-release) %global __distinit %(sed -e 's/ release .*//' -e 's/\\([A-Za-z]\\)[^ ]*/\\1/g' %{__distfile} | %{__despace} | %{__lower4}) %global __distvers %(sed -e 's/.* release \\([^. ]*\\).*/\\1/' %{__distfile} | %{__despace}) # Identify Alma, CentOS, CentOS Stream and Rocky Linux as rhel %if "%{__distinit}" == "a" || "%{__distinit}" == "c" || "%{__distinit}" == "cl" || "%{__distinit}" == "cs" || "%{__distinit}" == "rl" %global __distinit rhel %endif # Dist tag for Fedora is still "fc" %if "%{__distinit}" == "f" %global __distinit fc %endif Name: perl-PadWalker Version: 2.5 Release: 14.%{__distinit}%{__distvers} Summary: Play with other people's lexical variables License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/PadWalker Source0: https://cpan.metacpan.org/authors/id/R/RO/ROBIN/PadWalker-%{version}.tar.gz # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(vars) # Test Suite BuildRequires: perl(Data::Dumper) BuildRequires: perl(warnings) # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif %{?perl_default_filter} %description PadWalker is a module that allows you to inspect (and even change!) lexical variables in any subroutine that called you. It will only show those variables that are in scope at the point of the call. %prep %setup -q -n PadWalker-%{version} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} -c %{buildroot} %check make test %files %doc Changes README %{perl_vendorarch}/auto/PadWalker/ %{perl_vendorarch}/PadWalker.pm %{_mandir}/man3/PadWalker.3* %changelog * Wed Jun 12 2024 Paul Howarth - 2.5-14 - Perl 5.40 rebuild * Tue Jul 11 2023 Paul Howarth - 2.5-9 - Perl 5.38 rebuild * Tue May 9 2023 Paul Howarth - 2.5-8 - Use SPDX-format license tag * Tue May 31 2022 Paul Howarth - 2.5-6 - Perl 5.36 rebuild * Fri May 21 2021 Paul Howarth - 2.5-3 - Perl 5.34 rebuild * Sun Sep 27 2020 Paul Howarth - 2.5-1 - Update to 2.5 - Names of utf8 lexical vars were not reported correctly (CPAN RT#133424) * Wed Jun 24 2020 Paul Howarth - 2.3-9 - Perl 5.32 rebuild * Thu May 30 2019 Paul Howarth - 2.3-6 - Perl 5.30 rebuild * Wed Jun 27 2018 Paul Howarth - 2.3-3 - Perl 5.28 rebuild * Sun Nov 12 2017 Paul Howarth - 2.3-1 - Update to 2.3 - Make tests work with -Ddefault_inc_excludes_dot (CPAN RT#120421) * Mon Aug 7 2017 Paul Howarth - 2.2-7 - BR: perl-generators unconditionally - BR: perl-interpreter rather than perl * Sun Jun 4 2017 Paul Howarth - 2.2-5 - Drop support for EOL distributions prior to F-13 - Drop BuildRoot: and Group: tags - Drop explicit buildroot cleaning in %%install section - Drop explicit %%clean section - BR: perl-devel unconditionally * Wed May 18 2016 Paul Howarth - 2.2-3 - BR: perl-generators where available - Simplify find commands using -empty and -delete * Mon Oct 26 2015 Paul Howarth - 2.2-1 - Update to 2.2 - Convert to PERL_NO_GET_CONTEXT https://github.com/robinhouston/PadWalker/pull/2 - Explicitly BR: perl-devel, needed for EXTERN.h * Mon Jun 15 2015 Paul Howarth - 2.1-2 - Perl 5.22 rebuild * Sun Apr 26 2015 Paul Howarth - 2.1-1 - Update to 2.1 - Another bleadperl fix (CPAN RT#101037) * Mon Dec 15 2014 Paul Howarth - 2.0-1 - Update to 2.0 - Restore compatibility with perl 5.8 (CPAN RT#100262) - Restore compatibility with bleadperl (PR#3) - Drop upstreamed perl 5.8 compatibility patch * Tue Nov 11 2014 Paul Howarth - 1.99-1 - Update to 1.99 - Make it compatible with bleadperl (CPAN RT#100262) - Add patch to fix for perl 5.8 compatibility - Classify buildreqs by usage * Thu Aug 28 2014 Paul Howarth - 1.98-4 - Drop %%defattr, redundant since rpm 4.4 * Sun Oct 27 2013 Paul Howarth - 1.98-1 - Update to 1.98 - Make new test compatible with old versions of perl (CPAN RT#89679) - Drop upstreamed patch * Sun Oct 27 2013 Paul Howarth - 1.97-1 - Update to 1.97 - Improve peek_sub error handling (CPAN RT#89679) - Add patch to fix compatibility with older Fedora perls (CPAN RT#89679) - Specify all dependencies * Wed Jul 17 2013 Paul Howarth - 1.96-3 - Perl 5.18 rebuild * Fri Aug 24 2012 Paul Howarth - 1.96-1 - Update to 1.96 - Restore compatibility with Perl 5.8 - Drop now-redundant patch for CPAN RT#79154 * Thu Aug 23 2012 Paul Howarth - 1.95-1 - Update to 1.95 - Fix for pad changes in 5.17.4-to-be (CPAN RT#79154) - Add patch to fix build with perl 5.8 (CPAN RT#79154) * Tue Jun 26 2012 Paul Howarth - 1.94-1 - Update to 1.94 - Make one of the tests a bit more flexible, to accommodate a subtle change in behaviour caused by a recent change to perl * Sun Jun 10 2012 Paul Howarth - 1.93-2 - BR: perl(Data::Dumper) and perl(Exporter) - Don't need to remove empty directories from the buildroot - Use pure_install rather than install - Drop support for old distributions prior to FC-3: - Don't need to define %%{perl_vendorarch} - Use DESTDIR rather than PERL_INSTALL_ROOT - Use %%{_fixperms} macro rather than our own chmod incantation * Sun Feb 5 2012 Paul Howarth - 1.93-1 - Update to 1.93 - Correct the version number in META.yml (CPAN RT#59459) * Tue Jun 21 2011 Paul Howarth - 1.92-4 - Rebuild for perl 5.14.1 in Rawhide - Nobody else likes macros for commands - Fix dist tag for CentOS 6 and Scientific Linux * Mon Jul 19 2010 Paul Howarth - 1.92-1 - Update to 1.92 - Remove "Jobsian dot file cruft" - Add patch from Fuji, Goro, correcting earlier patch from Yuval Kogman * Mon Jun 28 2010 Paul Howarth - 1.9-5 - Import from Fedora - DESTDIR => PERL_INSTALL_ROOT for backwards compatibility * Tue May 4 2010 Marcela Maslanova - 1.9-4 - Mass rebuild with perl-5.12.0 * Fri Mar 19 2010 Chris Weyl - 1.9-3 - PERL_INSTALL_ROOT => DESTDIR, perl_default_filter (XS package) * Mon Dec 7 2009 Stepan Kasal - 1.9-2 - Rebuild against perl 5.10.1 * Wed Oct 7 2009 Stepan Kasal - 1.9-1 - New upstream version * Sun Jul 26 2009 Fedora Release Engineering - 1.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 27 2008 Tom "spot" Callaway - 1.7-2 - Rebuild for perl 5.10 (again) * Thu Feb 21 2008 Steven Pritchard 1.7-1 - Update to 1.7 * Tue Feb 19 2008 Fedora Release Engineering - 1.6-2 - Autorebuild for GCC 4.3 * Mon Jan 28 2008 Steven Pritchard 1.6-1 - Update to 1.6 - Use fixperms macro instead of our own chmod incantation - Reformat to match cpanspec output * Sun Jan 13 2008 Tom "spot" Callaway - 1.5-2 - Rebuild for new perl * Tue Oct 16 2007 Tom "spot" Callaway - 1.5-1.1 - Correct license tag - Add BR: perl(ExtUtils::MakeMaker) * Fri Jan 5 2007 Jose Pedro Oliveira - 1.5-1 - Update to 1.5 * Thu Jan 4 2007 Jose Pedro Oliveira - 1.3-1 - Update to 1.3 * Wed Nov 22 2006 Jose Pedro Oliveira - 1.2-1 - Update to 1.2 * Mon Oct 23 2006 Jose Pedro Oliveira - 1.1-1 - Update to 1.1 * Sun Sep 10 2006 Jose Pedro Oliveira - 1.0-2 - Rebuild for FC6 * Fri May 19 2006 Jose Pedro Oliveira - 1.0-1 - First build