Move normalize shebangs to %prep
This commit is contained in:
parent
2ca4873a7f
commit
a8b1fd2668
@ -58,16 +58,17 @@ with "%{_libexecdir}/%{name}/test".
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n Syntax-Keyword-Try-%{version}
|
%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
|
%build
|
||||||
perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS"
|
perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS"
|
||||||
./Build
|
./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
|
%install
|
||||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||||
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
find %{buildroot} -type f -name '*.bs' -size 0 -delete
|
||||||
|
Loading…
Reference in New Issue
Block a user