From 1ba163b7bee83f343e8e4b4f25fc7ce35a757046 Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Apr 16 2018 12:13:03 +0000 Subject: Fix shebangs to avoid depending on Python 2 for Fedora 28+ The stray "/usr/bin/env python" shebang in pyhoca-gui executable is generating dependency on Python 2. Replace it with "/usr/bin/python3" on Fedora 28+. --- diff --git a/pyhoca-gui.spec b/pyhoca-gui.spec index a6758f5..8fc4d9d 100644 --- a/pyhoca-gui.spec +++ b/pyhoca-gui.spec @@ -1,6 +1,6 @@ Name: pyhoca-gui Version: 0.5.0.7 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Graphical X2Go client written in (wx)Python Group: Applications/Communications @@ -72,6 +72,8 @@ notification area and allows multiple X2Go session handling. %build %if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 2to3 --write --nobackups . +# Fix shebang of pyhoca-gui executable. +pathfix.py -i %{__python3} -pn %{name} %{__python3} setup.py build_i18n %py3_build %else @@ -122,6 +124,9 @@ fi %changelog +* Mon Apr 16 2018 Iryna Shcherbina - 0.5.0.7-4 +- Fix shebangs to avoid depending on Python 2 for Fedora 28+ + * Sat Apr 14 2018 Orion Poplawski - 0.5.0.7-3 - Require python3-wxpython4