Fixed generated python scripts shebangs

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2018-12-10 18:07:13 +01:00
parent 9ae7392f8a
commit 2ce414616e
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ cd host/build
make test
%install
# fix python shebangs (run again for generated scripts)
find . -type f -name "*.py" -exec sed -i '/^#!/ s|.*|#!%{__python2}|' {} \;
pushd host/build
make install DESTDIR=%{buildroot}