File x2goclient.spec of Package x2goclient
#
# spec file for package x2goclient
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: x2goclient
Version: 4.1.2.3
Release: 0
Summary: Client for the x2go remote desktop
License: GPL-2.0-or-later
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
# PATCH-FIX-UPSTREAM sft-path.patch bnc#1175964 robiblitz@yahoo.de -- Makes sftp-server binary not found message go away
Patch0: sftp-path.patch
Patch1: x2goclient-wayland.patch
#
BuildRequires: cups-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libqt5-linguist
BuildRequires: openldap2-devel
BuildRequires: update-desktop-files
BuildRequires: hxtools-scripts
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(libssh) >= 0.4
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xpm)
BuildRequires: pkgconfig(xproto)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Requires: hicolor-icon-theme
Requires: openssh
Requires: nxproxy
Suggests: pinentry-x2go
%description
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.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
sed -i -e 's/qt4/qt5/' Makefile
sed -i -e 's/Categories.*/Categories=RemoteAccess;/' desktop/x2goclient.desktop
%build
mkdir build-bin
cat >"build-bin/qmake" <<-EOF
#!/bin/sh
exec /usr/bin/qmake QMAKE_CFLAGS+="%optflags" QMAKE_CXXFLAGS+="%optflags" "\$@"
EOF
chmod a+x build-bin/qmake
ln -s qmake build-bin/qmake-qt5
export PATH="$PATH:$PWD/build-bin"
make %{?_smp_mflags}
%install
b="%buildroot"
%make_install PREFIX="%_prefix" \
INSTALL_DIR="install -dm0755" \
INSTALL_FILE="install -pm0644" \
INSTALL_PROGRAM="install -pm0755"
%if 0%{?suse_version}
%fdupes %buildroot/%_prefix
%endif
%files
%defattr(-,root,root)
%_bindir/x2goclient
%_datadir/applications/x2goclient.desktop
%_datadir/icons/hicolor
%_mandir/man1/x2goclient.1*
%_datadir/%name
%license COPYING LICENSE
%changelog