diff --git a/curl.spec b/curl.spec index dbe0b3a..0827c55 100644 --- a/curl.spec +++ b/curl.spec @@ -22,6 +22,10 @@ # GnuTLS, btw, is also capable of GOST. %bcond_without gnutls +# To build rpm with new python: +# nghttp2-devel requires boost-devel which depends on old python +%bcond_without http2 + # Important! We perform autoreconf, then change resulting 'configure' # script, this prevents if from regenerating after we have changed it. %define _disable_rebuild_configure 1 @@ -50,7 +54,7 @@ Summary: Gets a file from a FTP, GOPHER or HTTP server Name: curl Version: 7.86.0 -Release: 1 +Release: 2 Epoch: 1 License: BSD-like Group: Networking/Other @@ -69,7 +73,9 @@ BuildRequires: pkgconfig(libcares) BuildRequires: pkgconfig(com_err) #BuildRequires: pkgconfig(libidn) BuildRequires: pkgconfig(libidn2) +%if %{with http2} BuildRequires: pkgconfig(libnghttp2) +%endif %if 0%{?ssh2} BuildRequires: pkgconfig(libssh2) %else @@ -381,7 +387,9 @@ sed -i configure \ --with-zlib \ --with-lber-lib=lber \ --with-libidn2 \ +%if %{with http2} --with-nghttp2 \ +%endif %if 0%{?ssh2} --with-ssh2 \ %else