]> git.pld-linux.org Git - packages/curl.git/commitdiff
- bcond to enable HTTP/2.0 support (broken pkgconfig check atm.)
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 17 Oct 2013 13:19:19 +0000 (15:19 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 17 Oct 2013 13:19:19 +0000 (15:19 +0200)
curl.spec

index 4aa562046d5aadab26c199021ce8ce7347d1e696..4b25aa08ddfcde656cbb39b73b4188a5ceb5236f 100644 (file)
--- a/curl.spec
+++ b/curl.spec
@@ -4,6 +4,7 @@
 %bcond_without ssl             # without SSL support
 %bcond_without kerberos5       # without Heimdal Kerberos 5 support
 %bcond_without ldap            # without LDAP support
+%bcond_with    http2           # without HTTP/2.0 support (nghttp2 based)
 %bcond_without metalink        # without metalink support
 %if "%{pld_release}" != "ac"
 %bcond_without ares            # with c-ares (asynchronous DNS operations) library
@@ -37,6 +38,7 @@ BuildRequires:        autoconf >= 2.57
 BuildRequires: automake
 %{?with_ares:BuildRequires:    c-ares-devel >= 1.7.0}
 %{?with_kerberos5:BuildRequires:       heimdal-devel}
+%{?with_http2:BuildRequires:   nghttp2-devel}
 BuildRequires: libidn-devel >= 0.4.1
 %{?with_metalink:BuildRequires:        libmetalink-devel}
 %{?with_rtmp:BuildRequires:    librtmp-devel}
@@ -216,11 +218,12 @@ Bibliotecas estáticas para desenvolvimento com o curl.
 %endif
 %endif
        %{?with_kerberos5:--with-gssapi=%{_prefix}} \
-       %{?with_rtmp:--with-librtmp} \
        %{?with_metalink:--with-libmetalink} \
+       %{?with_rtmp:--with-librtmp} \
+       %{?with_http2:--with-nghttp2} \
        %{?with_ares:--enable-ares} \
-       %{!?with_ldap:--disable-ldap}%{?with_ldap:--enable-ldaps} \
-       --enable-ipv6
+       --enable-ipv6 \
+       %{!?with_ldap:--disable-ldap}%{?with_ldap:--enable-ldaps}
 
 %{__make}
 
This page took 0.120585 seconds and 4 git commands to generate.