diff --git a/PadWalker-2.3.tar.gz b/PadWalker-2.3.tar.gz new file mode 100644 index 0000000..44654ff Binary files /dev/null and b/PadWalker-2.3.tar.gz differ diff --git a/perl-PadWalker.spec b/perl-PadWalker.spec new file mode 100644 index 0000000..b053940 --- /dev/null +++ b/perl-PadWalker.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-PadWalker +Version: 2.3 +Release: 1 +Summary: Play with other peoples' lexical variables +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/PadWalker/ +Source0: http://www.cpan.org/authors/id/R/RO/ROBIN/PadWalker-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl-generators +BuildRequires: perl >= 0:5.008001 +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +PadWalker is a module which allows you to inspect (and even change!) +lexical variables in any subroutine which called you. It will only show +those variables which are in scope at the point of the call. +%package help +Summary : Play with other peoples' lexical variables +Provides: perl-PadWalker-doc +%description help +PadWalker is a module which allows you to inspect (and even change!) +lexical variables in any subroutine which called you. It will only show +those variables which are in scope at the point of the call. +%prep +%setup -q -n PadWalker-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes META.json README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/PadWalker* +%files help +%{_mandir}/* + +%changelog +* Thu Jun 11 2020 Perl_Bot 2.3-1 +- Specfile autogenerated by Perl_Bot diff --git a/perl-PadWalker.yaml b/perl-PadWalker.yaml new file mode 100644 index 0000000..f49e374 --- /dev/null +++ b/perl-PadWalker.yaml @@ -0,0 +1,4 @@ +version-ctrl: metacpan +src_repo: PadWalker +mag_prefix: "auto/th/perl-PadWalker-" +seperator: "."