|
| 1 | +Name: python-sphinxcontrib-chapeldomain |
| 2 | +Version: 0.0.39 |
| 3 | +Release: %autorelease |
| 4 | +Summary: Chapel domain for Sphinx |
| 5 | + |
| 6 | +# The entire source is Apache-2.0, except that |
| 7 | +# sphinxcontrib/chapeldomain/README.md is BSD-2-Clause |
| 8 | +# (sphinxcontrib/chapeldomain/LICENSE). |
| 9 | +License: Apache-2.0 AND BSD-2-Clause |
| 10 | +URL: https://github.com/chapel-lang/sphinxcontrib-chapeldomain |
| 11 | +# PyPI source does not have documentation |
| 12 | +Source: %{url}/archive/%{version}/sphinxcontrib-chapeldomain-%{version}.tar.gz |
| 13 | +# Relax pinned dependency requirements |
| 14 | +Patch: relax-dep-requirements.patch |
| 15 | + |
| 16 | +BuildArch: noarch |
| 17 | +BuildRequires: python3-devel |
| 18 | +# Documentation requirements |
| 19 | +BuildRequires: make |
| 20 | +BuildRequires: python3dist(sphinx) |
| 21 | +BuildRequires: python3dist(sphinx-rtd-theme) |
| 22 | +BuildRequires: python3dist(snowballstemmer) |
| 23 | +BuildRequires: texinfo |
| 24 | +# Test requirements |
| 25 | +BuildRequires: python3dist(pytest) |
| 26 | +# chapel.py is vendored from Pygments; see |
| 27 | +# sphinxcontrib/chapeldomain/README.md for justification |
| 28 | +Provides: bundled(python3dist(pygments)) |
| 29 | + |
| 30 | +%global _description %{expand: |
| 31 | +Chapel domain for Sphinx.} |
| 32 | + |
| 33 | +%description %_description |
| 34 | + |
| 35 | +%package -n python3-sphinxcontrib-chapeldomain |
| 36 | +Summary: %{summary} |
| 37 | + |
| 38 | +%description -n python3-sphinxcontrib-chapeldomain %_description |
| 39 | + |
| 40 | + |
| 41 | +%prep |
| 42 | +%autosetup -p1 -n sphinxcontrib-chapeldomain-%{version} |
| 43 | + |
| 44 | + |
| 45 | +%generate_buildrequires |
| 46 | +%pyproject_buildrequires |
| 47 | + |
| 48 | + |
| 49 | +%build |
| 50 | +%pyproject_wheel |
| 51 | +pushd docs |
| 52 | +make texinfo |
| 53 | +pushd _build |
| 54 | +pushd texinfo |
| 55 | +makeinfo --docbook ChapelDomain.texi |
| 56 | +popd |
| 57 | +popd |
| 58 | +popd |
| 59 | + |
| 60 | +%install |
| 61 | +%pyproject_install |
| 62 | +%pyproject_save_files -l sphinxcontrib |
| 63 | +mkdir -p %{buildroot}%{_datadir}/help/en/python-sphinxcontrib-chapeldomain |
| 64 | +install -p -m644 docs/_build/texinfo/ChapelDomain.xml \ |
| 65 | + %{buildroot}%{_datadir}/help/en/python-sphinxcontrib-chapeldomain |
| 66 | + |
| 67 | +%check |
| 68 | +%pyproject_check_import |
| 69 | +%pytest |
| 70 | + |
| 71 | +%files -n python3-sphinxcontrib-chapeldomain -f %{pyproject_files} |
| 72 | +%{python3_sitelib}/sphinxcontrib_chapeldomain-%{version}-py%{python3_version}-nspkg.pth |
| 73 | +%doc README.rst |
| 74 | +%doc %dir %{_datadir}/help/en |
| 75 | +%doc %lang(en) %{_datadir}/help/en/python-sphinxcontrib-chapeldomain |
| 76 | + |
| 77 | +%changelog |
| 78 | +%autochangelog |
0 commit comments