[packages/nghttp2] - http3 is buildable now; added neverbleed bcond

qboosh qboosh at pld-linux.org
Thu Nov 12 21:36:54 CET 2026


commit 4f8bf19f9ab2f9cd13672a035fbabdc0a04f9b1f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Nov 12 21:36:48 2026 +0100

    - http3 is buildable now; added neverbleed bcond

 nghttp2.spec | 36 +++++++++++++++++++++++++-----------
 1 file changed, 25 insertions(+), 11 deletions(-)
---
diff --git a/nghttp2.spec b/nghttp2.spec
index 7135623..51d7c2e 100644
--- a/nghttp2.spec
+++ b/nghttp2.spec
@@ -1,13 +1,14 @@
-# TODO: mruby, neverbleed for nghttpx?
+# TODO: mruby for nghttpx?
 #
 # Conditional build:
 %bcond_without	tools		# applications (nghttp, nghttpd, nghttpx, h2load) and hpack-tools (deflatehd, inflatehd)
 %bcond_with	brotli		# brotli support in apps
 %bcond_with	http3		# HTTP/3 support in apps (h2load, nghttpx)
 %bcond_with	libbpf		# BPF support in nghttpx (requires CC=clang)
+%bcond_with	neverbleed	# neverbleed separation in nghttpx
 %bcond_without	static_libs	# static libraries
 %bcond_without	systemd		# systemd support in nghttpx
-%bcond_without	tests		# "make check" call
+%bcond_without	tests		# unit tests
 
 Summary:	HTTP/2.0 C library
 Summary(pl.UTF-8):	Biblioteka C HTTP/2.0
@@ -39,20 +40,32 @@ BuildRequires:	libev-devel
 BuildRequires:	libevent-devel >= 2.0.8
 BuildRequires:	libstdc++-devel >= 6:14
 BuildRequires:	libxml2-devel >= 1:2.6.26
-%{?with_http3:BuildRequires:	nghttp3-devel >= 1.17.0}
-%{?with_http3:BuildRequires:	ngtcp2-devel >= 1.23.0}
-#%{?with_http3:BuildRequires:	ngtcp2-crypto-quictls >= 1.23.0  or  ngtcp2-crypto-boringssl}
 BuildRequires:	openssl-devel >= 1.1.1
-%{?with_http3:BuildRequires:	openssl-devel(quic)}
+%{?with_http3:BuildRequires:	openssl-devel >= 3.5.0}
 %{?with_systemd:BuildRequires:	systemd-devel >= 1:209}
 BuildRequires:	zlib-devel >= 1.2.3
+%if %{with http3}
+BuildRequires:	nghttp3-devel >= 1.17.0
+BuildRequires:	ngtcp2-devel >= 1.23.0
+# alternatively:
+# boringssl + ngtcp2-crypto-boringssl-devel
+# libressl (SSL_provide_quic_data) + ngtcp2-crypto-libressl-devel >= 1.23.0
+# quictls (SSL_provide_quic_data) + ngtcp2-crypto-quictls-devel >= 1.23.0
+# wolfssl-devel >= 5.7.0 + ngtcp2-crypto-wolfssl-devel >= 1.23.0
+BuildRequires:	ngtcp2-crypto-openssl-devel >= 1.23.0
+# SSL_set_quic_tls_cbs (openssl >= 3.5?) or SSL_provide_quic_data (quictls/patched openssl)
+BuildRequires:	openssl-devel >= 3.5.0
+%endif
+%endif
+%if %{with tests}
+BuildRequires:	libstdc++-devel >= 6:15
 %endif
 Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
 Requires:	c-ares%{?_isa} >= 1.16.0
 Requires:	jansson%{?_isa} >= 2.5
 %{?with_brotli:Requires:	libbrotli%{?_isa} >= 1.0.9}
 # noinst examples only
-#Requires:	libevent >= 2.0.8
+#Requires:	libevent%{?_isa} >= 2.0.8
 Requires:	libxml2%{?_isa} >= 1:2.6.26
 Requires:	openssl%{?_isa} >= 1.1.1
 Requires:	zlib%{?_isa} >= 1.2.3
@@ -124,8 +137,9 @@ Statyczna biblioteka libnghttp2.
 	%{?with_libbpf:--with-libbpf} \
 %if %{with brotli}
 	--with-libbrotlidec \
-	--with-libbrotlienc
+	--with-libbrotlienc \
 %endif
+	%{?with_neverbleed:--with-neverbleed}
 
 %{__make}
 
@@ -172,12 +186,12 @@ rm -rf $RPM_BUILD_ROOT
 %files libs
 %defattr(644,root,root,755)
 %doc AUTHORS COPYING ChangeLog README.rst
-%attr(755,root,root) %{_libdir}/libnghttp2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libnghttp2.so.14
+%{_libdir}/libnghttp2.so.*.*.*
+%ghost %{_libdir}/libnghttp2.so.14
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libnghttp2.so
+%{_libdir}/libnghttp2.so
 %dir %{_includedir}/nghttp2
 %{_includedir}/nghttp2/nghttp2*.h
 %{_pkgconfigdir}/libnghttp2.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nghttp2.git/commitdiff/4f8bf19f9ab2f9cd13672a035fbabdc0a04f9b1f



More information about the pld-cvs-commit mailing list