File pyhoca-gui.spec of Package pyhoca-gui
#
# spec file for package pyhoca-gui
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: pyhoca-gui
Version: 0.6.1.1
Release: 0
Summary: Graphical X2Go client written in (wx)Python
License: AGPL-3.0-or-later
Group: Productivity/Networking/Remote Desktop
URL: https://x2go.org/
#DL-URL: http://code.x2go.org/releases/source/pyhoca-gui/
#Git-Clone: git://code.x2go.org/pyhoca-gui
#Git-Web: http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=summary
Source: http://code.x2go.org/releases/source/%name/%name-%version.tar.gz
Source2: http://code.x2go.org/releases/source/%name/%name-%version.tar.gz.asc
Source3: %name.keyring
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: python-base >= 2.6.5
BuildRequires: python-distutils-extra
BuildRequires: python-setuptools
BuildRequires: update-desktop-files
Requires: python-argparse
Requires: python-base >= 2.6.5
Requires: python-cups
Requires: python-notify
Requires: python-setproctitle
Requires: python-gobject-base
Requires: python-wxWidgets-3_0
Requires: python-x2go >= 0.5.0.0
%description
PyHoca-GUI is a slim X2Go client that docks to the desktop's
notification area and allows multiple X2Go session handling.
%prep
%setup -q
sed -i -e 's|\/usr\/bin\/env python3|\/usr\/bin\/python|g' pyhoca-gui
%build
%install
b="%buildroot"
python setup.py install --prefix="%_prefix" --root="$b"
# Just make sure I see it when it does finally get installed by setup.py
if [ -e "$b/%_bindir/pyhoca-gui" ]; then
exit 1
fi
mkdir -p "$b/%_bindir"
cp -a pyhoca-gui "$b/%_bindir/"
%if 0%{?suse_update_desktop_file:1}
%suse_update_desktop_file -r pyhoca-gui Utility WebUtility
%endif
%if 0%{?suse_version}
%fdupes %buildroot/%_prefix
%endif
%find_lang PyHoca-GUI
%files -f PyHoca-GUI.lang
%license COPYING
%doc README README.Unity README.i18n README.ssh-agent ChangeLog
%_bindir/pyhoca-gui
%python_sitelib/pyhoca/
%python_sitelib/PyHoca*
%_datadir/pixmaps/pyhoca*
%_datadir/icons/PyHoca/
%_datadir/applications/pyhoca-gui.desktop
%_datadir/pyhoca/
%_mandir/man1/pyhoca-gui.1*
%changelog