public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] libnghttp2: New package.
Date: Mon, 02 Sep 2019 14:22:04 +0200	[thread overview]
Message-ID: <20190902122204.25700-1-stefan.schantl@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2069 bytes --]

This package is used to add HTTP/2 support to curl and various
other packages.

Signed-off-by: Stefan Schantl <stefan.schantl(a)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(a)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%{version}/
+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
-- 
2.20.1


                 reply	other threads:[~2019-09-02 12:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190902122204.25700-1-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox