This package is used to add HTTP/2 support to curl and various other packages.
Signed-off-by: Stefan Schantl stefan.schantl@ipfire.org --- libnghttp2/libnghttp2.nm | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 libnghttp2/libnghttp2.nm
diff --git a/libnghttp2/libnghttp2.nm b/libnghttp2/libnghttp2.nm new file mode 100644 index 000000000..52e86c85b --- /dev/null +++ b/libnghttp2/libnghttp2.nm @@ -0,0 +1,64 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team info@ipfire.org # +############################################################################### + +name = libnghttp2 +version = 1.39.2 +release = 1 + +groups = System/Libraries +url = https://nghttp2.org/ +license = MIT +summary = A library implementing the HTTP/2 protocol + +description + libnghttp2 is a library implementing the Hypertext Transfer Protocol + version 2 (HTTP/2) protocol in C. +end + +source_dl = https://github.com/nghttp2/nghttp2/releases/download/v%%7Bversion%7D/ +sources = nghttp2-%{version}.tar.xz + +build + requires + zlib-devel + end + + DIR_APP = %{DIR_SRC}/nghttp2-%{version} + + configure_options +=\ + --disable-hpack-tools \ + --disable-python-bindings \ + --disable-static \ + --without-libxml2 \ + --without-spdylay \ + --disable-app + + test + make check + end + + install_cmds + # Remove man-pages for the non-build apps. + rm -rvf %{BUILDROOT}%{mandir}/man1 + + # Remove documentation. + rm -rvf %{BUILDROOT}%{datadir}/doc + + # Remove unused fetch-ocsp-response python script. + rm -rvf %{BUILDROOT}%{datadir}/nghttp2/fetch-ocsp-response + end +end + +packages + package %{name} + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end