diff --git a/nghttp2.spec b/nghttp2.spec index 10cbe66..f662ed2 100644 --- a/nghttp2.spec +++ b/nghttp2.spec @@ -136,8 +136,12 @@ HTTP/2 client, server and proxy. sed -i -e 's:#!%{_bindir}/env python:#!%{_bindir}/python3:g' script/fetch-ocsp-response %build -autoreconf -fiv +%if %{with python} export PYTHON=%{_bindir}/python3 +%else +sed -i -e '/AM_PATH_PYTHON([2.7],, [:]) /d' configure.ac +%endif +autoreconf -fiv %configure \ --disable-static \ --disable-silent-rules \