Accepting request 1088282 from home:mlin7442:rebuild_fails_155

use python3 as the script interpreter in wscript file

OBS-URL: https://build.opensuse.org/request/show/1088282
OBS-URL: https://build.opensuse.org/package/show/Education/semantik?expand=0&rev=49
This commit is contained in:
Lars Vogdt 2023-06-06 11:26:47 +00:00 committed by Git OBS Bridge
parent f27fa40604
commit fbde6a0e83
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 18 15:30:06 UTC 2023 - Max Lin <mlin@suse.com>
- Use python3 as the script interpreter in wscript file
-------------------------------------------------------------------
Mon Jan 2 13:46:04 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -89,6 +89,10 @@ chmod a+rx %{buildroot}%{_datadir}/semantik/templates/waf
chmod a+rx %{buildroot}%{_datadir}/semantik/filters/*.py
chmod a+rx %{buildroot}%{_datadir}/semantik/sembind.py
# fix the script interpreter
sed -i -e 's|#! /usr/bin/python|#!/usr/bin/python3|' %{buildroot}%{_datadir}/semantik/templates/pdflatex/wscript
sed -i -e 's|#! /usr/bin/python|#!/usr/bin/python3|' %{buildroot}%{_datadir}/semantik/templates/beamer/wscript
# install man page
install -D -m644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1