From 79761f1333a59de08e70d4649a1ba26dd919e48b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Wed, 12 Feb 2020 22:13:49 +0000 Subject: [PATCH] Fix build on 32bits arches and on epel 7 --- libvncserver.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libvncserver.spec b/libvncserver.spec index c0e6832..b967d89 100644 --- a/libvncserver.spec +++ b/libvncserver.spec @@ -21,7 +21,8 @@ Patch102: LibVNCServer-0.9.10-system-crypto-policy.patch Patch106: CVE-2018-15127.patch Patch107: CVE-2019-15681.patch -BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: cmake3 BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(libsystemd) @@ -83,7 +84,9 @@ developing applications that use %{name}. %prep %setup -q -n %{name}-LibVNCServer-%{version} +%if "%{_libdir}" == "/usr/lib64" %patch1 -p1 +%endif %patch10 -p1 %patch11 -p1 @@ -106,7 +109,7 @@ done %build mkdir -p %{_target_platform} pushd %{_target_platform} -%cmake .. +%cmake3 .. popd %make_build -C %{_target_platform}