1 |
mitya |
1104367 |
%global pkgname repoze.sphinx.autointerface |
2 |
wally |
1427301 |
%global srcname %(echo %{pkgname} | tr . -) |
3 |
mitya |
1104367 |
|
4 |
|
|
Name: python-%{srcname} |
5 |
|
|
Version: 0.8 |
6 |
umeabot |
1532685 |
Release: %mkrel 8 |
7 |
mitya |
1104369 |
Group: Development/Python |
8 |
mitya |
1104367 |
Summary: Auto-generate Sphinx API docs from Zope interfaces |
9 |
|
|
|
10 |
|
|
License: BSD |
11 |
wally |
1427301 |
URL: https://github.com/repoze/repoze.sphinx.autointerface |
12 |
mitya |
1104367 |
Source0: https://github.com/repoze/%{pkgname}/archive/%{version}/%{pkgname}-%{version}.tar.gz |
13 |
|
|
BuildArch: noarch |
14 |
|
|
|
15 |
kekepower |
1329015 |
BuildRequires: pkgconfig(python3) |
16 |
|
|
BuildRequires: python3dist(setuptools) |
17 |
|
|
BuildRequires: python3dist(sphinx) |
18 |
|
|
BuildRequires: python3dist(zope.interface) |
19 |
mitya |
1104367 |
|
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 |
mitya |
1104369 |
Group: Development/Python |
30 |
mitya |
1104367 |
Summary: Auto-generate Sphinx API docs from Zope interfaces |
31 |
kekepower |
1329015 |
Requires: python3dist(sphinx) |
32 |
|
|
Requires: python3dist(zope.interface) |
33 |
mitya |
1104367 |
|
34 |
|
|
%{?python_provide:%python_provide python3-%{srcname}} |
35 |
|
|
|
36 |
|
|
%description -n python3-%{srcname} |
37 |
|
|
%{common_desc} |
38 |
|
|
|
39 |
|
|
%prep |
40 |
wally |
1427301 |
%setup -qn %{pkgname}-%{version} |
41 |
mitya |
1104367 |
|
42 |
wally |
1427301 |
# drop bundled egg-info |
43 |
|
|
rm -rf repoze.sphinx.autointerface.egg-info/ |
44 |
mitya |
1104367 |
|
45 |
|
|
%build |
46 |
|
|
%py3_build |
47 |
|
|
|
48 |
|
|
%install |
49 |
|
|
%py3_install |
50 |
|
|
|
51 |
|
|
%files -n python3-%{srcname} |
52 |
wally |
1427301 |
%doc CHANGES.rst CONTRIBUTORS.txt README.rst |
53 |
|
|
%license COPYRIGHT.txt LICENSE.txt |
54 |
mitya |
1104367 |
%{python3_sitelib}/* |
55 |
|
|
|