Run import check in %check

This commit is contained in:
Miro Hrončok 2023-11-20 16:11:07 +01:00
parent 41ab16f8b5
commit ebc7f26ca6
1 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,12 @@ Source: %{pypi_source alabaster}
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
# Upstream lists no runtime dependencies,
# but alabaster/support.py imports from pygments.
# This is fine, as the module is only used for pygments.
# This BuildRequires is necessary for a successful import check.
BuildRequires: python%{python3_pkgversion}-pygments
%global _description %{expand:
Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx
documentation system.
@ -45,6 +51,11 @@ Summary: %{summary}
%pyproject_save_files alabaster
%check
# upstream has no tests
%pyproject_check_import
%files -n python%{python3_pkgversion}-sphinx-theme-alabaster -f %{pyproject_files}
%doc README.rst
@ -52,6 +63,7 @@ Summary: %{summary}
%changelog
* Mon Nov 20 2023 Miro Hrončok <mhroncok@redhat.com> - 0.7.13-2
- Provide python3-alabaster
- Run a basic import check when this package is built
* Sat Oct 21 2023 Julien Enselme <jujens@jujens.eu> - 0.7.13-1
- Update to 0.7.13