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}