Help generators to recognize Perl scripts

epel9 imports/e9/perl-Devel-ArgNames-0.03-25.el9
Petr Písař 3 years ago
parent 0be91f6584
commit aeea831cbf

@ -10,6 +10,7 @@ BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
# Run-time:
@ -40,6 +41,11 @@ with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Devel-ArgNames-%{version}
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1

Loading…
Cancel
Save