%global srcname sphinxcontrib-trio Name: python-%{srcname} Version: 1.0.1 Release: 1%{?dist} Summary: Make Sphinx better at documenting Python functions and methods License: MIT or ASL 2.0 URL: https://pypi.python.org/pypi/%{srcname} Source0: https://pypi.io/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global desc \ This sphinx extension helps you document Python code that uses \ async/await, or abstract methods, or context managers, or generators, \ or ... you get the idea. It works by making sphinx's regular \ directives for documenting Python functions and methods smarter and \ more powerful. The name is because it was originally written for the \ Trio project, and I'm not very creative. But don't be put off – \ there's nothing Trio- or async-specific about this extension; any \ Python project can benefit. (Though projects using async/await \ probably benefit the most, since sphinx's built-in tools are \ especially inadequate in this case.) %description %desc %package -n python3-%{srcname} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-sphinx BuildRequires: %{_bindir}/rst2html Summary: %{summary} %description -n python3-%{srcname} %desc %prep %autosetup -n %{srcname}-%{version} %build %py3_build rst2html README.rst README.html %install %py3_install %check %{__python3} setup.py test %files -n python3-%{srcname} %license LICENSE LICENSE.MIT LICENSE.APACHE2 %doc README.rst README.html %{python3_sitelib}/* %changelog * Wed Apr 25 2018 Thomas Moschny - 1.0.1-1 - New package.