From fbde6a0e8353caf0e3cda4ff62d89a2c000c4011bcbbaa13cd9772271b75e82c Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Tue, 6 Jun 2023 11:26:47 +0000 Subject: [PATCH] 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 --- semantik.changes | 5 +++++ semantik.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/semantik.changes b/semantik.changes index 26c4a2f..f1cb5b1 100644 --- a/semantik.changes +++ b/semantik.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 18 15:30:06 UTC 2023 - Max Lin + +- Use python3 as the script interpreter in wscript file + ------------------------------------------------------------------- Mon Jan 2 13:46:04 UTC 2023 - Dirk Müller diff --git a/semantik.spec b/semantik.spec index 3870840..4fb474e 100644 --- a/semantik.spec +++ b/semantik.spec @@ -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