[X2Go-Commits] [pyhoca-cli] 10/10: pyhoca-cli.spec: Adapt to PyHoca-CLI's Python3 port.

git-admin at x2go.org git-admin at x2go.org
Mon Sep 25 12:53:10 CEST 2017


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

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

commit b427400d1ec9a0e5de1cbb721bfa3aaf7c726446
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Sep 25 12:52:50 2017 +0200

    pyhoca-cli.spec: Adapt to PyHoca-CLI's Python3 port.
---
 pyhoca-cli.spec | 25 +++++++++----------------
 1 file changed, 9 insertions(+), 16 deletions(-)

diff --git a/pyhoca-cli.spec b/pyhoca-cli.spec
index c87acb9..2d86093 100644
--- a/pyhoca-cli.spec
+++ b/pyhoca-cli.spec
@@ -1,5 +1,5 @@
 Name:           pyhoca-cli
-Version:        0.5.0.5
+Version:        0.5.99.0
 Release:        0.0x2go1%{?dist}
 Summary:        Command line X2Go client written in Python
 
@@ -13,23 +13,16 @@ URL:            http://www.x2go.org/
 Source0:        http://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz
 
 BuildArch:      noarch
+BuildRequires:  python3-devel
 %if 0%{?suse_version}
-BuildRequires:  python-devel
 BuildRequires:  fdupes
-%else
-BuildRequires:  python2-devel
 %endif
-BuildRequires:  python-setuptools
-Requires:       python-setproctitle
-Requires:       python-x2go >= 0.5.0.0
-Requires:       python-argparse
+BuildRequires:  python3-setuptools
+Requires:       python3-setproctitle
+Requires:       python3-x2go >= 0.5.99.0
+Requires:       python3-argparse
 
-%if 0%{?el5}
-# For compatibility with EPEL5
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-%else
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%endif
 
 %description
 X2Go is a server based computing environment with:
@@ -51,11 +44,11 @@ on desktops and thin clients.
 
 
 %build
-%{__python} setup.py build
+%{__python3} setup.py build
 
 
 %install
-%{__python} setup.py install -O1 --skip-build --prefix %{_prefix} --root %{buildroot}
+%{__python3} setup.py install -O1 --skip-build --prefix %{_prefix} --root %{buildroot}
 mkdir -p %{buildroot}/%{_bindir}/
 cp -p %{name} %{buildroot}/%{_bindir}/
 mkdir -p %{buildroot}/%{_mandir}/
@@ -69,7 +62,7 @@ cp -rp man/* %{buildroot}/%{_mandir}/
 %defattr(-,root,root)
 %doc COPYING README TODO
 %{_bindir}/%{name}
-%{python_sitelib}/*
+%{python3_sitelib}/*
 %{_mandir}/man1/%{name}.1*
 
 

--
Alioth's /srv/git/code.x2go.org/pyhoca-cli.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git


More information about the x2go-commits mailing list