!6 Enable check
From: @jxy_git Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
e5c70f59f0
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.0.6
|
Version: 1.0.6
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Sphinx extension for Devhelp documents
|
Summary: Sphinx extension for Devhelp documents
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://sphinx-doc.org/
|
URL: http://sphinx-doc.org/
|
||||||
@ -19,6 +19,11 @@ BuildRequires: python3-flit-core
|
|||||||
BuildRequires: python3-hatchling
|
BuildRequires: python3-hatchling
|
||||||
BuildRequires: python3-hatch-vcs
|
BuildRequires: python3-hatch-vcs
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.
|
sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.
|
||||||
|
|
||||||
@ -55,12 +60,21 @@ popd
|
|||||||
|
|
||||||
%find_lang sphinxcontrib.devhelp
|
%find_lang sphinxcontrib.devhelp
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
||||||
|
%{__python3} tests/test_devhelp.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-%{pypi_name} -f sphinxcontrib.devhelp.lang
|
%files -n python3-%{pypi_name} -f sphinxcontrib.devhelp.lang
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/sphinxcontrib*
|
%{python3_sitelib}/sphinxcontrib*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 25 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 1.0.6-3
|
||||||
|
- Enable check
|
||||||
|
|
||||||
* Fri Mar 22 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 1.0.6-2
|
* Fri Mar 22 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 1.0.6-2
|
||||||
- Fix missing provides and disable check
|
- Fix missing provides and disable check
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user