-Patch1: %{name}-helpers.patch
-Patch2: %{name}-findruby.patch
-Patch3: %{name}-tests.patch
-Patch5: %{name}-findruby2.patch
-Patch6: %{name}-findpython.patch
-URL: http://www.cmake.org/
-%{?with_gui:BuildRequires: QtGui-devel}
-BuildRequires: libarchive-devel
-BuildRequires: libstdc++-devel
+Patch1: %{name}-libx32.patch
+Patch2: %{name}-jni.patch
+Patch3: %{name}-findruby.patch
+Patch4: %{name}-findruby2.patch
+Patch5: disable-completness-check.patch
+URL: https://cmake.org/
+# system zlib,bzip2,xz,zstd used only when without system libarchive
+%if %{with gui}
+BuildRequires: Qt5Core-devel >= 5.0
+BuildRequires: Qt5Gui-devel >= 5.0
+BuildRequires: Qt5Widgets-devel >= 5.0
+%endif
+BuildRequires: curl-devel
+BuildRequires: expat-devel
+BuildRequires: jsoncpp-devel >= 1.6.2-2
+BuildRequires: libarchive-devel >= 3.3.3
+BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: libuv-devel >= 1.28.0