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

x2go pushed a commit to annotated tag 0.6.1.2
in repository x2goclient.

commit 6262249ae6a84900fca6612483ff072a018165f3
Author: Mihai Moldovan <io...@ionic.de>
Date:   Wed Dec 18 22:13:06 2019 +0100

    pyhoca-cli.spec: fix building Python 2 variant on older *SuSE variants.
---
 debian/changelog | 1 +
 pyhoca-cli.spec  | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e036cd6d..fbd7de7f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ pyhoca-cli (0.6.1.2-0x2go1) UNRELEASED; urgency=medium
     + Replace hashbang with version determined by name helper.
     + Fix syntax error.
     + Actually change the hashbang of a file...
+    + Fix building Python 2 variant on older *SuSE variants.
 
  -- X2Go Release Manager <git-ad...@x2go.org>  Fri, 22 Nov 2019 15:26:45 +0100
 
diff --git a/pyhoca-cli.spec b/pyhoca-cli.spec
index 069fba96..79f726b4 100644
--- a/pyhoca-cli.spec
+++ b/pyhoca-cli.spec
@@ -162,8 +162,16 @@ sed -i -e 
'1s@^#/usr/bin/python3@/usr/bin/%{name_helper_python3}@' 'pyhoca-cli'
 
 %build
 %if 0%{?with_python2}
+%if 0%{?suse_version}
+%if 0%{?sle_version} && ( ( 0%{?sle_version} < 120300 && 0%{?is_opensuse} ) || 
( ! 0%{?is_opensuse} ) )
+python2 setup.py build
+%else
+%{python2_build}
+%endif
+%else
 %{py2_build}
 %endif
+%endif
 %if 0%{?with_python3}
 %if 0%{?suse_version}
 %if 0%{?sle_version} && ( ( 0%{?sle_version} < 120300 && 0%{?is_opensuse} ) || 
( ! 0%{?is_opensuse} ) )

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on 
/srv/git/code.x2go.org/x2goclient.git
_______________________________________________
x2go-commits mailing list
x2go-commits@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-commits

Reply via email to