LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

#
# spec file for package x2godesktopsharing
#
# 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:           x2godesktopsharing
Version:        3.1.1.0
Release:        0
Summary:        Share x2go desktops with other users (via shadow sessions)
License:        GPL-2.0
Group:          Productivity/Networking/Remote Desktop
Url:            http://x2go.org/

#DL-URL:	http://code.x2go.org/releases/source/x2godesktopsharing/
#Git-Clone:	git://code.x2go.org/x2godesktopsharing
#Git-Web:	http://code.x2go.org/gitweb?p=x2godesktopsharing.git;a=summary
Source:         %name-%version.tar.gz
Source2:        %name-%version.tar.gz.asc
Source3:        %name-rpmlintrc

BuildRequires:  gcc-c++
BuildRequires:  libqt4-devel
%if 0%{?suse_version} >= 1230
BuildRequires:  gpg-offline
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
x2godesktopsharing is a system tray tool that allows a user to
give/control access to his/her X/x2go session (via shadow session
support in NX libraries).

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

%build
for qmake in $(which qmake-qt4 qmake 2>/dev/null); do
	break;
done;
"$qmake" QMAKE_CFLAGS+="%optcflags" QMAKE_CXXFLAGS+="%optflags" STRIP=true;
make %{?_smp_mflags};

%install
b="%buildroot";
make install DESTDIR="$b";
mkdir -p "$b/%_datadir/x2go/versions" "$b/%_bindir";
cp -a bin/x2go* "$b/%_bindir/";
cp -a share/* "$b/%_datadir/x2go/";
cp -a VERSION.x2godesktopsharing "$b/%_datadir/x2go/versions/";
cp -a x2godesktopsharing "$b/%_bindir/";
mkdir -p "$b/%_mandir/man1" "$b/%_mandir/man8";
cp -a man/man1/*.1 "$b/%_mandir/man1/";
cp -a man/man8/*.8 "$b/%_mandir/man8/";

%files
%defattr(-,root,root)
%_bindir/x2go*
%_datadir/x2go
%_mandir/man*/x2go*

%changelog