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

- Update to 1.1.1

OBS-URL: https://build.opensuse.org/request/show/317158
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=28
This commit is contained in:
Martin Pluskal
2015-07-16 12:54:32 +00:00
committed by Git OBS Bridge
parent 559d9db8eb
commit a4e7a9d7c7
6 changed files with 94 additions and 6 deletions

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)