diff --git a/python-altgraph.spec b/python-altgraph.spec index e42bad2..b9a08bd 100644 --- a/python-altgraph.spec +++ b/python-altgraph.spec @@ -20,6 +20,7 @@ Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pytest Requires: graphviz %{?python_provide:%python_provide python3-%{srcname}} @@ -29,23 +30,43 @@ altgraph is a fork of graphlib: a graph (network) package for constructing graphs, BFS, and DFS traversals, topological sort, shortest paths, etc. with graphviz output. +%package -n %{name}-doc +Summary: The %{name} documentation + +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx-theme-alabaster + +%description -n %{name}-doc +Documentation for %{name}. + %prep %autosetup -n %{srcname}-%{version} +rm -rf %{pypi_name}.egg-info %build %py3_build +PYTHONPATH=${PWD} sphinx-build-3 doc/ html +rm -rf html/.{doctrees,buildinfo} %install %py3_install +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v altgraph_tests + %files -n python3-%{srcname} -%doc PKG-INFO README.txt doc/_build/html/ altgraph_tests/ +%doc PKG-INFO README.rst doc/_build/html/ altgraph_tests/ %license LICENSE %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}*.egg-info/ +%files -n %{name}-doc +%doc html +%license LICENSE + %changelog * Thu Mar 26 2020 Fabian Affolter - 0.17-1 +- Add doc subpackage - Upgrade to latest upstream release 0.17 (rhbz#1792939) * Thu Jan 30 2020 Fedora Release Engineering - 0.16.1-3