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

@@ -16,19 +16,21 @@
#
%define lib_name lib%{name}-5
%define lib_name_asio lib%{name}_asio1
Name: nghttp2
Version: 0.7.5
Version: 0.7.9
Release: 0
Summary: Implementation of Hypertext Transfer Protocol version 2 in C
License: MIT
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
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: python-Cython
BuildRequires: python-Sphinx
BuildRequires: pkgconfig(cunit)
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.
%package -n lib%{name}-5
%package -n %{lib_name}
Summary: Shared library for %{name}
Group: System/Libraries
%description -n lib%{name}-5
%description -n %{lib_name}
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}
Group: System/Libraries
%description -n lib%{name}_asio0
%description -n %{lib_name_asio}
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
Summary: Development files for %{name}
Group: Development/Languages/C and C++
Requires: lib%{name}-5 = %{version}
Requires: %{lib_name} = %{version}
Provides: %{name}-devel
%description -n lib%{name}-devel
@@ -75,7 +84,7 @@ Transfer Protocol version 2.
%package -n lib%{name}_asio-devel
Summary: Development files for %{name}
Group: Development/Languages/C and C++
Requires: lib%{name}_asio0 = %{version}
Requires: %{lib_name_asio} = %{version}
%description -n lib%{name}_asio-devel
Development files for usage with lib%{name}_aio, which implements asynchronous
@@ -95,6 +104,7 @@ server and proxy.
%build
%configure \
--enable-asio-lib \
--enable-python-bindings \
--disable-static
make %{?_smp_mflags} all html
@@ -103,34 +113,38 @@ make %{?_smp_mflags} check
%install
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
rm -rf %{buildroot}%{_mandir}/man1/*
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
%defattr(-,root,root)
%{_bindir}/deflatehd
%{_bindir}/inflatehd
%files -n lib%{name}-5
%files -n %{lib_name}
%defattr(-,root,root)
%doc COPYING
%{_libdir}/lib%{name}.so.*
%files -n lib%{name}_asio0
%files -n %{lib_name_asio}
%defattr(-,root,root)
%doc COPYING
%{_libdir}/lib%{name}_asio.so.*
%files -n python-%{name}
%defattr(-,root,root)
%{python_sitearch}/*
%files -n lib%{name}-devel
%defattr(-,root,root)
%doc ChangeLog
@@ -144,6 +158,8 @@ rm -rf doc/manual/html/.buildinfo
%defattr(-,root,root)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/asio_http2.h
%{_includedir}/nghttp2/asio_http2_client.h
%{_includedir}/nghttp2/asio_http2_server.h
%{_libdir}/lib%{name}_asio.so
%{_libdir}/pkgconfig/lib%{name}_asio.pc