File pyhoca-gui.spec of Package pyhoca-gui

# spec file for package pyhoca-gui
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           pyhoca-gui
Release:        0
Summary:        Graphical X2Go client written in (wx)Python
License:        AGPL-3.0+
Group:          Productivity/Networking/Remote Desktop

#Git-Clone:	git://
Source3:        %name.keyring

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  intltool
BuildRequires:  python-distutils-extra
BuildRequires:  python-setuptools
%if 0%{?suse_version}
BuildRequires:  fdupes
BuildRequires:  update-desktop-files
%if 0%{?suse_version} >= 1230
BuildRequires:  gpg-offline
%if 0%{?suse_version} >= 1110
BuildRequires:  python-base >= 2.6.5
Requires:       python-base >= 2.6.5
BuildRequires:  python >= 2.6.5
Requires:       python >= 2.6.5
Requires:       python-x2go >=

PyHoca-GUI is a slim X2Go client that docks to the desktop's
notification area and allows multiple X2Go session handling.

%{?gpg_verify: %gpg_verify %{S:2}}
%setup -q


python install --prefix="%_prefix" --root="$b"

# Just make sure I see it when it does finally get installed by
[ -e "$b/%_bindir/pyhoca-gui" ] && exit 1
mkdir -p "$b/%_bindir"
cp pyhoca-gui "$b/%_bindir/"

%if 0%{?suse_update_desktop_file:1}
%suse_update_desktop_file -r pyhoca-gui Utility WebUtility
%if 0%{?suse_version}
%fdupes %buildroot/%_prefix
%find_lang PyHoca-GUI

%files -f PyHoca-GUI.lang