/[packages]/cauldron/python-repoze-sphinx-autointerface/current/SPECS/python-repoze-sphinx-autointerface.spec
ViewVC logotype

Annotation of /cauldron/python-repoze-sphinx-autointerface/current/SPECS/python-repoze-sphinx-autointerface.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1729406 - (hide annotations) (download)
Wed Jun 2 22:10:31 2021 UTC (2 years, 10 months ago) by kekepower
File size: 1826 byte(s)
- Update to release 0.8.1 git20200728

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

  ViewVC Help
Powered by ViewVC 1.1.30