File cups-x2go.spec of Package cups-x2go
#
# spec file for package cups-x2go
#
# Copyright (c) 2021 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: cups-x2go
Version: 3.0.1.4
Release: 0
Summary: CUPS backend for printing from X2Go
License: GPL-2.0-only
Group: Productivity/Networking/Remote Desktop
URL: https://www.x2go.org/
#Git-Clone: git://code.x2go.org/cups-x2go
#Git-Web: http://code.x2go.org/gitweb?p=cups-x2go.git;a=summary
Source0: 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
Requires: ghostscript
Requires: perl(File::Temp)
BuildArch: noarch
BuildRequires: cups-filters
Requires: cups-filters
BuildRequires: cups
Requires: cups
Requires: openssh
%perl_requires
%description
X2Go is a server based computing environment with
- session resuming
- low bandwidth support
- session brokerage support
- client side mass storage mounting support
- audio support
- authentication by smartcard and USB stick
CUPS backend for printing from X2Go.
%prep
%setup -q
%build
%install
mkdir -p %buildroot%_prefix/lib/cups/backend
install -pm0755 cups-x2go %buildroot%_prefix/lib/cups/backend/
mkdir -p %buildroot%_datadir/ppd/cups-x2go
install -pm0644 CUPS-X2GO.ppd %buildroot%_datadir/ppd/cups-x2go/
mkdir -p %buildroot%_sysconfdir/cups
install -pm0644 cups-x2go.conf %buildroot%_sysconfdir/cups/
mkdir -p %buildroot%_datadir/x2go/versions
install -pm0644 VERSION.cups-x2go %buildroot%_datadir/x2go/versions/
%files
%license COPYING
%doc README.txt ChangeLog
#
# The cups-x2go backend wants root permissions. So give them to it.
# http://www.cups.org/documentation.php/doc-1.4/man-backend.html says:
# “Backends without world execute permissions are run as the root user.
# Otherwise, the backend is run using the unprivileged user account,
# typically "lp".”
#
%attr(0700,root,root) %_prefix/lib/cups/backend/cups-x2go
%config(noreplace) %_sysconfdir/cups/cups-x2go.conf
%_datadir/ppd/cups-x2go/
%_datadir/x2go/
%changelog