LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File x2goclient.spec of Package x2goclient (Project X11:RemoteDesktop:x2go)

# spec file for package x2goclient
# Copyright (c) 2016 SUSE LINUX 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:           x2goclient
Release:        0
Summary:        The x2go client and Mozilla plugin
License:        GPL-2.0
Group:          Productivity/Networking/Remote Desktop
Url:            http://x2go.org/

#DL-URL:	http://code.x2go.org/releases/source/x2goclient/
#Git-Clone:	git://code.x2go.org/x2goclient
#Git-Web:	http://code.x2go.org/gitweb?p=x2goclient.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
Source4:        %name-rpmlintrc
BuildRequires:  cups-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libqt4-devel >= 4.6.0
BuildRequires:  man2html
BuildRequires:  openldap2-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(libssh) >= 0.4
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xpm)
BuildRequires:  pkgconfig(xproto)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       nxproxy
Requires:       terminus-bitmap-fonts
Suggests:       pinentry-x2go

This client will be able to connect to X2Go server(s) and start,
stop, resume and terminate (running) desktop sessions. X2Go Client
stores different server connections and may automatically request
authentication data from LDAP directories.

%setup -q

mkdir pref
for prog in $(which lrelease-qt4 lrelease 2>/dev/null); do
if [ -z "$prog" ]; then
	echo ERROR: lrelease not found
cat >"pref/lrelease" <<-EOF
	exec "$prog" "\$@"
chmod a+x "pref/lrelease"
ln -s lrelease pref/lrelease-qt4
export PATH="$PWD/pref:$PATH"

mkdir build-bin
for qmake in $(which qmake-qt4 qmake 2>/dev/null); do
cat >"build-bin/qmake" <<-EOF
	exec "$qmake" QMAKE_CFLAGS+="%optflags" QMAKE_CXXFLAGS+="%optflags" "\$@"
chmod a+x build-bin/qmake
# make calls qmake by way of invoking qmake-qt4...
ln -s qmake build-bin/qmake-qt4
export PATH="$PATH:$PWD/build-bin"
make %{?_smp_mflags}

make install DESTDIR="%buildroot" \
	PREFIX="%_prefix" MOZPLUGDIR="%_libdir/mozilla/plugins" \
	INSTALL_DIR="install -dm0755" \
	INSTALL_FILE="install -pm0644" \
	INSTALL_PROGRAM="install -pm0755"
%if 0%{?suse_version}
%suse_update_desktop_file -r x2goclient Utility WebUtility
%fdupes %buildroot

%config(noreplace) %_sysconfdir/x2go