SHA256
1
0
forked from pool/nghttp2

Accepting request 317162 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/317162
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nghttp2?expand=0&rev=15
This commit is contained in:
Stephan Kulow 2015-07-19 09:45:41 +00:00 committed by Git OBS Bridge
commit e55664d956
6 changed files with 94 additions and 6 deletions

View File

@ -0,0 +1,21 @@
From c470ac7b0021d3cae80ef1c5b6460a108f2e5bdb Mon Sep 17 00:00:00 2001
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Thu, 16 Jul 2015 14:01:18 +0900
Subject: [PATCH] asio: Fix missing nghttp2_timegm
---
src/Makefile.am | 1 +
1 file changed, 1 insertion(+)
Index: nghttp2-1.1.1/src/Makefile.am
===================================================================
--- nghttp2-1.1.1.orig/src/Makefile.am
+++ nghttp2-1.1.1/src/Makefile.am
@@ -176,6 +176,7 @@ lib_LTLIBRARIES = libnghttp2_asio.la
libnghttp2_asio_la_SOURCES = \
util.cc util.h http2.cc http2.h \
ssl.cc ssl.h \
+ timegm.c timegm.h \
asio_common.cc asio_common.h \
asio_io_service_pool.cc asio_io_service_pool.h \
asio_server_http2.cc \

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8515822015016008ac536de92a7e3652c7dd4f67315ee415f26a30a505f8c821
size 910360

3
nghttp2-1.1.1.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d36ba13066f4e0594c741a6448547f0b492e31043e0149bd39d2503854d6411c
size 918464

View File

@ -0,0 +1,21 @@
Index: nghttp2-1.1.1/python/Makefile.am
===================================================================
--- nghttp2-1.1.1.orig/python/Makefile.am
+++ nghttp2-1.1.1/python/Makefile.am
@@ -29,16 +29,6 @@ EXTRA_DIST = cnghttp2.pxd nghttp2.pyx
if ENABLE_PYTHON_BINDINGS
-all-local: nghttp2.c
- $(PYTHON) setup.py build
-
-install-exec-local:
- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
-
-uninstall-local:
- rm -f $(DESTDIR)$(libdir)/python*/site-packages/nghttp2.so
- rm -f $(DESTDIR)$(libdir)/python*/site-packages/python_nghttp2-*.egg-info
-
clean-local:
$(PYTHON) setup.py clean --all
-rm -f $(builddir)/nghttp2.c

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Thu Jul 16 06:58:40 UTC 2015 - mpluskal@suse.com
- Update to 1.1.1
* nghttpx: Fix various stability issues and memory leak bug
- Changes for 1.1.0
* Fix DATA is not consumed if nghttp2_http_on_data_chunk failed
* nghttp2_submit_response and nghttp2_submit_headers may return
* NGHTTP2_ERR_DATA_EXIST
* msvc build fixes and enchantments (Patch from Gabi Davar)
* Compile with IRIX gcc-4.7 (Patch from Klaus Ziegler)
* nghttp: Add --max-concurrent-streams option
* nghttp: Add comment on HAR on pushed objects (Patch from
acesso)
* nghttpx: Add --include option to read additional configuration
from given file
* nghttpx: Add backend routing based on request host and path by
extending -b option
* nghttpx: Allow log variable to be enclosed by curly braces for
disambiguation
* nghttpx: Add log variables related to SSL/TLS connection
* h2load: Add --ciphers option
- Add patches
* missing_nghttp2_timegm.patch to fix building of asio library
* nghttp2-remove-python-build.patch to fix python bindings
installation when autotools are used
-------------------------------------------------------------------
Tue Jun 30 11:54:06 UTC 2015 - mpluskal@suse.com

View File

@ -19,7 +19,7 @@
%define lib_name lib%{name}-14
%define lib_name_asio lib%{name}_asio1
Name: nghttp2
Version: 1.0.5
Version: 1.1.1
Release: 0
Summary: Implementation of Hypertext Transfer Protocol version 2 in C
License: MIT
@ -27,11 +27,18 @@ Group: Development/Libraries/C and C++
Url: https://nghttp2.org/
#Git-Clone: git://github.com/tatsuhiro-t/nghttp2
Source: https://github.com/tatsuhiro-t/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
# fix for building of asio library from upstream (c470ac7b0021d3cae80ef1c5b6460a108f2e5bdb)
Patch0: missing_nghttp2_timegm.patch
Patch1: nghttp2-remove-python-build.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: python-Cython
BuildRequires: python-Sphinx
BuildRequires: python-setuptools
BuildRequires: pkgconfig(cunit)
BuildRequires: pkgconfig(jansson)
BuildRequires: pkgconfig(libevent)
@ -100,19 +107,30 @@ server and proxy.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
autoreconf -fiv
%configure \
--disable-silent-rules \
--enable-asio-lib \
--enable-python-bindings \
--disable-static
make %{?_smp_mflags} all html V=1
make %{?_smp_mflags} all html
pushd python
make nghttp2.c
python setup.py build
popd
%check
make %{?_smp_mflags} check
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
pushd python
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
popd
find %{buildroot} -type f -name "*.la" -delete -print
# none of applications using these man pages is built
rm -rf %{buildroot}%{_mandir}/man1/*
@ -144,7 +162,8 @@ rm -rf doc/manual/html/.buildinfo
%files -n python-%{name}
%defattr(-,root,root)
%{python_sitearch}/*
%{python_sitearch}/nghttp2.so
%{python_sitearch}/python_nghttp2-%{version}-py%{py_ver}.egg-info
%files -n lib%{name}-devel
%defattr(-,root,root)