BuildArch: noarch
BuildRequires: python2-devel python-pycurl
%if 0%{?with_python3}
-BuildRequires: python3-devel python3-pycurl python3-flake8
+BuildRequires: python3-devel python3-pycurl
%endif
-BuildRequires: python-flake8
BuildRequires: python-sphinx
%description
%if 0%{?rhel} && 0%{?rhel} <= 6
sed -e "/'sphinx.ext.viewcode'/d" -i doc/conf.py
%endif
+sed -e "/'flake8'/d" -i setup.py
popd
cp -a %{srcname}-%{commit} python2
cp -a %{srcname}-%{commit} python3