| |
@@ -1,15 +1,18 @@
|
| |
Summary: Library to make writing a VNC server easy
|
| |
Name: libvncserver
|
| |
- Version: 0.9.11
|
| |
- Release: 11%{?dist}
|
| |
+ Version: 0.9.12
|
| |
+ Release: 1%{?dist}
|
| |
|
| |
# NOTE: --with-filetransfer => GPLv2
|
| |
License: GPLv2+
|
| |
URL: http://libvnc.github.io/
|
| |
Source0: https://github.com/LibVNC/libvncserver/archive/LibVNCServer-%{version}.tar.gz
|
| |
|
| |
- ## upstream patches
|
| |
- Patch4: 0040-Ensure-compatibility-with-gtk-vnc-0.7.0.patch
|
| |
+ Patch1: 3348a7e42e86dfb98dd7458ad29def476cf6096f.patch
|
| |
+ Patch2: 36a71279ed5b10effecd879caf6c3791842ca713.patch
|
| |
+ Patch3: d0a76539835d11c0f4723499f8be4bc9c7724eb9.patch
|
| |
+ Patch4: 15c4f144a3783d9f1f2c976acf9f4d85988fd466.patch
|
| |
+
|
| |
|
| |
## TLS security type enablement patches
|
| |
# https://github.com/LibVNC/libvncserver/pull/234
|
| |
@@ -17,26 +20,36 @@
|
| |
Patch11: 0002-libvncserver-Add-channel-security-handlers.patch
|
| |
|
| |
## downstream patches
|
| |
- Patch100: libvncserver-0.9.11-system_minilzo.patch
|
| |
- Patch101: libvncserver-0.9.1-multilib.patch
|
| |
Patch102: LibVNCServer-0.9.10-system-crypto-policy.patch
|
| |
- # revert soname bump
|
| |
- Patch103: libvncserver-0.9.11-soname.patch
|
| |
- # 1/2 Fix CVE-2018-7225, bug #1546860
|
| |
- Patch104: libvncserver-0.9.11-Validate-client-cut-text-length.patch
|
| |
- # 2/2 Fix CVE-2018-7225, bug #1546860
|
| |
- Patch105: libvncserver-0.9.11-Limit-client-cut-text-length-to-1-MB.patch
|
| |
-
|
| |
- BuildRequires: autoconf
|
| |
- BuildRequires: automake
|
| |
+
|
| |
+ Patch106: CVE-2018-15127.patch
|
| |
+ Patch107: CVE-2019-15681.patch
|
| |
+
|
| |
+ BuildRequires: gcc-c++
|
| |
+ BuildRequires: cmake3
|
| |
+ BuildRequires: pkgconfig(gnutls)
|
| |
+ BuildRequires: pkgconfig(sdl2)
|
| |
+ BuildRequires: pkgconfig(libsystemd)
|
| |
+ BuildRequires: pkgconfig(x11)
|
| |
+ BuildRequires: pkgconfig(xdamage)
|
| |
+ BuildRequires: pkgconfig(xext)
|
| |
+ BuildRequires: pkgconfig(xrandr)
|
| |
+ BuildRequires: pkgconfig(xtst)
|
| |
+ BuildRequires: pkgconfig(xinerama)
|
| |
+ BuildRequires: pkgconfig(xfixes)
|
| |
+ BuildRequires: pkgconfig(openssl)
|
| |
+ BuildRequires: pkgconfig(zlib)
|
| |
+ BuildRequires: pkgconfig(libjpeg)
|
| |
+ BuildRequires: pkgconfig(libpng)
|
| |
+ #BuildRequires: pkgconfig(lzo2)
|
| |
+ #BuildRequires: ffmpeg-devel
|
| |
+ BuildRequires: gettext-devel
|
| |
BuildRequires: libgcrypt-devel
|
| |
- BuildRequires: libjpeg-devel
|
| |
- BuildRequires: libtool
|
| |
+
|
| |
+
|
| |
BuildRequires: lzo-devel
|
| |
BuildRequires: lzo-minilzo
|
| |
- BuildRequires: pkgconfig(gnutls)
|
| |
BuildRequires: pkgconfig(libcrypto)
|
| |
- BuildRequires: pkgconfig(libpng)
|
| |
BuildRequires: pkgconfig(libssl)
|
| |
# Additional deps for --with-x11vnc, see https://bugzilla.redhat.com/show_bug.cgi?id=864947
|
| |
BuildRequires: pkgconfig(avahi-client)
|
| |
@@ -75,25 +88,20 @@
|
| |
%prep
|
| |
%setup -q -n %{name}-LibVNCServer-%{version}
|
| |
|
| |
- %patch4 -p1 -b .0004
|
| |
+ %patch1 -p1
|
| |
+ %patch2 -p1
|
| |
+ %patch3 -p1
|
| |
+ %patch4 -p1
|
| |
|
| |
%patch10 -p1
|
| |
%patch11 -p1
|
| |
|
| |
- %patch100 -p1 -b .system_minilzo
|
| |
# Nuke bundled minilzo
|
| |
- #rm -fv common/lzodefs.h common/lzoconf.h commmon/minilzo.h common/minilzo.c
|
| |
+ rm -fv common/lzodefs.h common/lzoconf.h commmon/minilzo.h common/minilzo.c
|
| |
|
| |
- %patch101 -p1 -b .multilib
|
| |
%patch102 -p1
|
| |
- %if 0%{?fedora} < 26
|
| |
- %patch103 -p1 -b .soname
|
| |
- %global soname 0
|
| |
- %else
|
| |
- %global soname 1
|
| |
- %endif
|
| |
- %patch104 -p1
|
| |
- %patch105 -p1
|
| |
+ %patch106 -p1
|
| |
+ %patch107 -p1
|
| |
|
| |
# Fix encoding
|
| |
for file in ChangeLog ; do
|
| |
@@ -102,48 +110,27 @@
|
| |
touch --reference ${file}.OLD $file
|
| |
done
|
| |
|
| |
- # Needed by patch 1 (and to nuke rpath's)
|
| |
- autoreconf -vif
|
| |
-
|
| |
|
| |
%build
|
| |
- %configure \
|
| |
- --disable-silent-rules \
|
| |
- --disable-static \
|
| |
- --without-filetransfer \
|
| |
- --with-gcrypt \
|
| |
- --with-png \
|
| |
- --with-x11vnc
|
| |
-
|
| |
- # Hack to omit unused-direct-shlib-dependencies
|
| |
- sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
| |
-
|
| |
- make %{?_smp_mflags}
|
| |
-
|
| |
+ mkdir -p %{_target_platform}
|
| |
+ pushd %{_target_platform}
|
| |
+ %cmake3 ..
|
| |
+ popd
|
| |
+ %make_build -C %{_target_platform}
|
| |
|
| |
%install
|
| |
- %make_install
|
| |
-
|
| |
- # Unpackaged files
|
| |
- rm -fv %{buildroot}%{_bindir}/linuxvnc
|
| |
- rm -fv %{buildroot}%{_libdir}/lib*.a
|
| |
- rm -fv %{buildroot}%{_libdir}/lib*.la
|
| |
-
|
| |
-
|
| |
- %check
|
| |
- make -C test test ||:
|
| |
-
|
| |
+ %make_install -C %{_target_platform}
|
| |
|
| |
%ldconfig_scriptlets
|
| |
|
| |
%files
|
| |
%license COPYING
|
| |
- %doc AUTHORS ChangeLog NEWS README TODO
|
| |
- %{_libdir}/libvncclient.so.%{soname}*
|
| |
- %{_libdir}/libvncserver.so.%{soname}*
|
| |
+ %doc AUTHORS ChangeLog NEWS README.md TODO
|
| |
+ %{_libdir}/libvncclient.so.*
|
| |
+ %{_libdir}/libvncserver.so.*
|
| |
|
| |
%files devel
|
| |
- %{_bindir}/libvncserver-config
|
| |
+ #{_bindir}/libvncserver-config
|
| |
%{_includedir}/rfb/
|
| |
%{_libdir}/libvncclient.so
|
| |
%{_libdir}/libvncserver.so
|
| |
@@ -152,6 +139,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Tue Feb 11 2020 Sérgio Basto <sergio@serjux.com> - 0.9.12-1
|
| |
+ - Update to 0.9.12
|
| |
+
|
| |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-11
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
| |
|
| |