1 |
%global pkgname repoze.sphinx.autointerface |
2 |
%global srcname %(echo %{pkgname} | tr . -) |
3 |
|
4 |
Name: python-%{srcname} |
5 |
Version: 0.8 |
6 |
Release: %mkrel 8 |
7 |
Group: Development/Python |
8 |
Summary: Auto-generate Sphinx API docs from Zope interfaces |
9 |
|
10 |
License: BSD |
11 |
URL: https://github.com/repoze/repoze.sphinx.autointerface |
12 |
Source0: https://github.com/repoze/%{pkgname}/archive/%{version}/%{pkgname}-%{version}.tar.gz |
13 |
BuildArch: noarch |
14 |
|
15 |
BuildRequires: pkgconfig(python3) |
16 |
BuildRequires: python3dist(setuptools) |
17 |
BuildRequires: python3dist(sphinx) |
18 |
BuildRequires: python3dist(zope.interface) |
19 |
|
20 |
%global common_desc \ |
21 |
This package defines an extension for the Sphinx documentation system. \ |
22 |
The extension allows generation of API documentation by introspection of \ |
23 |
zope.interface instances in code. |
24 |
|
25 |
%description |
26 |
%{common_desc} |
27 |
|
28 |
%package -n python3-%{srcname} |
29 |
Group: Development/Python |
30 |
Summary: Auto-generate Sphinx API docs from Zope interfaces |
31 |
Requires: python3dist(sphinx) |
32 |
Requires: python3dist(zope.interface) |
33 |
|
34 |
%{?python_provide:%python_provide python3-%{srcname}} |
35 |
|
36 |
%description -n python3-%{srcname} |
37 |
%{common_desc} |
38 |
|
39 |
%prep |
40 |
%setup -qn %{pkgname}-%{version} |
41 |
|
42 |
# drop bundled egg-info |
43 |
rm -rf repoze.sphinx.autointerface.egg-info/ |
44 |
|
45 |
%build |
46 |
%py3_build |
47 |
|
48 |
%install |
49 |
%py3_install |
50 |
|
51 |
%files -n python3-%{srcname} |
52 |
%doc CHANGES.rst CONTRIBUTORS.txt README.rst |
53 |
%license COPYRIGHT.txt LICENSE.txt |
54 |
%{python3_sitelib}/* |
55 |
|