2012-03-07 10:44:34 +01:00
|
|
|
#
|
2014-01-09 12:41:17 +01:00
|
|
|
# spec file for package tigervnc
|
2012-03-07 10:44:34 +01:00
|
|
|
#
|
2023-01-04 13:02:37 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-03-07 10:44:34 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-10-04 17:37:41 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-03-07 10:44:34 +01:00
|
|
|
#
|
|
|
|
|
2014-01-09 12:41:17 +01:00
|
|
|
|
2015-07-15 16:13:40 +02:00
|
|
|
%define vncgroup vnc
|
|
|
|
%define vncuser vnc
|
|
|
|
%define tlskey %{_sysconfdir}/vnc/tls.key
|
|
|
|
%define tlscert %{_sysconfdir}/vnc/tls.cert
|
2018-02-28 16:27:28 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%define use_firewalld 1
|
|
|
|
%else
|
|
|
|
%define use_firewalld 0
|
|
|
|
%endif
|
2020-07-01 12:45:55 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
2022-08-20 10:48:51 +02:00
|
|
|
%define _pam_vendordir %{_sysconfdir}/pam.d
|
2020-07-01 12:45:55 +02:00
|
|
|
%endif
|
2012-03-07 10:44:34 +01:00
|
|
|
Name: tigervnc
|
2022-02-17 11:42:51 +01:00
|
|
|
Version: 1.12.0
|
2012-03-07 10:44:34 +01:00
|
|
|
Release: 0
|
2021-08-28 13:05:01 +02:00
|
|
|
Summary: An implementation of VNC
|
|
|
|
License: GPL-2.0-only AND MIT
|
|
|
|
Group: System/X11/Servers/XF86_4
|
2022-04-28 23:36:58 +02:00
|
|
|
URL: https://tigervnc.org/
|
2021-08-28 13:05:01 +02:00
|
|
|
Source1: https://github.com/TigerVNC/tigervnc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source4: 10-libvnc.conf
|
|
|
|
Source5: vnc-server.susefirewall
|
|
|
|
Source6: vnc-httpd.susefirewall
|
|
|
|
Source7: vnc.reg
|
|
|
|
Source8: vncpasswd.arg
|
|
|
|
Source9: vnc.pam
|
|
|
|
Source10: with-vnc-key.sh
|
|
|
|
Source11: index.vnc
|
|
|
|
Source12: x11vnc
|
2021-11-15 18:40:56 +01:00
|
|
|
Source13: xvnc@.service.in
|
2021-08-28 13:05:01 +02:00
|
|
|
Source14: xvnc.socket
|
|
|
|
Source16: xvnc-novnc.socket
|
|
|
|
Source17: tigervnc.firewalld
|
|
|
|
Source18: tigervnc-https.firewalld
|
|
|
|
Source19: xvnc.target
|
|
|
|
Source21: xvnc-novnc.service.in
|
2021-10-28 17:38:01 +02:00
|
|
|
Source22: vnc.sysusers
|
2021-08-28 13:05:01 +02:00
|
|
|
Patch1: tigervnc-newfbsize.patch
|
|
|
|
Patch3: u_tigervnc-ignore-epipe-on-write.patch
|
|
|
|
Patch4: n_tigervnc-date-time.patch
|
2022-02-17 11:42:51 +01:00
|
|
|
Patch5: u_build_libXvnc_as_separate_library.patch
|
|
|
|
Patch6: u_tigervnc-add-autoaccept-parameter.patch
|
|
|
|
Patch7: u_change-button-layout-in-ServerDialog.patch
|
|
|
|
Patch8: n_correct_path_in_desktop_file.patch
|
|
|
|
Patch9: n_utilize-system-crypto-policies.patch
|
|
|
|
Patch10: u_tigervnc-211.patch
|
|
|
|
Patch11: xserver211.patch
|
2022-02-17 15:34:50 +01:00
|
|
|
Patch12: n_vncserver.patch
|
2022-02-17 11:42:51 +01:00
|
|
|
Provides: tightvnc = 1.5.0
|
|
|
|
Obsoletes: tightvnc < 1.5.0
|
2014-05-28 17:05:40 +02:00
|
|
|
Provides: vnc
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: cmake
|
2016-05-02 12:40:47 +02:00
|
|
|
BuildRequires: fltk-devel >= 1.3.3
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
2020-02-24 16:34:02 +01:00
|
|
|
BuildRequires: java-devel >= 1.8.0
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: jpackage-utils
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libtool
|
2021-10-29 18:58:57 +02:00
|
|
|
BuildRequires: xorg-x11-server-sdk >= 21.1.0
|
|
|
|
BuildRequires: xorg-x11-server-source >= 21.1.0
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xproto)
|
|
|
|
BuildRequires: pkgconfig(xtst)
|
2013-12-03 12:51:21 +01:00
|
|
|
# Because of keytool to build java client
|
2020-04-14 11:23:01 +02:00
|
|
|
BuildRequires: libXdamage-devel
|
|
|
|
BuildRequires: libXrandr-devel
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libgpg-error-devel
|
2013-12-03 12:51:21 +01:00
|
|
|
BuildRequires: mozilla-nss
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: pam-devel
|
2021-10-28 17:38:01 +02:00
|
|
|
BuildRequires: pkgconfig
|
2017-09-25 17:11:16 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2021-10-28 17:38:01 +02:00
|
|
|
BuildRequires: sysuser-tools
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: xmlto
|
|
|
|
BuildRequires: xorg-x11-libICE-devel
|
|
|
|
BuildRequires: xorg-x11-libSM-devel
|
|
|
|
BuildRequires: pkgconfig(bigreqsproto) >= 1.1.0
|
|
|
|
BuildRequires: pkgconfig(compositeproto) >= 0.4
|
|
|
|
BuildRequires: pkgconfig(damageproto) >= 1.1
|
|
|
|
BuildRequires: pkgconfig(dri)
|
2017-12-12 14:34:48 +01:00
|
|
|
BuildRequires: pkgconfig(egl)
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: pkgconfig(fixesproto) >= 4.1
|
|
|
|
BuildRequires: pkgconfig(fontsproto)
|
2012-03-07 10:44:34 +01:00
|
|
|
BuildRequires: pkgconfig(fontutil)
|
2017-12-12 14:34:48 +01:00
|
|
|
BuildRequires: pkgconfig(gbm)
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(glproto)
|
2021-06-07 09:19:54 +02:00
|
|
|
BuildRequires: pkgconfig(gnutls) >= 3.6.0
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: pkgconfig(inputproto) >= 1.9.99.902
|
|
|
|
BuildRequires: pkgconfig(kbproto) >= 1.0.3
|
|
|
|
BuildRequires: pkgconfig(libtasn1)
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
BuildRequires: pkgconfig(pciaccess) >= 0.8.0
|
|
|
|
BuildRequires: pkgconfig(pixman-1) >= 0.15.20
|
2015-07-27 20:03:07 +02:00
|
|
|
BuildRequires: pkgconfig(presentproto) >= 1.0
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: pkgconfig(randrproto) >= 1.2.99.3
|
|
|
|
BuildRequires: pkgconfig(recordproto) >= 1.13.99.1
|
|
|
|
BuildRequires: pkgconfig(renderproto) >= 0.11
|
|
|
|
BuildRequires: pkgconfig(resourceproto)
|
|
|
|
BuildRequires: pkgconfig(scrnsaverproto) >= 1.1
|
|
|
|
BuildRequires: pkgconfig(videoproto)
|
|
|
|
BuildRequires: pkgconfig(xau)
|
|
|
|
BuildRequires: pkgconfig(xcmiscproto) >= 1.2.0
|
|
|
|
BuildRequires: pkgconfig(xdmcp)
|
|
|
|
BuildRequires: pkgconfig(xextproto) >= 7.0.99.3
|
2015-07-27 20:03:07 +02:00
|
|
|
BuildRequires: pkgconfig(xf86driproto) >= 2.1.1
|
2016-11-30 18:19:03 +01:00
|
|
|
BuildRequires: pkgconfig(xfont2)
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: pkgconfig(xineramaproto)
|
|
|
|
BuildRequires: pkgconfig(xkbfile)
|
2014-04-28 03:00:15 +02:00
|
|
|
BuildRequires: pkgconfig(xorg-macros) >= 1.14
|
2014-01-09 12:41:17 +01:00
|
|
|
BuildRequires: pkgconfig(xproto) >= 7.0.17
|
|
|
|
BuildRequires: pkgconfig(xtrans) >= 1.2.2
|
2014-08-18 16:56:31 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2021-05-02 22:41:14 +02:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun):update-alternatives
|
2014-08-18 16:56:31 +02:00
|
|
|
%endif
|
2012-03-07 10:44:34 +01:00
|
|
|
|
|
|
|
%description
|
2018-04-11 12:35:20 +02:00
|
|
|
TigerVNC is an implementation of VNC (Virtual Network Computing), a
|
|
|
|
client/server application that allows users to launch and interact
|
|
|
|
with graphical applications on remote machines. TigerVNC is capable
|
|
|
|
of running 3D and video applications. TigerVNC also provides
|
|
|
|
extensions for advanced authentication methods and TLS encryption.
|
2013-12-03 12:51:21 +01:00
|
|
|
|
|
|
|
%package -n xorg-x11-Xvnc
|
2021-08-28 13:05:01 +02:00
|
|
|
Summary: TigerVNC implementation of Xvnc
|
|
|
|
Group: System/X11/Servers/XF86_4
|
2021-10-28 17:38:01 +02:00
|
|
|
Requires(pre): group(shadow)
|
|
|
|
%sysusers_requires
|
2018-03-23 11:14:23 +01:00
|
|
|
Requires(post): /bin/awk
|
|
|
|
Requires(post): systemd
|
2018-04-24 11:30:47 +02:00
|
|
|
%if %{use_firewalld}
|
2019-03-21 14:47:56 +01:00
|
|
|
BuildRequires: firewall-macros
|
2018-04-24 11:30:47 +02:00
|
|
|
%endif
|
2016-06-16 15:28:37 +02:00
|
|
|
# Needed to generate certificates
|
2016-08-09 14:55:15 +02:00
|
|
|
Requires: windowmanager
|
2015-08-31 15:36:14 +02:00
|
|
|
Requires: xauth
|
2015-12-16 15:26:37 +01:00
|
|
|
Requires: xinit
|
2015-08-31 15:36:14 +02:00
|
|
|
Requires: xkbcomp
|
2014-04-26 14:05:18 +02:00
|
|
|
Requires: xkeyboard-config
|
2016-04-27 12:38:25 +02:00
|
|
|
Requires: xorg-x11-fonts-core
|
2018-09-24 10:52:48 +02:00
|
|
|
Requires: openssl(cli)
|
2017-07-18 10:35:55 +02:00
|
|
|
# For the with-vnc-key.sh script
|
|
|
|
Requires: /bin/hostname
|
2017-09-25 17:11:16 +02:00
|
|
|
%{?systemd_requires}
|
2019-01-17 12:30:10 +01:00
|
|
|
%ifnarch s390 s390x
|
2018-08-06 14:13:11 +02:00
|
|
|
Recommends: xorg-x11-Xvnc-module
|
2019-01-17 12:30:10 +01:00
|
|
|
%endif
|
2022-02-17 11:42:51 +01:00
|
|
|
Provides: tightvnc = 1.5.0
|
|
|
|
Obsoletes: tightvnc < 1.5.0
|
2016-06-16 15:28:37 +02:00
|
|
|
Provides: xorg-x11-Xvnc:/usr/lib/vnc/with-vnc-key.sh
|
2013-12-03 12:51:21 +01:00
|
|
|
|
|
|
|
%description -n xorg-x11-Xvnc
|
|
|
|
This is the TigerVNC implementation of Xvnc.
|
2012-03-07 10:44:34 +01:00
|
|
|
|
2018-08-06 14:13:11 +02:00
|
|
|
%package -n xorg-x11-Xvnc-module
|
|
|
|
Summary: VNC module for X server
|
2019-04-20 11:56:35 +02:00
|
|
|
#%%{x11_abi_extension_req}
|
2018-08-06 14:13:11 +02:00
|
|
|
Group: System/X11/Servers/XF86_4
|
2021-08-28 13:05:01 +02:00
|
|
|
Requires: xorg-x11-Xvnc
|
2018-08-06 14:13:11 +02:00
|
|
|
|
|
|
|
%description -n xorg-x11-Xvnc-module
|
|
|
|
This module allows to share content of X server's screen over VNC.
|
|
|
|
It is loaded into X server as a module if enable in X server's
|
|
|
|
configuration.
|
|
|
|
|
2017-09-25 17:11:16 +02:00
|
|
|
%package -n xorg-x11-Xvnc-novnc
|
2021-08-28 13:05:01 +02:00
|
|
|
Summary: NoVNC service for Xvnc
|
|
|
|
Group: System/X11/Servers/XF86_4
|
2017-09-25 17:11:16 +02:00
|
|
|
Requires: novnc
|
2019-01-17 13:31:12 +01:00
|
|
|
Requires: python3-websockify
|
2017-09-25 17:11:16 +02:00
|
|
|
Requires: xorg-x11-Xvnc
|
2022-04-28 23:36:58 +02:00
|
|
|
BuildArch: noarch
|
2017-09-25 17:11:16 +02:00
|
|
|
%{?systemd_requires}
|
|
|
|
|
|
|
|
%description -n xorg-x11-Xvnc-novnc
|
|
|
|
A service that starts noVNC linked to Xvnc server.
|
|
|
|
|
|
|
|
%package -n xorg-x11-Xvnc-java
|
|
|
|
Summary: VNC viewer in java
|
|
|
|
Group: System/X11/Servers/XF86_4
|
2021-08-28 13:05:01 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%{?systemd_requires}
|
2017-09-25 17:11:16 +02:00
|
|
|
|
|
|
|
%description -n xorg-x11-Xvnc-java
|
|
|
|
A VNC client written in java that can be used as standalone application or as
|
|
|
|
an applet inside web page.
|
|
|
|
|
2016-04-29 17:38:45 +02:00
|
|
|
%package -n libXvnc1
|
|
|
|
Summary: X extension to control VNC module
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libXvnc1
|
|
|
|
Xvnc extension allows X clients to read and change VNC configuration.
|
|
|
|
|
|
|
|
%package -n libXvnc-devel
|
|
|
|
Summary: X extension to control VNC module
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libXvnc1 = %version
|
|
|
|
|
|
|
|
%description -n libXvnc-devel
|
|
|
|
Xvnc extension allows X clients to read and change VNC configuration.
|
|
|
|
|
2017-09-25 17:11:16 +02:00
|
|
|
%package x11vnc
|
|
|
|
Summary: Wrapper that starts x0vncserver
|
|
|
|
Group: System/X11/Servers/XF86_4
|
|
|
|
Requires: xorg-x11-Xvnc
|
|
|
|
Conflicts: x11vnc
|
2022-04-28 23:36:58 +02:00
|
|
|
Provides: x11vnc
|
2017-09-25 17:11:16 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description x11vnc
|
|
|
|
This is a wrapper that looks like x11vnc, but starts x0vncserver instead.
|
|
|
|
It maps common x11vnc arguments to x0vncserver arguments.
|
|
|
|
|
2012-03-07 10:44:34 +01:00
|
|
|
%prep
|
2020-01-04 23:30:49 +01:00
|
|
|
%setup -T -b1 -q -n tigervnc-%{version}
|
2012-03-07 10:44:34 +01:00
|
|
|
%patch1 -p1
|
2015-07-15 16:13:40 +02:00
|
|
|
%patch3 -p0
|
|
|
|
%patch4 -p1
|
2016-09-13 16:12:30 +02:00
|
|
|
%patch5 -p1
|
2016-01-12 13:44:44 +01:00
|
|
|
%patch6 -p1
|
2015-07-15 16:13:40 +02:00
|
|
|
%patch7 -p1
|
2020-09-25 13:26:30 +02:00
|
|
|
%patch8 -p1
|
2021-10-21 13:01:07 +02:00
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400
|
2022-02-17 11:42:51 +01:00
|
|
|
%patch9 -p1
|
2021-10-21 13:01:07 +02:00
|
|
|
%endif
|
2022-02-17 11:42:51 +01:00
|
|
|
%patch10 -p0
|
2022-02-17 15:34:50 +01:00
|
|
|
%patch12 -p0
|
2014-08-18 14:26:36 +02:00
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
cp -r %{_prefix}/src/xserver/* unix/xserver/
|
2013-12-03 12:51:21 +01:00
|
|
|
pushd unix/xserver
|
2022-02-17 11:42:51 +01:00
|
|
|
%patch11 -p1
|
2013-12-03 12:51:21 +01:00
|
|
|
popd
|
|
|
|
|
2012-03-07 10:44:34 +01:00
|
|
|
%build
|
2021-10-28 17:38:01 +02:00
|
|
|
%sysusers_generate_pre %{SOURCE22} xorg-x11-Xvnc vnc.conf
|
2017-06-02 13:00:40 +02:00
|
|
|
export CXXFLAGS="%optflags"
|
|
|
|
export CFLAGS="%optflags"
|
2021-11-15 18:40:56 +01:00
|
|
|
sed "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE13} > xvnc@.service
|
2021-05-03 11:41:55 +02:00
|
|
|
sed "s|@LIBEXECDIR@|%{_libexecdir}|g" %{SOURCE21} > xvnc-novnc.service
|
2013-12-03 12:51:21 +01:00
|
|
|
# Build all tigervnc
|
2022-02-17 11:42:51 +01:00
|
|
|
cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
|
|
|
-DCMAKE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo .
|
2021-08-28 13:05:01 +02:00
|
|
|
%make_build
|
2013-12-03 12:51:21 +01:00
|
|
|
|
|
|
|
# Build Xvnc server
|
|
|
|
pushd unix/xserver
|
2012-06-05 10:47:36 +02:00
|
|
|
autoreconf -fi
|
2013-12-03 12:51:21 +01:00
|
|
|
%configure \
|
|
|
|
--disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
|
2021-08-28 13:05:01 +02:00
|
|
|
--disable-xwin --disable-xephyr --disable-kdrive \
|
2013-12-03 12:51:21 +01:00
|
|
|
--disable-static --disable-xinerama \
|
2020-08-23 00:39:29 +02:00
|
|
|
--with-xkb-path="%{_datadir}/X11/xkb" \
|
|
|
|
--with-xkb-output="%{_sharedstatedir}/xkb/compiled" \
|
2015-07-27 20:03:07 +02:00
|
|
|
--enable-glx --enable-dri \
|
|
|
|
%ifnarch s390 s390x
|
|
|
|
--enable-dri2 \
|
|
|
|
%endif
|
2013-12-03 12:51:21 +01:00
|
|
|
--disable-config-dbus \
|
|
|
|
--disable-config-hal \
|
|
|
|
--disable-config-udev \
|
|
|
|
--without-dtrace \
|
|
|
|
--disable-unit-tests \
|
|
|
|
--disable-devel-docs \
|
2020-08-23 00:39:29 +02:00
|
|
|
--with-fontrootdir=%{_datadir}/fonts \
|
2013-12-03 12:51:21 +01:00
|
|
|
--disable-selective-werror
|
2021-08-28 13:05:01 +02:00
|
|
|
%make_build V=1
|
2013-12-03 12:51:21 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
# Build java client
|
|
|
|
pushd java
|
2022-02-17 11:42:51 +01:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} .
|
2021-08-28 13:05:01 +02:00
|
|
|
%make_build
|
2012-03-07 10:44:34 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2013-12-03 12:51:21 +01:00
|
|
|
|
|
|
|
%make_install
|
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
mv %{buildroot}%{_bindir}/vncviewer %{buildroot}%{_bindir}/vncviewer-tigervnc
|
|
|
|
mv %{buildroot}%{_datadir}/man/man1/vncviewer.1 %{buildroot}%{_datadir}/man/man1/vncviewer-tigervnc.1
|
2014-05-28 17:05:40 +02:00
|
|
|
|
2013-12-03 12:51:21 +01:00
|
|
|
pushd unix/xserver
|
|
|
|
%make_install
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd java
|
2020-08-23 00:39:29 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/vnc/classes
|
|
|
|
install -m755 VncViewer.jar %{buildroot}%{_datadir}/vnc/classes
|
2013-12-03 12:51:21 +01:00
|
|
|
popd
|
|
|
|
|
2014-01-10 16:13:33 +01:00
|
|
|
%ifnarch s390x
|
2020-08-23 00:39:29 +02:00
|
|
|
install -D -m 644 %{SOURCE4} %{buildroot}%{_datadir}/X11/xorg.conf.d/10-libvnc.conf
|
2014-01-10 16:13:33 +01:00
|
|
|
%endif
|
2018-02-28 16:27:28 +01:00
|
|
|
|
|
|
|
%if %{use_firewalld}
|
2020-08-23 00:39:29 +02:00
|
|
|
install -D -m 644 %{SOURCE17} %{buildroot}%{_prefix}/lib/firewalld/services/tigervnc.xml
|
|
|
|
install -D -m 644 %{SOURCE18} %{buildroot}%{_prefix}/lib/firewalld/services/tigervnc-https.xml
|
2018-02-28 16:27:28 +01:00
|
|
|
%else
|
2020-08-23 00:39:29 +02:00
|
|
|
install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/vnc-server
|
|
|
|
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/vnc-httpd
|
2018-02-28 16:27:28 +01:00
|
|
|
%endif
|
|
|
|
|
2022-02-17 11:42:51 +01:00
|
|
|
# only package as %%doc (boo#1173045)
|
2020-07-01 12:45:55 +02:00
|
|
|
cp %{SOURCE7} .
|
2020-08-23 00:39:29 +02:00
|
|
|
install -D -m 755 %{SOURCE8} %{buildroot}%{_bindir}/vncpasswd.arg
|
2022-08-20 10:48:51 +02:00
|
|
|
install -D -m 644 %{SOURCE9} %{buildroot}%{_pam_vendordir}/vnc
|
2023-01-04 13:02:37 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
mv %{buildroot}%{_sysconfdir}/pam.d/tigervnc %{buildroot}%{_pam_vendordir}
|
|
|
|
%endif
|
2020-08-23 00:39:29 +02:00
|
|
|
install -D -m 644 %{SOURCE11} %{buildroot}%{_datadir}/vnc/classes
|
2014-08-18 16:56:31 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2020-08-23 00:39:29 +02:00
|
|
|
ln -s -f %{_sysconfdir}/alternatives/vncviewer %{buildroot}%{_bindir}/vncviewer
|
|
|
|
ln -s -f %{_sysconfdir}/alternatives/vncviewer.1.gz %{buildroot}%{_mandir}/man1/vncviewer.1.gz
|
2014-08-18 16:56:31 +02:00
|
|
|
%endif
|
2013-12-03 12:51:21 +01:00
|
|
|
|
2017-09-25 17:11:16 +02:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcxvnc
|
|
|
|
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcxvnc-novnc
|
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/vnc
|
2015-07-15 16:13:40 +02:00
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/vnc
|
|
|
|
install -D -m 755 %{SOURCE10} %{buildroot}%{_libexecdir}/vnc
|
2017-09-25 17:11:16 +02:00
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
install -D -m 755 %{SOURCE12} %{buildroot}%{_bindir}/x11vnc
|
2017-09-25 17:11:16 +02:00
|
|
|
|
2021-11-15 18:40:56 +01:00
|
|
|
install -D xvnc@.service -m 0444 %{buildroot}%{_unitdir}/xvnc@.service
|
2017-09-25 17:11:16 +02:00
|
|
|
install -D %{SOURCE14} -m 0444 %{buildroot}%{_unitdir}/xvnc.socket
|
|
|
|
install -D %{SOURCE16} -m 0444 %{buildroot}%{_unitdir}/xvnc-novnc.socket
|
2018-08-06 14:13:11 +02:00
|
|
|
install -D %{SOURCE19} -m 0444 %{buildroot}%{_unitdir}/xvnc.target
|
2021-05-03 11:41:55 +02:00
|
|
|
install -D xvnc-novnc.service -m 0444 %{buildroot}%{_unitdir}/xvnc-novnc.service
|
2016-06-16 15:28:37 +02:00
|
|
|
|
2021-10-28 17:38:01 +02:00
|
|
|
install -Dm0644 %{SOURCE22} %{buildroot}%{_sysusersdir}/vnc.conf
|
|
|
|
|
2022-02-17 11:42:51 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/tigervnc*
|
2015-04-14 12:44:22 +02:00
|
|
|
|
2012-03-07 10:44:34 +01:00
|
|
|
%find_lang '%{name}'
|
|
|
|
|
2014-05-28 17:05:40 +02:00
|
|
|
%post
|
2015-07-15 16:13:40 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2014-06-04 14:06:57 +02:00
|
|
|
%_sbindir/update-alternatives \
|
|
|
|
--install %{_bindir}/vncviewer vncviewer %{_bindir}/vncviewer-tigervnc 20 \
|
|
|
|
--slave %{_mandir}/man1/vncviewer.1.gz vncviewer.1.gz %{_mandir}/man1/vncviewer-tigervnc.1.gz
|
2015-07-15 16:13:40 +02:00
|
|
|
%endif
|
2014-05-28 17:05:40 +02:00
|
|
|
|
|
|
|
%postun
|
2015-07-15 16:13:40 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2014-05-28 17:05:40 +02:00
|
|
|
if [ "$1" = 0 ] ; then
|
2020-08-23 00:39:29 +02:00
|
|
|
"%{_sbindir}/update-alternatives" --remove vncviewer %{_bindir}/vncviewer-tigervnc
|
2014-05-28 17:05:40 +02:00
|
|
|
fi
|
2014-08-18 16:56:31 +02:00
|
|
|
%endif
|
|
|
|
|
2021-10-28 17:38:01 +02:00
|
|
|
%pre -n xorg-x11-Xvnc -f xorg-x11-Xvnc.pre
|
2017-09-25 17:11:16 +02:00
|
|
|
%service_add_pre xvnc.socket
|
2023-01-04 13:02:37 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
# Prepare for migration to /usr/lib; save any old .rpmsave
|
|
|
|
for i in pam.d/vnc pam.d/tigervnc ; do
|
|
|
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
|
|
|
done
|
|
|
|
|
|
|
|
%posttrans -n xorg-x11-Xvnc
|
|
|
|
# Migration to /usr/lib, restore just created .rpmsave
|
|
|
|
for i in pam.d/vnc pam.d/tigervnc ; do
|
|
|
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
|
|
|
done
|
|
|
|
%endif
|
2017-09-25 17:11:16 +02:00
|
|
|
|
|
|
|
%post -n xorg-x11-Xvnc
|
|
|
|
%service_add_post xvnc.socket
|
|
|
|
|
2018-04-24 11:30:47 +02:00
|
|
|
%if %{use_firewalld}
|
|
|
|
%{firewalld_reload}
|
|
|
|
%endif
|
|
|
|
|
2018-03-23 11:14:23 +01:00
|
|
|
# If there is old xinetd configuration file and VNC service was enabled, enable the systemd service too.
|
|
|
|
# Once we are done, RPM will rename the file to /etc/xinetd.d/vnc.rpmsave, so this won't happen
|
|
|
|
# during future updates.
|
2020-08-23 00:39:29 +02:00
|
|
|
if [ -e %{_sysconfdir}/xinetd.d/vnc ] && awk '
|
2018-03-23 11:14:23 +01:00
|
|
|
BEGIN { in_vnc1_section = 0 }
|
|
|
|
/service.*vnc1/ { in_vnc1_section = 1 }
|
|
|
|
in_vnc1_section && /disable\s*=\s*yes/ { exit 1 }
|
|
|
|
in_vnc1_section && /}/ { exit 0 }
|
2020-08-23 00:39:29 +02:00
|
|
|
' %{_sysconfdir}/xinetd.d/vnc;
|
2018-03-23 11:14:23 +01:00
|
|
|
then
|
|
|
|
echo "Found old xinetd configuration with enabled VNC service. Enabling xvnc.socket."
|
|
|
|
systemctl enable xvnc.socket
|
|
|
|
fi
|
|
|
|
|
2017-09-25 17:11:16 +02:00
|
|
|
%preun -n xorg-x11-Xvnc
|
|
|
|
%service_del_preun xvnc.socket
|
|
|
|
|
|
|
|
%postun -n xorg-x11-Xvnc
|
|
|
|
%service_del_postun xvnc.socket
|
|
|
|
|
|
|
|
%pre -n xorg-x11-Xvnc-novnc
|
2021-08-28 13:05:01 +02:00
|
|
|
%service_add_pre xvnc-novnc.service xvnc-novnc.socket
|
2017-09-25 17:11:16 +02:00
|
|
|
|
|
|
|
%post -n xorg-x11-Xvnc-novnc
|
2021-08-28 13:05:01 +02:00
|
|
|
%service_add_post xvnc-novnc.service xvnc-novnc.socket
|
2017-09-25 17:11:16 +02:00
|
|
|
|
|
|
|
%preun -n xorg-x11-Xvnc-novnc
|
2021-08-28 13:05:01 +02:00
|
|
|
%service_del_preun xvnc-novnc.service xvnc-novnc.socket
|
2017-09-25 17:11:16 +02:00
|
|
|
|
|
|
|
%postun -n xorg-x11-Xvnc-novnc
|
2021-08-28 13:05:01 +02:00
|
|
|
%service_del_postun xvnc-novnc.service xvnc-novnc.socket
|
2017-09-25 17:11:16 +02:00
|
|
|
|
2016-04-29 17:38:45 +02:00
|
|
|
%post -n libXvnc1 -p /sbin/ldconfig
|
|
|
|
%postun -n libXvnc1 -p /sbin/ldconfig
|
|
|
|
|
2013-12-03 12:51:21 +01:00
|
|
|
%files -f %{name}.lang
|
2014-06-04 14:06:57 +02:00
|
|
|
%ghost %{_bindir}/vncviewer
|
2014-05-28 17:05:40 +02:00
|
|
|
%{_bindir}/vncviewer-tigervnc
|
2022-04-28 23:36:58 +02:00
|
|
|
%license LICENCE.TXT
|
|
|
|
%doc README.rst
|
2020-08-23 00:39:29 +02:00
|
|
|
%ghost %{_mandir}/man1/vncviewer.1.gz
|
2022-04-28 23:36:58 +02:00
|
|
|
%{_mandir}/man1/vncviewer-tigervnc.1%{?ext_man}
|
2014-08-18 16:56:31 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
2020-08-23 00:39:29 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/vncviewer
|
|
|
|
%ghost %{_sysconfdir}/alternatives/vncviewer.1.gz
|
2014-08-18 16:56:31 +02:00
|
|
|
%endif
|
2013-12-03 12:51:21 +01:00
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
%dir %{_datadir}/icons/hicolor/16x16
|
|
|
|
%dir %{_datadir}/icons/hicolor/16x16/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/22x22
|
|
|
|
%dir %{_datadir}/icons/hicolor/22x22/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/24x24
|
|
|
|
%dir %{_datadir}/icons/hicolor/24x24/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/32x32
|
|
|
|
%dir %{_datadir}/icons/hicolor/32x32/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/48x48
|
|
|
|
%dir %{_datadir}/icons/hicolor/48x48/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/scalable
|
|
|
|
%dir %{_datadir}/icons/hicolor/scalable/apps
|
2016-09-13 16:12:30 +02:00
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/tigervnc.png
|
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/tigervnc.svg
|
2016-09-13 16:12:30 +02:00
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
%{_datadir}/applications/vncviewer.desktop
|
2016-09-13 16:12:30 +02:00
|
|
|
|
2013-12-03 12:51:21 +01:00
|
|
|
%files -n xorg-x11-Xvnc
|
2022-04-28 23:36:58 +02:00
|
|
|
%license LICENCE.TXT
|
|
|
|
%doc README.rst vnc.reg
|
2022-02-17 11:42:51 +01:00
|
|
|
%doc unix/vncserver/HOWTO.md
|
2013-12-03 12:51:21 +01:00
|
|
|
|
|
|
|
%{_bindir}/Xvnc
|
|
|
|
%{_bindir}/vncconfig
|
|
|
|
%{_bindir}/vncpasswd
|
2014-02-13 15:57:22 +01:00
|
|
|
%{_bindir}/vncpasswd.arg
|
2013-12-03 12:51:21 +01:00
|
|
|
%{_bindir}/x0vncserver
|
2022-02-17 11:42:51 +01:00
|
|
|
%{_sbindir}/vncsession
|
|
|
|
|
|
|
|
%{_libexecdir}/vncserver
|
|
|
|
%{_libexecdir}/vncsession-start
|
2013-12-03 12:51:21 +01:00
|
|
|
|
2012-03-07 10:44:34 +01:00
|
|
|
%exclude %{_mandir}/man1/Xserver.1*
|
2022-04-28 23:36:58 +02:00
|
|
|
%{_mandir}/man1/Xvnc.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/vncconfig.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/vncpasswd.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/x0vncserver.1%{?ext_man}
|
|
|
|
%{_mandir}/man8/vncserver.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/vncsession.8%{?ext_man}
|
2013-12-03 12:51:21 +01:00
|
|
|
|
2022-02-17 11:42:51 +01:00
|
|
|
%{_unitdir}/vncserver@.service
|
2017-09-25 17:11:16 +02:00
|
|
|
%{_unitdir}/xvnc@.service
|
|
|
|
%{_unitdir}/xvnc.socket
|
2018-08-06 14:13:11 +02:00
|
|
|
%{_unitdir}/xvnc.target
|
2021-10-28 17:38:01 +02:00
|
|
|
%{_sysusersdir}/vnc.conf
|
2017-09-25 17:11:16 +02:00
|
|
|
%{_sbindir}/rcxvnc
|
|
|
|
|
2022-02-17 11:42:51 +01:00
|
|
|
%dir %{_sysconfdir}/tigervnc
|
|
|
|
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver*
|
|
|
|
|
2020-08-23 00:39:29 +02:00
|
|
|
%exclude %{_sharedstatedir}/xkb/compiled/README.compiled
|
2013-12-03 12:51:21 +01:00
|
|
|
|
2018-02-28 16:27:28 +01:00
|
|
|
%if %{use_firewalld}
|
2020-08-23 00:39:29 +02:00
|
|
|
%dir %{_prefix}/lib/firewalld
|
|
|
|
%dir %{_prefix}/lib/firewalld/services
|
|
|
|
%{_prefix}/lib/firewalld/services/tigervnc.xml
|
|
|
|
%{_prefix}/lib/firewalld/services/tigervnc-https.xml
|
2018-02-28 16:27:28 +01:00
|
|
|
%else
|
2014-06-04 14:06:57 +02:00
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/vnc-server
|
|
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/vnc-httpd
|
2018-02-28 16:27:28 +01:00
|
|
|
%endif
|
2013-12-03 12:51:21 +01:00
|
|
|
|
2020-07-01 12:45:55 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
2022-08-20 10:48:51 +02:00
|
|
|
%config %{_sysconfdir}/pam.d/vnc
|
2023-01-04 13:02:37 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/tigervnc
|
2020-07-01 12:45:55 +02:00
|
|
|
%else
|
2022-08-20 10:48:51 +02:00
|
|
|
%{_pam_vendordir}/vnc
|
2023-01-04 13:02:37 +01:00
|
|
|
%{_pam_vendordir}/tigervnc
|
2020-07-01 12:45:55 +02:00
|
|
|
%endif
|
2016-05-24 15:17:03 +02:00
|
|
|
|
2016-06-16 15:28:37 +02:00
|
|
|
%dir %attr(0755,%{vncuser},%{vncuser}) %{_sysconfdir}/vnc
|
2015-07-15 16:13:40 +02:00
|
|
|
%ghost %attr(0600,%{vncuser},%{vncuser}) %config(noreplace) %{tlskey}
|
|
|
|
%ghost %attr(0644,%{vncuser},%{vncuser}) %config(noreplace) %{tlscert}
|
|
|
|
|
2016-06-16 15:28:37 +02:00
|
|
|
%{_libexecdir}/vnc
|
|
|
|
|
2019-01-17 12:30:10 +01:00
|
|
|
%ifarch s390 s390x
|
|
|
|
# These would be in xorg-x11-Xvnc-module, but we don't build that on s390
|
2020-08-23 00:39:29 +02:00
|
|
|
%exclude %{_libdir}/xorg/protocol.txt
|
|
|
|
%exclude %{_libdir}/xorg/modules/extensions/libvnc.la
|
|
|
|
%exclude %{_libdir}/xorg/modules/extensions/libvnc.so
|
2019-01-17 12:30:10 +01:00
|
|
|
%endif
|
|
|
|
|
2018-08-06 14:13:11 +02:00
|
|
|
%ifnarch s390 s390x
|
2019-01-17 12:30:10 +01:00
|
|
|
%files -n xorg-x11-Xvnc-module
|
2020-08-23 00:39:29 +02:00
|
|
|
%exclude %{_libdir}/xorg/protocol.txt
|
|
|
|
%exclude %{_libdir}/xorg/modules/extensions/libvnc.la
|
2018-08-06 14:13:11 +02:00
|
|
|
%{_libdir}/xorg/modules/extensions/libvnc.so
|
2020-08-23 00:39:29 +02:00
|
|
|
%{_datadir}/X11/xorg.conf.d/10-libvnc.conf
|
2020-07-01 12:45:55 +02:00
|
|
|
%endif
|
2018-08-06 14:13:11 +02:00
|
|
|
|
2017-09-25 17:11:16 +02:00
|
|
|
%files -n xorg-x11-Xvnc-novnc
|
|
|
|
%{_unitdir}/xvnc-novnc.service
|
|
|
|
%{_unitdir}/xvnc-novnc.socket
|
|
|
|
%{_sbindir}/rcxvnc-novnc
|
|
|
|
|
|
|
|
%files -n xorg-x11-Xvnc-java
|
|
|
|
%doc java/com/tigervnc/vncviewer/README
|
|
|
|
%{_datadir}/vnc
|
|
|
|
|
2016-04-29 17:38:45 +02:00
|
|
|
%files -n libXvnc1
|
|
|
|
%{_libdir}/libXvnc.so.1*
|
|
|
|
|
|
|
|
%files -n libXvnc-devel
|
|
|
|
%{_libdir}/libXvnc.so
|
|
|
|
%{_includedir}/X11/extensions/Xvnc.h
|
|
|
|
|
2017-09-25 17:11:16 +02:00
|
|
|
%files x11vnc
|
|
|
|
%{_bindir}/x11vnc
|
|
|
|
|
2012-03-07 10:44:34 +01:00
|
|
|
%changelog
|