File x2goserver.spec of Package x2goserver

#
# spec file for package x2goserver
#
# Copyright (c) 2024 SUSE LLC
#
# 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:           x2goserver
Version:        4.1.0.6
Release:        0
Summary:        X2Go Server and Tools
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Remote Desktop
URL:            https://x2go.org/
#DL-URL:	http://code.x2go.org/releases/source/x2goserver/
#Git-Clone:	git://code.x2go.org/x2goserver
#Git-Web:	http://code.x2go.org/gitweb?p=x2goserver.git;a=summary
Source:         https://code.x2go.org/releases/source/%name/%name-%version.tar.gz
Source1:        https://code.x2go.org/releases/source/%name/%name-%version.tar.gz.asc
Source4:        %name.keyring
Source5:        %name-rpmlintrc
Patch2:         x2goserver-corrected-numlock-basb.patch
Patch3:         distro.diff
BuildRequires:  desktop-file-utils
BuildRequires:  eh-man2html
BuildRequires:  fdupes
BuildRequires:  findutils
BuildRequires:  gcc
BuildRequires:  man
BuildRequires:  nxagent
BuildRequires:  shadow
BuildRequires:  shared-mime-info
BuildRequires:  sudo
BuildRequires:  systemd
BuildRequires:  systemd-rpm-macros
BuildRequires:  sysuser-tools
BuildRequires:  xinit
BuildRequires:  perl(Config::Simple)
BuildRequires:  perl(DBD::SQLite)
BuildRequires:  perl(DBI) >= 1.617
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires:       bash
Requires:       bc
Requires:       coreutils
Requires:       findutils
Requires:       fonts-config
Requires:       fuse
Requires:       gawk
Requires:       grep
Requires:       iproute2
Requires:       lsof
Requires:       net-tools
Requires:       numlockx
Requires:       openssh
Requires:       perl-X2Go-Server = %version-%release
Requires:       perl-base
Requires:       psmisc
Requires:       pwgen
Requires:       sed
Requires:       setxkbmap
Requires:       sshfs
Requires:       sudo
Requires:       util-linux
Requires:       x2goagent
Requires:       x2goserver-common
Requires:       x2goserver-extensions
Requires:       x2goserver-x2goagent = %version-%release
Requires:       x2goserver-xsession
Requires:       xkeyboard-config
Requires:       xmessage
Requires:       xorg-x11-xauth
Requires:       xwininfo
Requires:       perl(Capture::Tiny)
Requires:       perl(Config::Simple)
Requires:       perl(Cwd)
Requires:       perl(DBD::Pg)
Requires:       perl(DBD::SQLite) >= 1.27
Requires:       perl(DBI)
Requires:       perl(Encode::Locale)
Requires:       perl(File::BaseDir)
Requires:       perl(File::Basename)
Requires:       perl(File::Copy)
Requires:       perl(File::Path)
Requires:       perl(File::ReadBackwards)
Requires:       perl(File::Which)
Requires:       perl(Getopt::Long)
Requires:       perl(POSIX)
Requires:       perl(Switch)
Requires:       perl(Sys::Hostname)
Requires:       perl(Sys::Syslog) >= 0.14
Requires:       perl(Try::Tiny)
Requires(post): permissions
Requires(verify): permissions
Requires(post): grep
Requires(post): perl-X2Go-Server-DB
Requires(post): x2goserver-common
Requires(pre):  shadow
Requires(post): perl(Config::Simple)
Requires(post): perl(DBD::SQLite)
Requires(post): perl(DBI) >= 1.617
Suggests:       x2goserver-fmbindings
Suggests:       x2goserver-printing
%perl_requires
%{?systemd_requires}
%sysusers_requires
#Requires:       polkit-pkla-compat (or polkit <= 0.105)
#                -> %_sysconfdir/polkit-1/localauthority/10-vendor.d/x2goserver-no-colord.pkla
#or
#Requires:       polkit (>= 0.106)
#                -> %_sysconfdir/polkit-1/rules.d/x2goserver-no-colord.rules
%{?perl_default_filter}
%if 0%{?fedora} > 19 || 0%{?el5} || 0%{?el6} || 0%{?el7}
BuildRequires:  logcheck
%endif

%description
X2Go is a server based computing environment with

    * session resuming
    * low bandwidth support
    * session brokerage support
    * client side mass storage mounting support
    * client side printing support
    * audio support
    * authentication by smartcard and USB stick

This package contains the main daemon and tools for X2Go server-side session
administrations.

%package common
Summary:        X2Go Server (common files)
Group:          Productivity/Networking/Remote Desktop
BuildRequires:  shadow
Requires(pre):  shadow
%perl_requires
%if 0%{?suse_version} > 1500
# OpenSuSE Tumbleweed currently has a bug and doesn't pull in
# openSUSE-release automatically, leaving %_sysconfdir/os-release a dangling
# symlink.
# Why? No idea.
BuildRequires:  openSUSE-release
%endif

%description common
X2Go is a server based computing environment.
This package contains common files needed by the X2Go Server
and the X2Go::Server Perl API.

%package -n perl-X2Go-Server
Summary:        Perl X2Go::Server package
Group:          Development/Libraries/Perl
Requires:       perl-X2Go-Log = %version-%release
Requires:       perl-X2Go-Server-DB = %version-%release
Requires:       x2goserver-common = %version-%release
Requires:       perl(Capture::Tiny)
%perl_requires

%description -n perl-X2Go-Server
X2Go is a server based computing environment.
This package contains the X2Go::Server Perl package.

%package -n perl-X2Go-Server-DB
Summary:        Perl X2Go::Server::DB package
Group:          Development/Libraries/Perl
Requires:       perl-X2Go-Log = %version-%release
Requires:       x2goserver-common = %version-%release
Requires:       perl(Config::Simple)
Requires:       perl(DBD::Pg)
Requires:       perl(DBD::SQLite)
#Requires:       perl(DBD::mysql)
Requires(pre):  permissions
Requires(post): perl(DBD::SQLite)
%perl_requires

%description -n perl-X2Go-Server-DB
X2Go is a server based computing environment.
This package contains the X2Go::Server::DB Perl package.

%package -n perl-X2Go-Log
Summary:        Perl X2Go::Log package
Group:          Development/Libraries/Perl
Requires:       x2goserver-common = %version-%release
%perl_requires

%description -n perl-X2Go-Log
X2Go is a server based computing environment.
This package contains the X2Go::Log Perl package.

%package x2goagent
Summary:        X2Go Server's X2Go Agent Xserver
Group:          Applications/System
Requires:       nxagent >= 3.5.99.17
Conflicts:      x2goagent < %version-%release
Obsoletes:      x2goagent < %version-%release
Provides:       x2goagent = %version-%release

%description x2goagent
X2Go is a software suite that uses NX and/or KDrive technology for remote
desktop computing.

NX technology implements a very efficient compression of the X11
protocol. This increases performance when using X applications over a
network, especially a slow one.

X2Go agent functionality has been completely incorporated into NX
agent's code base. If the nxagent binary is executed under the name of
`x2goagent', the X2Go functionalities get activated.

This package is a wrapper that activates X2Go branding in nxagent.
Please refer to the nxagent package's description for more information
on NX.

%package x2gokdrive
Group:          Applications/System
Summary:        X2Go Server's X2Go KDrive Xserver
Requires:       xorg-x11-server-x2gokdrive

%description x2gokdrive
X2Go is a software suite that uses NX and/or KDrive technology for
remote desktop computing.

X2Go KDrive technology implements a remote X11 Xserver backend for
modern desktop environments, namely desktops derived from the GNOME
desktop shell.

X2Go KDrive does not require an XServer on the client-side, only the
X11-independent x2gokdriveclient. Desktop session data transfers from
server to client use differential image compression and image data gets
cached client-side.

%package printing
Summary:        X2Go Server (printing support)
Group:          Productivity/Networking/Remote Desktop
BuildRequires:  shadow
Requires:       %name = %version-%release
Requires(pre):  shadow
%perl_requires

%description printing
The X2Go Server printing package provides client-side printing support for
X2Go.

This package has to be installed on X2Go servers that shall be able to pass
X2Go print jobs on to the X2Go client.

This package co-operates with the cups-x2go CUPS backend. If CUPS server and
X2Go server are hosted on different machines, then make sure you install
this package on the X2Go server(s) (and the cups-x2go package on the CUPS
server).

%package desktopsharing
Summary:        X2Go Server (Desktop Sharing support)
Group:          Productivity/Networking/Remote Desktop
Requires:       %name = %version-%release
Requires:       x2godesktopsharing >= 3.2.0.0

%description desktopsharing
X2Go Desktop Sharing is an X2Go add-on feature that allows a user to
grant other X2Go users access to the current session (shadow session
support). The user's current session may be an X2Go session itself or
simply a local X11 session.

This package contains all the integration and configuration logics
of a system-wide manageable desktop sharing setup.

%package extensions
Summary:        X2Go Server (extension support)
Group:          Productivity/Networking/Remote Desktop
Requires:       %name = %version-%release

%description extensions
The X2Go Server extension namespace offers contributors
to add script functionality to X2Go.

Make sure you have this package installed on your server
if you want X2Go clients to be able to access your server
without lack of features.

%package xsession
Summary:        X2Go Server (Xsession runner)
Group:          Productivity/Networking/Remote Desktop
Requires:       %name = %version-%release
Requires:       dbus-1
# For %_sysconfdir/X11/Xresources
Requires:       xinit
Requires:       perl(Cwd)
%perl_requires

%description xsession
This X2Go Server add-on enables Xsession script handling
when starting desktop sessions with X2Go.

Amongst others the parsing of Xsession scripts will
enable desktop-profiles, ssh-agent startups, gpgagent
startups and many more Xsession related features on
X2Go session login automagically.

%package fmbindings
Summary:        X2Go Server (file manager bindings)
Group:          Productivity/Networking/Remote Desktop
Requires:       %name = %version-%release
Requires:       xdg-utils
Requires(post): desktop-file-utils
Requires(post): shared-mime-info
Requires(postun): desktop-file-utils
Requires(postun): shared-mime-info

%description fmbindings
This package contains generic MIME type information
for X2Go's local folder sharing. It can be used with all
freedesktop.org compliant desktop shells.

However, this package can be superseded by other, more specific
destkop binding components, if installed and being used with the
corresponding desktop shell:
    - under LXDE by x2golxdebindings
    - under GNOMEv2 by x2gognomebindings
    - under KDE4 by plasma-widget-x2go
    - under MATE by x2gomatebindings

%package logcheck
Summary:        X2Go Server (logcheck configuration)
Requires:       %name = %version-%release
%if 0%{?fedora} > 19 || 0%{?el5} || 0%{?el6} || 0%{?el7}
Requires:       logcheck
%endif
%if 0%{?fedora} || 0%{?rhel}
Group:          Applications/Communications
%else
Group:          Productivity/Networking/Remote Desktop
%endif

%description logcheck
X2Go is a server based computing environment.
This package contains the logcheck configuration files that avoid
false-positives when running X2Go sessions.

%prep
%setup -q
%patch -P 2 -p1
# Don't try to be root
sed -i -e 's/-o root -g root//' */Makefile

%build
%make_build CFLAGS='%{?__global_cppflags} %{?__global_cflags} %optflags' LDFLAGS='%{?__global_ldflags}' PERL_INSTALLDIRS='vendor' PREFIX='%_prefix' NXLIBDIR='%_libdir/nx' LIBDIR='%_libdir/x2go'

%install
b="%buildroot"
%make_install DESTDIR='%buildroot' PREFIX='%_prefix' NXLIBDIR='%_libdir/nx' LIBDIR='%_libdir/x2go'
find "%buildroot" -type l -exec ls -al {} + 
%if 0%{?suse_version} >= 1550
ln -fs /usr/etc/X11/Xresources "%buildroot/etc/x2go/Xresources"
%endif

# Make sure the .packlist file is removed from %%perl_vendorarch...
find %buildroot%perl_vendorarch -name .packlist -print -delete

# Remove placeholder files (in a way that works on EPEL-5, as well)
find %buildroot%_libdir/x2go/extensions/ -type f -name ".placeholder" -print -delete

# x2gouser homedir, state dir
mkdir -p %buildroot%_localstatedir/lib/x2go/
# Create empty session file for %%ghost
touch %buildroot%_localstatedir/lib/x2go/x2go_sessions

# Printing spool dir
mkdir -p %buildroot%_localstatedir/spool/x2goprint

# Systemd session cleanup script
mkdir -p %buildroot%_unitdir
install -pm0644 %name.service %buildroot%_unitdir
mkdir -p %buildroot%_sbindir
ln -s %_sbindir/service %buildroot%_sbindir/rc%name

desktop-file-validate %buildroot%_datadir/applications/x2gofm.desktop
chmod -x %buildroot%_datadir/applications/x2gofm.desktop

mkdir -p "%buildroot%_sysconfdir/permissions.d"
cat > "%buildroot%_sysconfdir/permissions.d/perl-X2Go-Server-DB" <<-EOF
%_libdir/x2go/libx2go-server-db-sqlite3-wrapper	root:x2gouser	02755
EOF

# Dummy file - will be created/removed in post* scriptlets.
# We just need this here for the %%ghost directory to work.
touch "%buildroot%_sysconfdir/x2go/applications"

mkdir -p "$b/%_sysusersdir"
echo 'u x2gouser - "x2go" %_localstatedir/lib/x2go' >system-user-x2gouser.conf
echo 'u x2goprint - "x2go" %_localstatedir/spool/x2goprint' >system-user-x2goprint.conf
cp -a system-user-*.conf "$b/%_sysusersdir/"
%sysusers_generate_pre system-user-x2gouser.conf snip-x2gouser system-user-x2gouser.conf
%sysusers_generate_pre system-user-x2goprint.conf snip-x2goprint system-user-x2goprint.conf

%pre common -f snip-x2gouser.pre

%post common
%tmpfiles_create %_tmpfilesdir/%name.conf

%post
# Initialize the session database
if [ ! -s %_localstatedir/lib/x2go/x2go_sessions ]; then
	if grep -E "^backend=sqlite.*" %_sysconfdir/x2go/x2gosql/sql 1>/dev/null 2>&1; then
		%_sbindir/x2godbadmin --createdb 1>/dev/null 2>&1 || :
	fi
fi

if grep -E "^backend=sqlite.*" %_sysconfdir/x2go/x2gosql/sql 1>/dev/null 2>/dev/null; then
	if [ -s %_localstatedir/lib/x2go/x2go_sessions ]; then
		%_sbindir/x2godbadmin --updatedb 1>/dev/null 2>/dev/null || :
	fi
fi

# create %_sysconfdir/x2go/applications symlink if not already there
# as a regular file, as a symlink, as a special file or as a directory
# N.B.: dangling symlinks will lead to test -e FAILING, because the symlink is dereferenced.
# This means that without the explicit symlink check (which doesn't dereference the last
# element), the ln call would be executed and fail, since the file/symlink already exists,
# leading to this scriptlet failing and hence leading to the installation failing.
if ! [ -e "%_sysconfdir/x2go/applications" ] && ! [ -L "%_sysconfdir/x2go/applications" ]; then
	ln -s "%_datadir/applications" "%_sysconfdir/x2go/applications"
fi

%service_add_post x2goserver.service

%preun
if [ "$1" = "0" ]; then
	if [ -L %_sysconfdir/x2go/applications ]; then
		rm -f %_sysconfdir/x2go/applications || :
	fi
fi
%service_del_preun x2goserver.service

%pre
%service_add_pre x2goserver.service

%postun
%service_del_postun x2goserver.service

%post -n perl-X2Go-Server-DB
%set_permissions %_libdir/x2go/libx2go-server-db-sqlite3-wrapper

%verifyscript -n perl-X2Go-Server-DB
%verify_permissions -e %_libdir/x2go/libx2go-server-db-sqlite3-wrapper

%post fmbindings
# Bug in SuSE's mime DB update script, work around it...
mkdir -p "%_localstatedir/cache/gio-2.0"

%mime_database_post
%desktop_database_post
# We need the "weird" foo && foo < ... structure, because we only want to check the value
# *if* the macro is defined. Otherwise it will decay to 0 which means that the branch
# is always triggered - even on operating systems for which it should not be triggered.
# For example, this branch would be taken on Fedora >= 24 if using a plain "0%{?rhel} < 8"
# condition, since this ("0 < 8") would be true on a Fedora system.

%postun fmbindings
if [ $1 -eq 0 ] ; then
        mkdir -p "%_localstatedir/cache/gio-2.0"
        %mime_database_postun
        %desktop_database_postun
fi

%pre printing -f snip-x2goprint.pre

%files
%license COPYING
%doc README.md README.i18n ChangeLog
# Workaround for sudoers on OpenSUSE 11/SLE{S,D} 11.
%config(noreplace) %_sysconfdir/sudoers.d/x2goserver
## polkit (<= 0.105)
#%%config(noreplace) %%_sysconfdir/polkit-1/localauthority/10-vendor.d/x2goserver-no-colord.pkla
## polkit (>= 0.106)
#%%config(noreplace) %%_sysconfdir/polkit-1/rules.d/x2goserver-no-colord.rules
%_bindir/x2go*
%exclude %_bindir/x2goserver-run-extensions
%exclude %_bindir/x2gofm
%exclude %_bindir/x2goprint
%exclude %_bindir/x2goagent
%exclude %_bindir/x2go*-desktopsharing
%dir %_libdir/x2go
%_libdir/x2go/x2gochangestatus
%_libdir/x2go/x2gocheckport
%_libdir/x2go/x2gocreatesession
%_libdir/x2go/x2gocreateshadowsession
%_libdir/x2go/x2gogetagent
%_libdir/x2go/x2gogetagentstate
%_libdir/x2go/x2gogetdisplays
%_libdir/x2go/x2gogetfreeport
%_libdir/x2go/x2gogetports
%_libdir/x2go/x2gogetrandomport
%_libdir/x2go/x2gogetstatus
%_libdir/x2go/x2goinsertport
%_libdir/x2go/x2goinsertsession
%_libdir/x2go/x2goinsertshadowsession
%_libdir/x2go/x2goisint
%_libdir/x2go/x2goistrue
%_libdir/x2go/x2golistsessions_sql
%_libdir/x2go/x2gologlevel
%_libdir/x2go/x2goqueryconfig
%_libdir/x2go/x2goresume
%_libdir/x2go/x2gormforward
%_libdir/x2go/x2gormport
%_libdir/x2go/x2gosuspend-agent
%_libdir/x2go/x2gosyslog
%_sbindir/x2go*
%_mandir/man8/x2go*.8%{?ext_man}
%_mandir/man1/x2go*.1%{?ext_man}
%exclude %_mandir/man8/x2gofm.8*
%exclude %_mandir/man8/x2goprint.8*
%exclude %_mandir/man8/x2goserver-run-extensions.8*
%exclude %_mandir/man8/x2go*-desktopsharing.8*
%exclude %_mandir/man1/x2goagent.1*
%dir %_datadir/x2go/
%dir %_datadir/x2go/x2gofeature.d/
%_datadir/x2go/x2gofeature.d/x2goserver.features
%_datadir/x2go/versions/VERSION.x2goserver
%ghost %attr(0660,root,x2gouser) %_localstatedir/lib/x2go/x2go_sessions
%_unitdir/x2goserver.service
%_sbindir/rc%name
##%%_sbindir/rcx2goserver

%files -n perl-X2Go-Log
%license COPYING
%doc README.md README.i18n ChangeLog
%dir %perl_vendorlib/X2Go
%perl_vendorlib/X2Go/Log.pm
%_mandir/man3/X2Go::Log.*

%files -n perl-X2Go-Server
%license COPYING
%doc README.md README.i18n ChangeLog

%dir %perl_vendorlib/X2Go/Server
%perl_vendorlib/X2Go/Config.pm
%perl_vendorlib/X2Go/Server.pm
%perl_vendorlib/X2Go/SupeReNicer.pm
%perl_vendorlib/X2Go/Utils.pm
%perl_vendorlib/X2Go/Server/Agent*
%_mandir/man3/X2Go::Config.*
%_mandir/man3/X2Go::Server.*
%_mandir/man3/X2Go::SupeReNicer.*
%_mandir/man3/X2Go::Utils.*
%_mandir/man3/X2Go::Server::Agent.*
%_mandir/man3/X2Go::Server::Agent::*

%files -n perl-X2Go-Server-DB
%license COPYING
%doc README.md README.i18n ChangeLog
%dir %_libdir/x2go
%config(noreplace) %_sysconfdir/permissions.d/perl-X2Go-Server-DB
%perl_vendorlib/X2Go/Server/DB*
%attr(2755,root,x2gouser) %_libdir/x2go/libx2go-server-db-sqlite3-wrapper
%_libdir/x2go/libx2go-server-db-sqlite3-wrapper.pl
%_mandir/man3/X2Go::Server::DB.*
%_mandir/man3/X2Go::Server::DB::*

%files common
%license COPYING
%doc README.md README.i18n ChangeLog
%attr(0775,root,x2gouser) %dir %_localstatedir/lib/x2go/
%dir %_sysconfdir/x2go/
%dir %_sysconfdir/x2go/x2gosql
%dir %_sysconfdir/x2go/x2gosql/passwords
%ghost %config(noreplace) %_sysconfdir/x2go/applications
%config(noreplace) %_sysconfdir/x2go/x2go_logout
%config(noreplace) %_sysconfdir/x2go/x2go_logout.d/
%config(noreplace) %_sysconfdir/x2go/x2goserver.conf
%config(noreplace) %_sysconfdir/x2go/x2gosql/sql
%_tmpfilesdir/%name.conf
%_mandir/man5/x2goserver.conf.5%{?ext_man}
%dir %_datadir/x2go/versions
%_datadir/x2go/versions/VERSION.x2goserver-common
%_sysusersdir/system-user-x2gouser.conf

%files desktopsharing
%license COPYING
%doc README.md README.i18n ChangeLog
%_bindir/x2go*-desktopsharing
%_datadir/x2go/versions/VERSION.x2goserver-desktopsharing
%_datadir/x2go/x2gofeature.d/x2goserver-desktopsharing.features
%_mandir/man8/x2go*-desktopsharing.8%{?ext_man}
%dir %_sysconfdir/x2go/desktopsharing
%config(noreplace) %_sysconfdir/x2go/desktopsharing/settings

%files extensions
%license COPYING
%doc README.md README.i18n ChangeLog
%_libdir/x2go/extensions
%_bindir/x2goserver-run-extensions
%_datadir/x2go/x2gofeature.d/x2goserver-extensions.features
%_datadir/x2go/versions/VERSION.x2goserver-extensions
%_mandir/man8/x2goserver-run-extensions.8%{?ext_man}

%files fmbindings
%license COPYING
%doc README.md README.i18n ChangeLog
%_bindir/x2gofm
%_datadir/applications/x2gofm.desktop
%_datadir/mime/packages/sshfs-x2go.xml
%_datadir/x2go/versions/VERSION.x2goserver-fmbindings
%_datadir/x2go/x2gofeature.d/x2goserver-fmbindings.features
%_mandir/man8/x2gofm.8%{?ext_man}

%files x2goagent
%license COPYING
%doc README.md README.i18n ChangeLog
%_bindir/x2goagent
%_libdir/nx/bin/x2goagent
%_datadir/x2go/versions/VERSION.x2goserver-x2goagent
%_datadir/pixmaps/x2goagent.xpm
%_datadir/x2go/x2gofeature.d/x2goserver-x2goagent.features
%_mandir/man1/x2goagent.1%{?ext_man}
%config(noreplace) %_sysconfdir/x2go/x2goagent.options
%config(noreplace) %_sysconfdir/x2go/keystrokes.cfg

%files x2gokdrive
%license COPYING
%doc README.md README.i18n ChangeLog
%_datadir/x2go/versions/VERSION.x2goserver-x2gokdrive
%_datadir/x2go/x2gofeature.d/x2goserver-x2gokdrive.features
%config(noreplace) %_sysconfdir/x2go/x2gokdrive.options

%files printing
%license COPYING
%doc README.md README.i18n ChangeLog
%_bindir/x2goprint
%_datadir/x2go/versions/VERSION.x2goserver-printing
%_datadir/x2go/x2gofeature.d/x2goserver-printing.features
%attr(0700,x2goprint,x2goprint) %_localstatedir/spool/x2goprint
%_mandir/man8/x2goprint.8%{?ext_man}
%_sysusersdir/system-user-x2goprint.conf

%files xsession
%license COPYING
%doc README.md README.i18n ChangeLog
##%%_sysconfdir/x2go/xinitrc.d
%_sysconfdir/x2go/Xresources
%config(noreplace) %_sysconfdir/x2go/Xsession
%_datadir/x2go/x2gofeature.d/x2goserver-xsession.features
%_datadir/x2go/versions/VERSION.x2goserver-xsession

%files logcheck
%license COPYING
%doc README.md README.i18n ChangeLog
# logcheck is not available on OpenSUSE, SLES/SLED, FC19 and RHEL.
# Please re-check this periodically.
%if 0%{?suse_version} || ( 0%{?fedora} && 0%{?fedora} < 20 ) || 0%{?rhel}
%dir %_sysconfdir/logcheck
%dir %_sysconfdir/logcheck/ignore.d.server
%endif
%config(noreplace) %_sysconfdir/logcheck/ignore.d.server/x2goserver

%changelog
openSUSE Build Service is sponsored by