diff --git a/python-sphinx.spec b/python-sphinx.spec index abcd835ec6ec52aa9fe26272ac16abddc5a82979..3250707796250d47cf43fee2a908c2e160d97a6b 100644 --- a/python-sphinx.spec +++ b/python-sphinx.spec @@ -1,6 +1,8 @@ +%bcond_without check + Name: python-sphinx Version: 4.3.1 -Release: 3 +Release: 4 Epoch: 1 Summary: Python documentation generator License: BSD and MIT @@ -199,10 +201,17 @@ mkdir %{buildroot}%{python3_sitelib}/sphinxcontrib >> sphinx.lang -%if %{with tests} +%if %{with check} %check -export PYTHONPATH=%{buildroot}%{python3_sitelib} -export PATH=%{buildroot}%{_bindir}:$PATH +test_deselected="not test_pickle_set_translator_for_pickle and "\ +"not test_json_set_translator_for_json and "\ +"not test_latex_images and "\ +"not test_ext_imgconverter" +export PYTHONPATH=$PWD +rm tests/test_build_linkcheck.py +LANG=en_US.UTF-8 +PYTHON=python3 +%{__python3} -m pytest -k "${test_deselected}" %endif %files locale -f sphinx.lang @@ -225,6 +234,12 @@ export PATH=%{buildroot}%{_bindir}:$PATH %{_mandir}/man1/* %changelog +* Thu Dec 22 2022 zhuofeng - 1:4.3.1-4 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:make the test check + * Wed Jan 12 2022 shixuantong - 4.3.1-3 - revert openEuler-fix-docutils-version-error.patch