diff --git a/python-manuel.spec b/python-manuel.spec index a5eb9cc..37a2564 100644 --- a/python-manuel.spec +++ b/python-manuel.spec @@ -11,6 +11,7 @@ Source0: https://github.com/benji-york/manuel/archive/%{version}/%{srcnam BuildArch: noarch BuildRequires: python3-devel +BuildRequires: python3dist(docutils) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) BuildRequires: python3dist(sphinx) @@ -42,6 +43,12 @@ You can also create your own plug-ins. sphinx-build -c sphinx src/manuel docs rm -fr docs/.buildinfo docs/.doctrees +rst2html --no-datestamp CHANGES.rst CHANGES.html + +# The copyright and license files are really just plain text +cp -p COPYRIGHT.rst COPYRIGHT +cp -p LICENSE.rst LICENSE + %install %py3_install @@ -49,8 +56,8 @@ rm -fr docs/.buildinfo docs/.doctrees %{__python3} setup.py test %files -n python3-%{srcname} -%doc docs/* -%license LICENSE.rst +%doc CHANGES.html docs/* +%license COPYRIGHT LICENSE %{python3_sitelib}/manuel/ %{python3_sitelib}/manuel-%{version}-*