[packages/curl] - bcond to enable HTTP/2.0 support (broken pkgconfig check atm.)

qboosh qboosh at pld-linux.org
Thu Oct 17 15:20:02 CEST 2013


commit 2ea4eb23115c09020751a89b76a1e0d37dc08df3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 17 15:19:19 2013 +0200

    - bcond to enable HTTP/2.0 support (broken pkgconfig check atm.)

 curl.spec | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/curl.spec b/curl.spec
index 4aa5620..4b25aa0 100644
--- 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}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/curl.git/commitdiff/2ea4eb23115c09020751a89b76a1e0d37dc08df3



More information about the pld-cvs-commit mailing list