3 %bcond_without doc # don't build doc
4 %bcond_without python2 # CPython 2.x module
5 %bcond_with python3 # CPython 3.x module
8 Summary: Python module providing X2Go client API
13 Group: Development/Languages
14 Source0: http://code.x2go.org/releases/source/python-%{module}/%{name}-%{version}.tar.gz
15 # Source0-md5: b5359cd80779b5e50586f6dbf35fd659
16 Patch0: python-x2go-py3.patch
17 URL: http://www.x2go.org/
18 BuildRequires: rpmbuild(macros) >= 1.710
19 BuildRequires: python-setuptools
20 BuildRequires: rpm-pythonprov
22 BuildRequires: python3-devel
24 BuildRequires: python-tools
29 BuildRequires: python-gevent
30 BuildRequires: python-paramiko
31 BuildRequires: python-requests
32 BuildRequires: python-simplejson
34 BuildRequires: python-Xlib
39 Requires: python-gevent
40 Requires: python-paramiko
41 Requires: python-requests
42 Requires: python-simplejson
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 X2Go is a server based computing environment with:
49 - low bandwidth support
50 - session brokerage support
51 - client side mass storage mounting support
53 - authentication by smartcard and USB stick
55 This Python module allows you to integrate X2Go client support into
56 your Python applications by providing a Python-based X2Go client API.
59 Summary: Python X2Go client API documentation
61 Requires: %{name} = %{version}-%{release}
64 This package contains the Python X2Go client API documentation.
66 %package -n python3-%{module}
67 Summary: Python module providing X2Go client API
68 Group: Development/Languages
70 %description -n python3-%{module}
71 X2Go is a server based computing environment with:
73 - low bandwidth support
74 - session brokerage support
75 - client side mass storage mounting support
77 - authentication by smartcard and USB stick
79 This Python module allows you to integrate X2Go client support into
80 your Python applications by providing a Python-based X2Go client API.
95 2to3 --write --nobackups py3
103 epydoc --debug -n "Python X2Go" -u http://www.x2go.org -v --html --no-private -o epydoc/html x2go/
107 rm -rf $RPM_BUILD_ROOT
116 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/x2go/tests
121 rm -rf $RPM_BUILD_ROOT
124 %defattr(644,root,root,755)
125 %doc COPYING README* TODO
126 %{py_sitescriptdir}/x2go
127 %{py_sitescriptdir}/x2go-%{version}-py*.egg-info
131 %defattr(644,root,root,755)
136 %files -n python3-%{module}
137 %defattr(644,root,root,755)