SHA256
1
0
forked from pool/nghttp2

Accepting request 294506 from home:pluskalm:branches:devel:libraries:c_c++

- Enable python bindings
- Update to 0.7.9

OBS-URL: https://build.opensuse.org/request/show/294506
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=9
This commit is contained in:
Martin Pluskal 2015-04-04 17:11:33 +00:00 committed by Git OBS Bridge
parent 3ac3b5cea5
commit 40012cdf9f
4 changed files with 56 additions and 18 deletions

View File

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

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

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

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Sat Apr 4 16:55:55 UTC 2015 - mpluskal@suse.com
- Enable python bindings
- Update to 0.7.9
* Implements h2-14 protocol (http://tools.ietf.org/html/draft-ietf-httpbis-http2-14)
* Implements HPACK 09 (http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-09)
* h2load: Fix crash if -t > -c
* h2load: Add -d option to upload data to server
* nghttpx: Forward only "trailers" keyword in te when forwarding HTTP/2 backend
* nghttpx: Fix PUSH_PROMISE header field corruption [GH-194]
* nghttpx: Fix te header field is duplicated when forwarding HTTP/2 backend
* nghttp, nghttpd: Add --hexdump option to hexdump incoming traffic.
* examples: Place AM_CPPFLAGS first to use in-package header files first [GH-192]
- Changes for 0.7.8
* Implements h2-14 protocol (http://tools.ietf.org/html/draft-ietf-httpbis-http2-14)
* Implements HPACK 09 (http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-09)
* Validate :path header field for http or https URI scheme
* NULL-terminate header field name and value presented by callback
* README.rst: Cleaned up the grammar a bit (Patch from Ross Smith II)
* h2load: fix for segfault by reserving correct worker count (Patch from Stefan Eissing)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 18 21:29:49 UTC 2015 - jengelh@inai.de Wed Mar 18 21:29:49 UTC 2015 - jengelh@inai.de

View File

@ -16,19 +16,21 @@
# #
%define lib_name lib%{name}-5
%define lib_name_asio lib%{name}_asio1
Name: nghttp2 Name: nghttp2
Version: 0.7.5 Version: 0.7.9
Release: 0 Release: 0
Summary: Implementation of Hypertext Transfer Protocol version 2 in C Summary: Implementation of Hypertext Transfer Protocol version 2 in C
License: MIT License: MIT
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: https://nghttp2.org/ Url: https://nghttp2.org/
#Git-Clone: git://github.com/tatsuhiro-t/nghttp2 #Git-Clone: git://github.com/tatsuhiro-t/nghttp2
Source: https://github.com/tatsuhiro-t/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz Source: https://github.com/tatsuhiro-t/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires: boost-devel BuildRequires: boost-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: python-Cython
BuildRequires: python-Sphinx BuildRequires: python-Sphinx
BuildRequires: pkgconfig(cunit) BuildRequires: pkgconfig(cunit)
BuildRequires: pkgconfig(jansson) BuildRequires: pkgconfig(jansson)
@ -48,24 +50,31 @@ We have also developed load test and benchmarking tool for HTTP/2 and SPDY.
HPACK encoder and decoder are available as public API. HPACK encoder and decoder are available as public API.
%package -n lib%{name}-5 %package -n %{lib_name}
Summary: Shared library for %{name} Summary: Shared library for %{name}
Group: System/Libraries Group: System/Libraries
%description -n lib%{name}-5 %description -n %{lib_name}
Shared C libraries for implementation of Hypertext Transfer Protocol version 2 Shared C libraries for implementation of Hypertext Transfer Protocol version 2
%package -n lib%{name}_asio0 %package -n %{lib_name_asio}
Summary: Shared library for %{name} Summary: Shared library for %{name}
Group: System/Libraries Group: System/Libraries
%description -n lib%{name}_asio0 %description -n %{lib_name_asio}
Shared librarios for asynchronous implementation of Hypertext Transfer Protocol version 2 Shared librarios for asynchronous implementation of Hypertext Transfer Protocol version 2
%package -n python-%{name}
Summary: Python bindings for %{name}
Group: Development/Libraries/Python
%description -n python-%{name}
Python bindings for implementation of Hypertext Transfer Protocol version 2
%package -n lib%{name}-devel %package -n lib%{name}-devel
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: lib%{name}-5 = %{version} Requires: %{lib_name} = %{version}
Provides: %{name}-devel Provides: %{name}-devel
%description -n lib%{name}-devel %description -n lib%{name}-devel
@ -75,7 +84,7 @@ Transfer Protocol version 2.
%package -n lib%{name}_asio-devel %package -n lib%{name}_asio-devel
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
Requires: lib%{name}_asio0 = %{version} Requires: %{lib_name_asio} = %{version}
%description -n lib%{name}_asio-devel %description -n lib%{name}_asio-devel
Development files for usage with lib%{name}_aio, which implements asynchronous Development files for usage with lib%{name}_aio, which implements asynchronous
@ -95,6 +104,7 @@ server and proxy.
%build %build
%configure \ %configure \
--enable-asio-lib \ --enable-asio-lib \
--enable-python-bindings \
--disable-static --disable-static
make %{?_smp_mflags} all html make %{?_smp_mflags} all html
@ -103,34 +113,38 @@ make %{?_smp_mflags} check
%install %install
make DESTDIR=%{buildroot} install %{?_smp_mflags} make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f "%{buildroot}/%{_libdir}"/*.la find %{buildroot} -type f -name "*.la" -delete -print
# none of applications using these man pages is built # none of applications using these man pages is built
rm -rf %{buildroot}%{_mandir}/man1/* rm -rf %{buildroot}%{_mandir}/man1/*
rm -rf doc/manual/html/.buildinfo rm -rf doc/manual/html/.buildinfo
%post -n lib%{name}-5 -p /sbin/ldconfig %post -n %{lib_name} -p /sbin/ldconfig
%post -n lib%{name}_asio0 -p /sbin/ldconfig %post -n %{lib_name_asio} -p /sbin/ldconfig
%postun -n lib%{name}-5 -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig
%postun -n lib%{name}_asio0 -p /sbin/ldconfig %postun -n %{lib_name_asio} -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/deflatehd %{_bindir}/deflatehd
%{_bindir}/inflatehd %{_bindir}/inflatehd
%files -n lib%{name}-5 %files -n %{lib_name}
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING %doc COPYING
%{_libdir}/lib%{name}.so.* %{_libdir}/lib%{name}.so.*
%files -n lib%{name}_asio0 %files -n %{lib_name_asio}
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING %doc COPYING
%{_libdir}/lib%{name}_asio.so.* %{_libdir}/lib%{name}_asio.so.*
%files -n python-%{name}
%defattr(-,root,root)
%{python_sitearch}/*
%files -n lib%{name}-devel %files -n lib%{name}-devel
%defattr(-,root,root) %defattr(-,root,root)
%doc ChangeLog %doc ChangeLog
@ -144,6 +158,8 @@ rm -rf doc/manual/html/.buildinfo
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/%{name} %dir %{_includedir}/%{name}
%{_includedir}/%{name}/asio_http2.h %{_includedir}/%{name}/asio_http2.h
%{_includedir}/nghttp2/asio_http2_client.h
%{_includedir}/nghttp2/asio_http2_server.h
%{_libdir}/lib%{name}_asio.so %{_libdir}/lib%{name}_asio.so
%{_libdir}/pkgconfig/lib%{name}_asio.pc %{_libdir}/pkgconfig/lib%{name}_asio.pc