2019-09-30 11:18:26 -04:00
|
|
|
%global _hardened_build 1
|
2022-03-22 15:41:37 +08:00
|
|
|
%global selinuxtype targeted
|
|
|
|
|
%global modulename vncsession
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
Name: tigervnc
|
2023-02-23 08:28:06 +00:00
|
|
|
Version: 1.13.0
|
|
|
|
|
Release: 1
|
2019-09-30 11:18:26 -04:00
|
|
|
Summary: A TigerVNC remote display system
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
2020-09-07 16:39:33 +08:00
|
|
|
URL: http://github.com/TigerVNC/tigervnc/
|
2019-09-30 11:18:26 -04:00
|
|
|
|
2023-02-23 08:28:06 +00:00
|
|
|
Source0: https://github.com/TigerVNC/tigervnc/archive/v1.13.0.tar.gz
|
2019-09-30 11:18:26 -04:00
|
|
|
Source1: vncserver.service
|
2022-03-22 15:41:37 +08:00
|
|
|
Source2: vncserver
|
2019-09-30 11:18:26 -04:00
|
|
|
Source3: 10-libvnc.conf
|
|
|
|
|
Source4: xvnc.service
|
|
|
|
|
Source5: xvnc.socket
|
2022-03-22 15:41:37 +08:00
|
|
|
Source6: HOWTO.md
|
2019-09-30 11:18:26 -04:00
|
|
|
|
2020-07-30 16:10:25 +08:00
|
|
|
Patch0001: tigervnc-xserver120.patch
|
2022-04-14 12:59:26 +08:00
|
|
|
Patch0002: 0001-Fix-some-translations-of-start-menu.patch
|
2023-02-23 08:28:06 +00:00
|
|
|
Patch0003: backport-tigervnc-sanity-check-when-cleaning-up-keymap-changes.patch
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++ systemd cmake automake autoconf gettext gettext-autopoint pixman-devel fltk-devel >= 1.3.3
|
|
|
|
|
BuildRequires: libX11-devel libtool libxkbfile-devel libpciaccess-devel libXinerama-devel libXfont2-devel
|
|
|
|
|
BuildRequires: libXext-devel xorg-x11-server-source libXi-devel libXdmcp-devel libxshmfence-devel
|
|
|
|
|
BuildRequires: xorg-x11-xtrans-devel xorg-x11-util-macros xorg-x11-server-devel libXtst-devel libdrm-devel libXt-devel
|
2022-03-22 15:41:37 +08:00
|
|
|
BuildRequires: openssl-devel mesa-libGL-devel freetype-devel desktop-file-utils java-devel jpackage-utils pam-devel gnutls-devel libjpeg-turbo-devel selinux-policy-devel
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
Requires(post): coreutils
|
|
|
|
|
Requires(postun):coreutils
|
|
|
|
|
|
2019-12-26 14:59:26 +08:00
|
|
|
Requires: hicolor-icon-theme
|
2019-11-06 19:54:15 +08:00
|
|
|
|
2022-04-01 11:26:24 +08:00
|
|
|
Provides: %{name}-icons = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-icons < %{version}-%{release}
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%description
|
2019-11-06 19:54:15 +08:00
|
|
|
This package provides client for Virtual Network Computing (VNC), with which
|
|
|
|
|
you can access any other desktops running a VNC server.
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%package server
|
|
|
|
|
Summary: A TigerVNC server
|
2019-12-26 14:59:26 +08:00
|
|
|
Requires: perl-interpreter tigervnc-server-minimal xorg-x11-xauth xorg-x11-xinit
|
2022-03-22 15:41:37 +08:00
|
|
|
Requires: (tigervnc-selinux if selinux-policy-%{selinuxtype})
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%description server
|
2019-11-06 19:54:15 +08:00
|
|
|
This package provides full installaion of TigerCNC and utilities that
|
|
|
|
|
make access more convenient. For example, you can export your active
|
2019-09-30 11:18:26 -04:00
|
|
|
X session.
|
|
|
|
|
|
|
|
|
|
%package server-minimal
|
|
|
|
|
Summary: A minimal installation of TigerVNC server
|
|
|
|
|
|
2022-03-22 15:41:37 +08:00
|
|
|
Requires: mesa-dri-drivers, xkeyboard-config, %{name}-license xkbcomp
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%description server-minimal
|
2019-11-06 19:54:15 +08:00
|
|
|
This package provides minimal installation of TigerVNC, with which
|
|
|
|
|
other people can access your desktop on your machine.
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%package server-module
|
|
|
|
|
Summary: TigerVNC module to Xorg
|
2022-03-30 11:37:38 +08:00
|
|
|
Requires: xorg-x11-server-Xorg %(xserver-sdk-abi-requires ansic) %(xserver-sdk-abi-requires videodrv) %{name}-license
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%description server-module
|
|
|
|
|
This package contains libvnc.so module to X server, allowing others
|
|
|
|
|
to access the desktop on your machine.
|
|
|
|
|
|
|
|
|
|
%package server-applet
|
|
|
|
|
Summary: Java TigerVNC viewer applet for TigerVNC server
|
2019-12-26 14:59:26 +08:00
|
|
|
Requires: tigervnc-server, java, jpackage-utils
|
2019-09-30 11:18:26 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description server-applet
|
2019-11-06 19:54:15 +08:00
|
|
|
If you want to use web browser in clients, please install this package.
|
2019-09-30 11:18:26 -04:00
|
|
|
|
2022-03-22 15:41:37 +08:00
|
|
|
%package selinux
|
|
|
|
|
Summary: SElinux module for TigerVNC
|
|
|
|
|
BuildRequires: selinux-policy-devel
|
|
|
|
|
Requires: selinux-policy-targeted
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description selinux
|
|
|
|
|
This package provides the SElinux policy module to ensure Tigervnc runs properly under an environment with SElinux enabled
|
|
|
|
|
|
|
|
|
|
%package license
|
|
|
|
|
Summary: License of Tigervnc suite
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description license
|
|
|
|
|
This package contains license of the Tigervnc suite
|
|
|
|
|
|
2019-12-26 14:59:26 +08:00
|
|
|
%package_help
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
cp -r /usr/share/xorg-x11-server-source/* unix/xserver
|
2020-07-30 16:10:25 +08:00
|
|
|
%patch0001 -p1 -b .xserver120-rebased
|
|
|
|
|
|
2019-09-30 11:18:26 -04:00
|
|
|
pushd unix/xserver
|
|
|
|
|
for all in `find . -type f -perm -001`; do
|
|
|
|
|
chmod -x "$all"
|
|
|
|
|
done
|
|
|
|
|
popd
|
2022-04-14 12:59:26 +08:00
|
|
|
%patch0002 -p1
|
2023-02-23 08:28:06 +00:00
|
|
|
%patch0003 -p1
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fpic"
|
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
|
|
|
|
%{cmake} .
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
pushd unix/xserver
|
|
|
|
|
autoreconf -fiv
|
|
|
|
|
%configure \
|
|
|
|
|
--disable-xorg --disable-xnest --disable-xvfb --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
|
|
|
|
|
--with-pic --disable-static --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \
|
|
|
|
|
--with-fontdir=%{_datadir}/X11/fonts --with-xkb-output=%{_localstatedir}/lib/xkb --enable-install-libxf86config \
|
|
|
|
|
--enable-glx --disable-dri --enable-dri2 --disable-dri3 --disable-unit-tests --disable-config-hal --disable-config-udev \
|
|
|
|
|
--with-dri-driver-path=%{_libdir}/dri --without-dtrace --disable-devel-docs --disable-selective-werror
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# Build icons
|
|
|
|
|
pushd media
|
|
|
|
|
make
|
|
|
|
|
popd
|
|
|
|
|
|
2022-03-22 15:41:37 +08:00
|
|
|
# SElinux
|
|
|
|
|
pushd unix/vncserver/selinux
|
|
|
|
|
make
|
|
|
|
|
popd
|
|
|
|
|
|
2019-09-30 11:18:26 -04:00
|
|
|
# Build Java applet
|
|
|
|
|
pushd java
|
|
|
|
|
%{cmake} .
|
|
|
|
|
JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" make
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
rm -f %{buildroot}%{_docdir}/%{name}-%{version}/{README.rst,LICENCE.TXT}
|
|
|
|
|
|
|
|
|
|
pushd unix/xserver/hw/vnc
|
2022-03-22 15:41:37 +08:00
|
|
|
%make_install
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd unix/vncserver/selinux
|
2019-09-30 11:18:26 -04:00
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# Install systemd unit file
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
install -m644 %{SOURCE4} %{buildroot}%{_unitdir}/xvnc@.service
|
|
|
|
|
install -m644 %{SOURCE5} %{buildroot}%{_unitdir}/xvnc.socket
|
|
|
|
|
rm -rf %{buildroot}%{_initrddir}
|
|
|
|
|
|
|
|
|
|
# Install desktop stuff
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps
|
|
|
|
|
|
|
|
|
|
pushd media/icons
|
|
|
|
|
for s in 16 24 48; do
|
|
|
|
|
install -m644 tigervnc_$s.png %{buildroot}%{_datadir}/icons/hicolor/${s}x$s/apps/tigervnc.png
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
2022-04-16 11:19:11 +08:00
|
|
|
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/vncserver
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
# Install Java applet
|
|
|
|
|
pushd java
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/vnc/classes
|
|
|
|
|
install -m755 VncViewer.jar %{buildroot}%{_datadir}/vnc/classes
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%find_lang %{name} %{name}.lang
|
|
|
|
|
|
|
|
|
|
# remove unwanted files
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/xorg/modules/extensions/libvnc.la
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
|
|
|
|
|
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf
|
|
|
|
|
|
2022-03-22 15:41:37 +08:00
|
|
|
install -m 644 %{SOURCE6} %{buildroot}%{_docdir}/tigervnc/HOWTO.md
|
|
|
|
|
|
2022-06-11 14:57:06 +08:00
|
|
|
%check
|
|
|
|
|
pushd tests
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
./unit/conv
|
|
|
|
|
./unit/convertlf
|
|
|
|
|
./unit/hostport
|
|
|
|
|
./unit/pixelformat
|
|
|
|
|
popd
|
2022-03-22 15:41:37 +08:00
|
|
|
|
2019-09-30 11:18:26 -04:00
|
|
|
%files -f %{name}.lang
|
2019-12-26 14:59:26 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 11:18:26 -04:00
|
|
|
%doc README.rst
|
|
|
|
|
%{_bindir}/vncviewer
|
|
|
|
|
%{_datadir}/applications/*
|
2019-11-06 19:54:15 +08:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
2023-02-23 08:28:06 +00:00
|
|
|
%{_datadir}/metainfo/org.tigervnc.vncviewer.metainfo.xml
|
2019-11-06 19:54:15 +08:00
|
|
|
|
2019-09-30 11:18:26 -04:00
|
|
|
%files server
|
2019-12-26 14:59:26 +08:00
|
|
|
%defattr(-,root,root)
|
2022-03-22 15:41:37 +08:00
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/tigervnc
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-defaults
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver-config-mandatory
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/tigervnc/vncserver.users
|
2019-09-30 11:18:26 -04:00
|
|
|
%{_unitdir}/vncserver@.service
|
|
|
|
|
%{_unitdir}/xvnc@.service
|
|
|
|
|
%{_unitdir}/xvnc.socket
|
2022-03-22 15:41:37 +08:00
|
|
|
%{_bindir}/vncserver
|
|
|
|
|
%{_bindir}/x0vncserver
|
|
|
|
|
%{_sbindir}/vncsession
|
|
|
|
|
%{_libexecdir}/vncserver
|
|
|
|
|
%{_libexecdir}/vncsession-start
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%files server-minimal
|
2019-12-26 14:59:26 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 11:18:26 -04:00
|
|
|
%{_bindir}/vncconfig
|
|
|
|
|
%{_bindir}/vncpasswd
|
|
|
|
|
%{_bindir}/Xvnc
|
|
|
|
|
|
|
|
|
|
%files server-module
|
2019-12-26 14:59:26 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 11:18:26 -04:00
|
|
|
%config %{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf
|
2019-12-26 14:59:26 +08:00
|
|
|
%{_libdir}/xorg/modules/extensions/libvnc.so
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%files server-applet
|
2019-12-26 14:59:26 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 11:18:26 -04:00
|
|
|
%{_datadir}/vnc/classes/*
|
|
|
|
|
|
2022-03-22 15:41:37 +08:00
|
|
|
%files license
|
|
|
|
|
%{_docdir}/tigervnc/LICENCE.TXT
|
|
|
|
|
|
|
|
|
|
%files selinux
|
|
|
|
|
%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.*
|
|
|
|
|
%ghost %verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
|
|
|
|
|
|
2019-11-06 19:54:15 +08:00
|
|
|
%files help
|
2019-12-26 14:59:26 +08:00
|
|
|
%defattr(-,root,root)
|
2019-11-06 19:54:15 +08:00
|
|
|
%doc java/com/tigervnc/vncviewer/README
|
2022-03-22 15:41:37 +08:00
|
|
|
%{_docdir}/tigervnc/HOWTO.md
|
2019-12-26 14:59:26 +08:00
|
|
|
%{_mandir}/man1/*
|
2022-03-22 15:41:37 +08:00
|
|
|
%{_mandir}/man8/*
|
2019-09-30 11:18:26 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2023-02-23 08:28:06 +00:00
|
|
|
* Thu Feb 23 2023 zhouyihang <zhouyihang3@h-partners.com> - 1.13.0-1
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update tigervnc to 1.13.0
|
|
|
|
|
|
2022-06-11 14:57:06 +08:00
|
|
|
* Sat Jun 11 2022 gaihuiying <eaglegai@163.com> - 1.12.0-7
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: enable test
|
|
|
|
|
|
2022-04-14 12:59:26 +08:00
|
|
|
* Thu Apr 14 2022 ouyangminxiang <ouyangminxiang@kylinsec.com.cn> - 1.12.0-6
|
|
|
|
|
- Type:translation
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix some translation of start menu
|
|
|
|
|
|
2022-04-12 16:22:49 +08:00
|
|
|
* Tue Apr 12 2022 gaihuiying <eaglegai@163.com> - 1.12.0-5
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix vncserver unrecognized option rfbwait
|
|
|
|
|
|
2022-04-16 11:19:11 +08:00
|
|
|
* Tue Apr 12 2022 gaihuiying <eaglegai@163.com> - 1.12.0-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:change vncserver permission from 644 to 755
|
|
|
|
|
|
2022-04-01 11:26:24 +08:00
|
|
|
* Fri Apr 01 2022 yanglu <yanglu72@h-partners.com> - 1.12.0-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:tigervnc dose not provide tigervnc-license
|
|
|
|
|
|
2022-03-30 11:37:38 +08:00
|
|
|
* Wed Mar 30 2022 yanglu <yanglu72@h-partners.com> - 1.12.0-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Modify the installation dependency of tigervnc-server-module
|
|
|
|
|
|
2022-03-22 15:41:37 +08:00
|
|
|
* Wed Mar 23 2022 xinghe <xinghe2@h-partners.com> - 1.12.0-1
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update tigervnc to 1.12.0
|
|
|
|
|
|
2021-11-03 10:38:27 +08:00
|
|
|
* Wed Nov 3 2021 Li Jingwei <lijingwei@uniontech.com> - 1.10.1-6
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:correct provides version typo in spec file
|
|
|
|
|
|
2020-10-29 17:19:50 +08:00
|
|
|
* Thu Oct 29 2020 yanan <yanan@huawei.com> - 1.10.1-5
|
|
|
|
|
- Type:cves
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2020-26117
|
|
|
|
|
|
2020-09-07 16:39:33 +08:00
|
|
|
* Thu Sep 10 2020 lunankun <lunankun@huawei.com> - 1.10.1-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix source0 url
|
|
|
|
|
|
2020-07-30 16:10:25 +08:00
|
|
|
* Thu Jul 30 2020 gaihuiying <gaihuiying1@huawei.com> - 1.10.1-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix build fail with xorg server new version
|
|
|
|
|
|
2020-02-26 18:34:07 +08:00
|
|
|
* Wed Feb 26 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.10.1-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix misuse of systemd template service in post stage
|
|
|
|
|
|
2020-01-11 16:03:13 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.10.1-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update version to 1.10.1
|
|
|
|
|
|
2019-12-31 15:58:23 +08:00
|
|
|
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.0-7
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:optimization the spec
|
|
|
|
|
|
2019-12-26 14:59:26 +08:00
|
|
|
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.0-6
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add the provides
|
|
|
|
|
|
2019-12-03 18:22:39 +08:00
|
|
|
* Tue Oct 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.0-5
|
|
|
|
|
- fix missing arguments after systemd_postun
|
|
|
|
|
|
2019-09-30 11:18:26 -04:00
|
|
|
* Wed Jul 18 2018 openEuler Buildteam <buildteam@openeuler.org> - 1.9.0-4
|
|
|
|
|
- Package init
|