%global pkgname repoze.sphinx.autointerface %global srcname %(echo %{pkgname} | tr . -) Name: python-%{srcname} Version: 0.8 Release: %mkrel 8 Group: Development/Python Summary: Auto-generate Sphinx API docs from Zope interfaces License: BSD URL: https://github.com/repoze/repoze.sphinx.autointerface Source0: https://github.com/repoze/%{pkgname}/archive/%{version}/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: pkgconfig(python3) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(zope.interface) %global common_desc \ This package defines an extension for the Sphinx documentation system. \ The extension allows generation of API documentation by introspection of \ zope.interface instances in code. %description %{common_desc} %package -n python3-%{srcname} Group: Development/Python Summary: Auto-generate Sphinx API docs from Zope interfaces Requires: python3dist(sphinx) Requires: python3dist(zope.interface) %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{common_desc} %prep %setup -qn %{pkgname}-%{version} # drop bundled egg-info rm -rf repoze.sphinx.autointerface.egg-info/ %build %py3_build %install %py3_install %files -n python3-%{srcname} %doc CHANGES.rst CONTRIBUTORS.txt README.rst %license COPYRIGHT.txt LICENSE.txt %{python3_sitelib}/*