Fix the build

Explicitly use python2 shebang instead of ambiguous python to fix
brp-mangle-shebangs erroring out.
This commit is contained in:
Kalev Lember 2019-01-31 14:01:02 +01:00
parent e335acab6a
commit 74da7b9c0d
1 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,9 @@ cp %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/update-gtk-immodules
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d
cp %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d
# Explicitly use python2 shebang instead of ambiguous python
sed -i -e '/^#!\// s/python$/python2/' $RPM_BUILD_ROOT%{_bindir}/gtk-builder-convert
# Remove unpackaged files
rm $RPM_BUILD_ROOT%{_libdir}/*.la
rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/*.la