Name: python-sphinxcontrib-chapeldomain Version: 0.0.39 Release: %autorelease Summary: Chapel domain for Sphinx License: Apache-2.0 URL: https://github.com/chapel-lang/sphinxcontrib-chapeldomain # PyPI source does not have documentation Source: %{url}/archive/%{version}/sphinxcontrib-chapeldomain-%{version}.tar.gz # Relax pinned dependency requirements Patch: relax-dep-requirements.patch # Use newer license metadata declarations # https://github.com/chapel-lang/sphinxcontrib-chapeldomain/pull/108 Patch: license-metadata.patch BuildArch: noarch BuildRequires: python3-devel # Documentation requirements BuildRequires: make BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-rtd-theme) BuildRequires: python3dist(snowballstemmer) BuildRequires: texinfo # Test requirements BuildRequires: python3dist(mock) BuildRequires: python3dist(pytest) %global _description %{expand: Chapel domain for Sphinx.} %description %_description %package -n python3-sphinxcontrib-chapeldomain Summary: %{summary} %description -n python3-sphinxcontrib-chapeldomain %_description %prep %autosetup -p1 -n sphinxcontrib-chapeldomain-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel pushd docs make texinfo pushd _build pushd texinfo makeinfo --docbook ChapelDomain.texi popd popd popd %install %pyproject_install %pyproject_save_files -l sphinxcontrib mkdir -p %{buildroot}%{_datadir}/help/en/python-sphinxcontrib-chapeldomain install -m644 docs/_build/texinfo/ChapelDomain.xml \ %{buildroot}%{_datadir}/help/en/python-sphinxcontrib-chapeldomain %check %pyproject_check_import %pytest %files -n python3-sphinxcontrib-chapeldomain -f %{pyproject_files} %{python3_sitelib}/sphinxcontrib_chapeldomain-%{version}-py%{python3_version}-nspkg.pth %dir %{_datadir}/help/en %lang(en) %{_datadir}/help/en/python-sphinxcontrib-chapeldomain %changelog %autochangelog