mirror of
https://abf.rosa.ru/djam/curl.git
synced 2025-02-23 15:52:59 +00:00
Use bcond for http2 support
This commit is contained in:
parent
57e5d25017
commit
3164cb8cc7
1 changed files with 9 additions and 1 deletions
10
curl.spec
10
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
|
||||
|
|
Loading…
Add table
Reference in a new issue