Don't hardcode prefix when manging shebangs

This broke flatpak module builds.
This commit is contained in:
Kalev Lember 2019-05-27 14:55:53 +02:00
parent 82f7421f00
commit 290c78599c

View File

@ -70,7 +70,7 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
find $RPM_BUILD_ROOT -name '*.a' -delete
rm examples/Makefile*
sed -r -i 's|#! ?/usr/bin/env python|#!%{__python2}|' %{buildroot}/usr/share/pygobject/2.0/codegen/*.py
sed -r -i 's|#! ?/usr/bin/env python|#!%{__python2}|' %{buildroot}%{_datadir}/pygobject/2.0/codegen/*.py
%ldconfig_scriptlets