diff --git a/perl-Syntax-Keyword-Try.spec b/perl-Syntax-Keyword-Try.spec index 8af00a3..acd0ab3 100644 --- a/perl-Syntax-Keyword-Try.spec +++ b/perl-Syntax-Keyword-Try.spec @@ -58,16 +58,17 @@ with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Syntax-Keyword-Try-%{version} +# Help file to recognise the Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + + chmod +x "$F" +done + %build perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS" ./Build -# Help file to recognise the 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 - %install ./Build install --destdir=%{buildroot} --create_packlist=0 find %{buildroot} -type f -name '*.bs' -size 0 -delete