-Patch5: uv-fpic.patch
-URL: http://www.nodejs.org/
-BuildRequires: gcc >= 5:4.0
-BuildRequires: libstdc++-devel
-BuildRequires: python >= 1:2.5.2
-BuildRequires: python-jsmin
+Patch4: 0001-Disable-running-gyp-on-shared-deps.patch
+Patch5: 0002-Install-both-binaries-and-use-libdir.patch
+URL: https://nodejs.org/
+BuildRequires: c-ares-devel >= 1.17.2
+BuildRequires: gcc >= 6:6.3
+%if %{with http_parser}
+BuildRequires: http-parser-devel >= 2.9.3
+BuildRequires: llhttp-devel >= 2.1.3
+%endif
+%ifarch mips mipsel mips64 mips64el ppc %{arm}
+BuildRequires: libatomic-devel
+%endif
+%{?with_system_brotli:BuildRequires: libbrotli-devel >= 1.0.9}
+BuildRequires: libicu-devel >= 67
+BuildRequires: libstdc++-devel >= 6:4.8
+%{?with_system_uv:BuildRequires: libuv-devel >= 1.41.0}
+BuildRequires: nghttp2-devel >= 1.42.0
+BuildRequires: openssl-devel >= 1.0.1
+BuildRequires: pkgconfig
+BuildRequires: python3
+BuildRequires: python3-modules