#2 Fix shebangs to avoid depending on Python 2 for Fedora 28+
Merged 6 years ago by orion. Opened 6 years ago by ishcherb.
rpms/ ishcherb/pyhoca-gui fix-shebang  into  master

file modified
+6 -1
@@ -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 @@ 

  %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 @@ 

  

  

  %changelog

+ * Mon Apr 16 2018 Iryna Shcherbina <shcherbina.iryna@gmail.com> - 0.5.0.7-4

+ - Fix shebangs to avoid depending on Python 2 for Fedora 28+

+ 

  * Sat Apr 14 2018 Orion Poplawski <orion@cora.nwra.com> - 0.5.0.7-3

  - Require python3-wxpython4

  

The package started to depend on both Python 2 and Python 3 in Fedora rawhide:

$ dnf --repo=rawhide repoquery pyhoca-gui
pyhoca-gui-0:0.5.0.7-3.fc29.noarch
$ dnf --repo=rawhide repoquery --requires pyhoca-gui | grep python
/usr/bin/python2
python(abi) = 3.6
python3-cups
python3-gobject-base
python3-setproctitle
python3-wxpython4
python3-x2go >= 0.5.0.0

The "/usr/bin/env python" shebang in pyhoca-gui executable is generating dependency on Python 2. This PR replaces it with "/usr/bin/python3" on Fedora 28+.

rebased onto 1ba163b

6 years ago

Pull-Request has been merged by orion

6 years ago