diff --git a/.gear/kitty.spec b/.gear/kitty.spec index a241e34b..6d660014 100644 --- a/.gear/kitty.spec +++ b/.gear/kitty.spec @@ -27,7 +27,6 @@ BuildRequires: ncurses # For tests BuildRequires: /proc -BuildRequires: kitty BuildRequires: fonts-ttf-gnu-freefont-mono %add_python3_path %_libexecdir/%name @@ -79,10 +78,20 @@ The terminfo file for kitty %setup # Changing shebangs to python3 -find -type f -name "*.py" -exec sed -e 's|/usr/bin/env python3|%{__python3}|g' \ - -e 's|/usr/bin/env python|%{__python3}|g' \ +find -type f -name "*.py" -exec sed -e 's|/usr/bin/env python3|%__python3|g' \ + -e 's|/usr/bin/env python|%__python3|g' \ -i "{}" \; +%ifarch %e2k +# ftbfs workaround with lcc 1.25.17: +# kitty/screen.c:1437,1463: pointless comparison of unsigned integer with zero +sed -i "s/-Werror//g" setup.py +%endif + +# TODO: proper 'install' target +#build +#python3_build_debug + %install mkdir -p %buildroot%_prefix python3 setup.py linux-package \