[X2Go-Commits] [pyhoca-cli] 04/04: pyhoca-cli.spec: replace hashbang with version determined by name helper.

git-admin at x2go.org git-admin at x2go.org
Wed Dec 18 21:04:37 CET 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-cli.

commit 6f970b8eddfb691c8ac8bfe455b9ad1e4c80dc84
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Dec 18 21:02:49 2019 +0100

    pyhoca-cli.spec: replace hashbang with version determined by name helper.
---
 debian/changelog | 1 +
 pyhoca-cli.spec  | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 670a093..9c87860 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ pyhoca-cli (0.6.1.2-0x2go1) UNRELEASED; urgency=medium
       ever build for one variant.
     + Use %{?with_pythonX} and %{name_helper_pythonX} macros. Also fixes
       running against nightly versions of python-x2go.
+    + Replace hashbang with version determined by name helper.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Fri, 22 Nov 2019 15:26:45 +0100
 
diff --git a/pyhoca-cli.spec b/pyhoca-cli.spec
index 73a07cd..b9501f1 100644
--- a/pyhoca-cli.spec
+++ b/pyhoca-cli.spec
@@ -152,6 +152,12 @@ on desktops and thin clients.
 
 %prep
 %setup -q
+%if 0%{?with_python2}
+sed -i -e '1s@^#/usr/bin/python3@/usr/bin/%{name_helper_python2}@'
+%endif
+%if 0%{?with_python3}
+sed -i -e '1s@^#/usr/bin/python3@/usr/bin/%{name_helper_python3}@'
+%endif
 
 
 %build

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git


More information about the x2go-commits mailing list