diff --git a/nghttp2.changes b/nghttp2.changes index f1ded1a..0046510 100644 --- a/nghttp2.changes +++ b/nghttp2.changes @@ -10,6 +10,7 @@ Thu Oct 26 10:28:19 UTC 2017 - mpluskal@suse.com * h2load: Fix bug that timing script stalls with -m1 * h2load: Reservoir sampling (GH-984) * h2load: Add timing-based load-testing in h2load +- Switch to python3 support ------------------------------------------------------------------- Mon Oct 9 10:14:26 UTC 2017 - schwab@suse.de diff --git a/nghttp2.spec b/nghttp2.spec index 055a0b3..d298825 100644 --- a/nghttp2.spec +++ b/nghttp2.spec @@ -36,8 +36,8 @@ BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig -BuildRequires: python-Cython -BuildRequires: python-setuptools +BuildRequires: python3-Cython +BuildRequires: python3-setuptools BuildRequires: pkgconfig(cunit) BuildRequires: pkgconfig(jansson) %ifnarch ppc %arm @@ -61,10 +61,9 @@ BuildRequires: boost-devel %description This is an implementation of Hypertext Transfer Protocol version 2. -The framing layer of HTTP/2 is implemented as a form of reusable C -library. On top of that, we have implemented HTTP/2 client, server -and proxy. We have also developed load test and benchmarking tool -for HTTP/2. +The framing layer of HTTP/2 is implemented as a form of reusable C library. +On top of that, we have implemented HTTP/2 client, server and proxy. We +have also developed load test and benchmarking tool for HTTP/2. HPACK encoder and decoder are available as public API. @@ -73,26 +72,26 @@ Summary: Shared library for nghttp2 Group: System/Libraries %description -n %{soname}-%{sover} -Shared C libraries for implementation of -Hypertext Transfer Protocol version 2. +Shared C libraries for implementation of Hypertext Transfer Protocol +version 2. %package -n %{soname_asio}%{sover_asio} Summary: Shared library for nghttp2 Group: System/Libraries %description -n %{soname_asio}%{sover_asio} -Shared libraries for asynchronous implementation of -Hypertext Transfer Protocol version 2. +Shared libraries for asynchronous implementation of Hypertext Transfer +Protocol version 2. -%package -n python2-%{name} -Summary: Python bindings for nghttp2 +%package -n python3-%{name} +Summary: Python3 bindings for nghttp2 Group: Development/Libraries/Python Provides: python-%{name} = %{version} Obsoletes: python-%{name} < %{version} -%description -n python2-%{name} -Python bindings for implementation of -Hypertext Transfer Protocol version 2. +%description -n python3-%{name} +Python bindings for implementation of Hypertext Transfer Protocol version +2. %package -n %{soname}-devel Summary: Development files for nghttp2 @@ -136,13 +135,13 @@ autoreconf -fiv make %{?_smp_mflags} all pushd python make %{?_smp_mflags} nghttp2.c -python setup.py build +python3 setup.py build popd %install %make_install pushd python -python setup.py install --root=%{buildroot} --prefix=%{_prefix} +python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} popd find %{buildroot} -type f -name "*.la" -delete -print @@ -180,9 +179,9 @@ make %{?_smp_mflags} check ||: %doc COPYING %{_libdir}/%{soname_asio}.so.%{sover_asio}* -%files -n python2-%{name} -%{python_sitearch}/nghttp2.so -%{python_sitearch}/python_nghttp2-* +%files -n python3-%{name} +%{python3_sitearch}/nghttp2.*.so +%{python3_sitearch}/python_nghttp2-* %files -n %{soname}-devel %dir %{_includedir}/%{name}/