perl-PadWalker/perl-PadWalker.spec

94 lines
2.6 KiB
RPMSpec
Raw Normal View History

2020-11-06 15:50:31 +08:00
%global _empty_manifest_terminate_build 0
2020-11-06 15:50:31 +08:00
Name: perl-PadWalker
2023-09-08 17:26:55 +08:00
Version: 2.5
Release: 1
2020-11-06 15:50:31 +08:00
Summary: Play with other peoples' lexical variables
2023-09-08 17:26:55 +08:00
License: GPL-1.0-or-later OR Artistic-1.0-Perl
2020-11-06 15:50:31 +08:00
Group: Development/Libraries
2023-09-08 17:26:55 +08:00
URL: https://metacpan.org/dist/PadWalker
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROBIN/PadWalker-%{version}.tar.gz
2020-11-06 15:50:31 +08:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2020-11-06 15:50:31 +08:00
BuildRequires: perl-generators
BuildRequires: perl-devel
2020-11-06 15:50:31 +08:00
BuildRequires: perl >= 0:5.008001
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
2020-11-06 15:50:31 +08:00
%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.
2020-11-06 15:50:31 +08:00
%package help
Summary: Play with other peoples' lexical variables
2020-11-06 15:50:31 +08:00
Provides: perl-PadWalker-doc
2020-11-06 15:50:31 +08:00
%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.
2020-11-06 15:50:31 +08:00
%prep
2023-09-08 17:26:55 +08:00
%autosetup -n PadWalker-%{version} -p1
2020-11-06 15:50:31 +08:00
%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 .
2020-11-06 15:50:31 +08:00
%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*
2020-11-06 15:50:31 +08:00
%files help
%{_mandir}/*
%changelog
2023-09-08 17:26:55 +08:00
* Fri Sep 08 2023 wangkai <13474090681@163.com> - 2.5-1
- Update to 2.5
* Fri Apr 28 2023 misaka00251 <liuxin@iscas.ac.cn> - 2.3-2
- Fix EXTERN.h: No such file or directory
* Thu Jun 11 2020 Perl_Bot <Perl_Bot@openeuler.org> - 2.3-1
2020-11-06 15:50:31 +08:00
- Specfile autogenerated by Perl_Bot