LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pyhoca-gui.spec of Package pyhoca-gui (Project home:sdrahn:CS)

#
# 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 http://bugs.opensuse.org/
#


Name:           pyhoca-gui
Version:        0.4.0.8
Release:        0
Summary:        Graphical X2Go client written in (wx)Python
License:        AGPL-3.0+
Group:          Productivity/Networking/Remote Desktop
Url:            http://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

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

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

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

%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
[ -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
%endif
%if 0%{?suse_version}
%fdupes %buildroot/%_prefix
%endif
%find_lang PyHoca-GUI

%files -f PyHoca-GUI.lang
%defattr(-,root,root)
%_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