Miro Hrončok 2019-03-28 02:25:29 +01:00
parent 47d554b768
commit c78d8baf41

View File

@ -49,9 +49,6 @@ Summary: Library with cross-python path, ini-parsing, io, code, log facil
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python2-setuptools BuildRequires: python2-setuptools
BuildRequires: python2-setuptools_scm BuildRequires: python2-setuptools_scm
%if %{with docs}
BuildRequires: %{_bindir}/sphinx-build-2
%endif # with_docs
%if %{with tests} %if %{with tests}
BuildRequires: python2-pytest >= %{pytest_version_lb}, python2-pytest < %{pytest_version_ub} BuildRequires: python2-pytest >= %{pytest_version_lb}, python2-pytest < %{pytest_version_ub}
%endif # with tests %endif # with tests
@ -80,7 +77,7 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm BuildRequires: python3-setuptools_scm
%if %{with docs} %if %{with docs}
BuildRequires: %{_bindir}/sphinx-build-3 BuildRequires: %{_bindir}/sphinx-build
%endif # with_docs %endif # with_docs
%if %{with tests} %if %{with tests}
BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub} BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub}
@ -121,9 +118,6 @@ cp -a python2 python3
%if %{with python2} %if %{with python2}
pushd python2 pushd python2
%py2_build %py2_build
%if %{with docs}
make -C doc html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-2
%endif # with docs
popd popd
%endif # with python2 %endif # with python2
@ -131,7 +125,7 @@ popd
pushd python3 pushd python3
%py3_build %py3_build
%if %{with docs} %if %{with docs}
make -C doc html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-3 make -C doc html PYTHONPATH=$(pwd)
%endif # with docs %endif # with docs
popd popd
%endif # with python3 %endif # with python3
@ -182,9 +176,6 @@ popd
%doc python2/CHANGELOG %doc python2/CHANGELOG
%doc python2/README.rst %doc python2/README.rst
%license python2/LICENSE %license python2/LICENSE
%if %{with docs}
%doc python2/doc/_build/html
%endif # with_docs
%{python2_sitelib}/py-*.egg-info/ %{python2_sitelib}/py-*.egg-info/
%{python2_sitelib}/py/ %{python2_sitelib}/py/
%endif # with python2 %endif # with python2