nghttp2/nghttp2.spec

149 lines
4.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nghttp2
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 988491 from home:dirkmueller:Factory - update to 1.48.0: * lib: Allow server to override RFC 9218 stream priority * lib: Add a server option to fallback to RFC 7540 priorities * lib: Add PRIORITY_UPDATE frame support * lib: Implement RFC 9218 extensible prioritization scheme * lib: Do not verify host field specific characters for response field * lib: No rfc7540 priorities * lib: Fix stream stall when initial window size is decreased * doc: Document how to change stream prioritization scheme * build: Compile with libressl 3.5 * build: EXTRA_DIST: List mruby files explicitly * build: Bump ngtcp2 and nghttp3 * build: Do not check application libraries if --enable-lib-only is given * src: Update default TLS cipher suites * nghttpx, h2load: Better pack UDP packets in one GSO write * nghttpx, h2load: Quic error handling * nghttpx, h2load: Fix QUIC performance regression * nghttp, nghttpd, nghttpx: Add ktls support * h2load: Send more packets without GSO per event loop * h2load: Add ktls support * nghttpd: Fix TLS read stall * nghttpx: Disable RFC 7540 priorities * nghttpx: Client always uses simpler TLS handshake * nghttpx: Add affinity-cookie-stickiness backend parameter * nghttpx: Fix broken session affinity * nghttpx: Limit CONNECTION_CLOSE and Retry under server amplification limit * integration: Go update * integration: Add go.mod * third-party: Bump llhttp to 75b45129db961e1fb3c56044e1b8f7721bfaee5d * third-party: Bump libbpf to v0.8.0 OBS-URL: https://build.opensuse.org/request/show/988491 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=105
2022-07-12 17:53:22 +02:00
%global soname libnghttp2
%global sover 14
%global flavor @BUILD_FLAVOR@%{nil}
Name: nghttp2
Accepting request 1164552 from home:pgajdos - version update to 1.61.0 * Fixes CVE-2024-28182 [bsc#1221399] * nghttpx: Shutdown h3 stream read with trailer as well by @tatsuhiro-t in #2087 * Checkout with submodules by @jonaski in #2093 * Respect BUILD_STATIC_LIBS and add option for tests by @jonaski in #2092 * build(deps): bump golang.org/x/net from 0.21.0 to 0.22.0 by @dependabot in #2097 * Workaround llvm issue on github ubuntu runner by @tatsuhiro-t in #2098 * docker: Use copy --link by @tatsuhiro-t in #2099 * Nghttpx header idle timeout by @tatsuhiro-t in #2100 * nghttpx: Fix frontend-header-timeout does not work in config file by @tatsuhiro-t in #2101 * Rewrite hexdump by @tatsuhiro-t in #2102 * Switch to distroless/base-nossl by @tatsuhiro-t in #2103 * Bump ngtcp2 by @tatsuhiro-t in #2105 * nghttpx: Simplify quic connection close handling by @tatsuhiro-t in #2106 * build(deps): bump github.com/quic-go/quic-go from 0.41.0 to 0.42.0 by @dependabot in #2107 * autotools: Use tar-ustar automake option by @tatsuhiro-t in #2108 * Automate release process by @tatsuhiro-t in #2109 * autotools: Switch to tar-pax by @tatsuhiro-t in #2110 * nghttpx: Drop a UDP datagram from well-known port by @tatsuhiro-t in #2111 * nghttpx: Fix port byte order by @tatsuhiro-t in #2112 * h2load: Allow host header to be overridden by @tatsuhiro-t in #2113 * nghttpx: Rework QUIC stateless reset packet size by @tatsuhiro-t in #2114 * nghttpx: More QUIC prohibited ports by @tatsuhiro-t in #2115 * Add actions/stale by @tatsuhiro-t in #2116 * nghttpx: Discard UDP datagram that is too short to be a valid QUIC packet by @tatsuhiro-t in #2117 * nghttp: Support SSLKEYLOGFILE by @tatsuhiro-t in #2119 * No rfc7540 priority fix by @tatsuhiro-t in #2120 * Further reduce Stateless reset emission by @tatsuhiro-t in #2122 * nghttpx: Rework Connection ID construction by @tatsuhiro-t in #2124 * Nghttpx faster worker lookup by @tatsuhiro-t in #2125 OBS-URL: https://build.opensuse.org/request/show/1164552 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=123
2024-04-04 12:40:11 +02:00
Version: 1.61.0
Release: 0
Summary: Implementation of Hypertext Transfer Protocol version 2 in C
License: MIT
Group: Development/Libraries/C and C++
URL: https://nghttp2.org/
- add keyring for gpg validation - spec file cleanups For example, if GOAWAY frame has been received, a * https://nghttp2.org/blog/2023/05/10/nghttp2-v1-53-0/ checking leading and trailing white spaces against HTTP field value. * https://nghttp2.org/blog/2022/08/22/nghttp2-v1-49-0/ * third-party: Bump neverbleed based on the latest head (GH-1708) * see https://nghttp2.org/blog/2022/02/23/nghttp2-v1-47-0/ * see https://nghttp2.org/blog/2021/10/19/nghttp2-v1-46-0/ * nghttpx: Fix logging integer - Conditionally remove dependecy on jemalloc for SLE-12 if table size is changed from default * Add nghttp2_option_set_max_send_header_block_length API * Fix warning: declaration of 'free' shadows a global declaration * nghttpx: Add healthmon parameter to -f option to enable health * nghttpx: Add --api-max-request-body option to set maximum API * nghttpx: Add api parameter to --frontend option to mark API * h2load: Add content-length header field for HTTP/2 and SPDY as * Run error callback when peer does not send initial SETTINGS * nghttpx: Fix bug that server push from mruby script did not * nghttpx: Try next HTTP/1 backend address when connection * nghttpx: Retry next HTTP/2 backend address when connection * nghttpx: Enable link header field based push for non-final * nghttpx: Fix bug that logger wrote string which was not * nghttpx: Fix bug that backend tls keyword did not work with -s * lib: Add nghttp2_error_callback to tell application human * lib: Add nghttp2_http2_strerror() to return HTTP/2 error code * integration: Disable tests that sometimes break randomly on * h2load: Fix bug that initial max concurrent streams was too * nghttpx: Workaround for Ubuntu 15.04 which does not OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=116
2023-11-07 13:54:20 +01:00
Source0: https://github.com/nghttp2/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz
Source1: https://github.com/nghttp2/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz.asc
Source2: nghttp2.keyring
Source3: baselibs.conf
Patch1: gcc7.patch
BuildRequires: gcc-c++
BuildRequires: libboost_system-devel
BuildRequires: libboost_thread-devel
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(cunit)
BuildRequires: pkgconfig(jansson)
BuildRequires: pkgconfig(libcares)
BuildRequires: pkgconfig(libev)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(openssl) >= 1.1.1
BuildRequires: pkgconfig(zlib)
%ifnarch ppc %{arm}
BuildRequires: pkgconfig(jemalloc)
%endif
%description
This is an implementation of Hypertext Transfer Protocol version 2.
The framing layer of HTTP/2 is implemented as a form of reusable C library.
On top of that, we have implemented HTTP/2 client, server and proxy. We
have also developed load test and benchmarking tool for HTTP/2.
HPACK encoder and decoder are available as public API.
%package -n %{soname}-%{sover}
Summary: Shared library for nghttp2
Group: System/Libraries
%description -n %{soname}-%{sover}
Shared C libraries for implementation of Hypertext Transfer Protocol
version 2.
%package -n python3-nghttp2
Summary: Python3 bindings for nghttp2
Group: Development/Libraries/Python
%description -n python3-nghttp2
Python bindings for implementation of Hypertext Transfer Protocol version
2.
%package -n %{soname}-devel
Summary: Development files for nghttp2
Group: Development/Languages/C and C++
Requires: %{soname}-%{sover} = %{version}
Provides: %{name}-devel = %{version}
%description -n %{soname}-devel
Development files for usage with libnghttp2, which implements
Hypertext Transfer Protocol version 2.
%package doc
Summary: Documentation for nghttp2
Group: Documentation/HTML
%description doc
Documentation for nghttp2, which includes a shared C library,
HTTP/2 client, server and proxy.
%prep
%autosetup -p1 -n nghttp2-%{version}
%build
%configure \
--disable-static \
--disable-silent-rules \
--enable-app \
%{nil}
%make_build all
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
- add keyring for gpg validation - spec file cleanups For example, if GOAWAY frame has been received, a * https://nghttp2.org/blog/2023/05/10/nghttp2-v1-53-0/ checking leading and trailing white spaces against HTTP field value. * https://nghttp2.org/blog/2022/08/22/nghttp2-v1-49-0/ * third-party: Bump neverbleed based on the latest head (GH-1708) * see https://nghttp2.org/blog/2022/02/23/nghttp2-v1-47-0/ * see https://nghttp2.org/blog/2021/10/19/nghttp2-v1-46-0/ * nghttpx: Fix logging integer - Conditionally remove dependecy on jemalloc for SLE-12 if table size is changed from default * Add nghttp2_option_set_max_send_header_block_length API * Fix warning: declaration of 'free' shadows a global declaration * nghttpx: Add healthmon parameter to -f option to enable health * nghttpx: Add --api-max-request-body option to set maximum API * nghttpx: Add api parameter to --frontend option to mark API * h2load: Add content-length header field for HTTP/2 and SPDY as * Run error callback when peer does not send initial SETTINGS * nghttpx: Fix bug that server push from mruby script did not * nghttpx: Try next HTTP/1 backend address when connection * nghttpx: Retry next HTTP/2 backend address when connection * nghttpx: Enable link header field based push for non-final * nghttpx: Fix bug that logger wrote string which was not * nghttpx: Fix bug that backend tls keyword did not work with -s * lib: Add nghttp2_error_callback to tell application human * lib: Add nghttp2_http2_strerror() to return HTTP/2 error code * integration: Disable tests that sometimes break randomly on * h2load: Fix bug that initial max concurrent streams was too * nghttpx: Workaround for Ubuntu 15.04 which does not OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=116
2023-11-07 13:54:20 +01:00
# Do not ship this
rm -rf %{buildroot}%{_datadir}/doc/nghttp2
# None of applications using these man pages are built.
rm -rf %{buildroot}%{_mandir}/man1/* \
doc/manual/html/.buildinfo
# https://build.opensuse.org/request/show/1212476
%if %{suse_version} >= 1600
%python3_fix_shebang_path %{buildroot}%{_datadir}/%{name}/fetch-ocsp-response
%endif
%check
- add keyring for gpg validation - spec file cleanups For example, if GOAWAY frame has been received, a * https://nghttp2.org/blog/2023/05/10/nghttp2-v1-53-0/ checking leading and trailing white spaces against HTTP field value. * https://nghttp2.org/blog/2022/08/22/nghttp2-v1-49-0/ * third-party: Bump neverbleed based on the latest head (GH-1708) * see https://nghttp2.org/blog/2022/02/23/nghttp2-v1-47-0/ * see https://nghttp2.org/blog/2021/10/19/nghttp2-v1-46-0/ * nghttpx: Fix logging integer - Conditionally remove dependecy on jemalloc for SLE-12 if table size is changed from default * Add nghttp2_option_set_max_send_header_block_length API * Fix warning: declaration of 'free' shadows a global declaration * nghttpx: Add healthmon parameter to -f option to enable health * nghttpx: Add --api-max-request-body option to set maximum API * nghttpx: Add api parameter to --frontend option to mark API * h2load: Add content-length header field for HTTP/2 and SPDY as * Run error callback when peer does not send initial SETTINGS * nghttpx: Fix bug that server push from mruby script did not * nghttpx: Try next HTTP/1 backend address when connection * nghttpx: Retry next HTTP/2 backend address when connection * nghttpx: Enable link header field based push for non-final * nghttpx: Fix bug that logger wrote string which was not * nghttpx: Fix bug that backend tls keyword did not work with -s * lib: Add nghttp2_error_callback to tell application human * lib: Add nghttp2_http2_strerror() to return HTTP/2 error code * integration: Disable tests that sometimes break randomly on * h2load: Fix bug that initial max concurrent streams was too * nghttpx: Workaround for Ubuntu 15.04 which does not OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=116
2023-11-07 13:54:20 +01:00
%make_build check
%ldconfig_scriptlets -n %{soname}-%{sover}
%files
%{_bindir}/deflatehd
%{_bindir}/inflatehd
%{_bindir}/h2load
%{_bindir}/nghttp
%{_bindir}/nghttpd
%{_bindir}/nghttpx
%{_datadir}/%{name}/
%files -n %{soname}-%{sover}
%license COPYING
%{_libdir}/%{soname}.so.%{sover}*
%files -n %{soname}-devel
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/%{name}*.h
%{_libdir}/%{soname}.so
%{_libdir}/pkgconfig/%{soname}.pc
%changelog