5df9f91
%bcond_without optional_tests
9d0a7bc
4c850b2
Name:           python-sphinxcontrib-websupport
b21c7f2
Version:        1.2.7
1c5506f
Release:        %autorelease
9d0a7bc
Summary:        Sphinx API for Web Apps
9d0a7bc
3ff1704
License:        BSD-2-Clause
e3633f7
URL:            https://github.com/sphinx-doc/sphinxcontrib-websupport
19f5b18
Source:         %{pypi_source sphinxcontrib_websupport}
9d0a7bc
BuildArch:      noarch
9d0a7bc
9d0a7bc
%description
9d0a7bc
sphinxcontrib-websupport provides a Python API to easily integrate Sphinx
9d0a7bc
documentation into your Web application.
9d0a7bc
4c850b2
%package -n     python3-sphinxcontrib-websupport
9d0a7bc
Summary:        %{summary}
9d0a7bc
BuildRequires:  python3-devel
5d8cd6c
5df9f91
%if %{with optional_tests}
b21c7f2
# Optional tests dep, undeclared upstream, can be skipped if needed
5d8cd6c
BuildRequires:  python3-xapian
5df9f91
%endif
5d8cd6c
4c850b2
%description -n python3-sphinxcontrib-websupport
9d0a7bc
sphinxcontrib-websupport provides a Python API to easily integrate Sphinx
9d0a7bc
documentation into your Web application.
9d0a7bc
49a95bf
%pyproject_extras_subpkg -n python3-sphinxcontrib-websupport whoosh
49a95bf
9d0a7bc
%prep
b21c7f2
%autosetup -n sphinxcontrib_websupport-%{version}
b21c7f2
b21c7f2
%generate_buildrequires
b21c7f2
%pyproject_buildrequires -t
9d0a7bc
9d0a7bc
%build
b21c7f2
%pyproject_wheel
9d0a7bc
9d0a7bc
%install
b21c7f2
%pyproject_install
b21c7f2
%pyproject_save_files sphinxcontrib
9d0a7bc
9d0a7bc
%check
b21c7f2
%tox
9d0a7bc
4c850b2
%files -n python3-sphinxcontrib-websupport -f %{pyproject_files}
9d0a7bc
%license LICENSE
9d0a7bc
%doc README.rst
9d0a7bc
9d0a7bc
%changelog
1c5506f
%autochangelog