]>
Commit | Line | Data |
---|---|---|
14c391a4 | 1 | Summary: Tool for generating API documentation for Python modules |
2b4efed8 | 2 | Summary(pl.UTF-8): Narzędzie do generowania dokumentacji API modułów Pythona |
14c391a4 | 3 | Name: epydoc |
b4505e49 | 4 | Version: 3.0.1 |
cd37f68d | 5 | Release: 6 |
14c391a4 | 6 | License: MIT |
7 | Group: Development/Languages/Python | |
f7859608 | 8 | Source0: http://downloads.sourceforge.net/epydoc/%{name}-%{version}.zip |
b4505e49 | 9 | # Source0-md5: 43223b2139c59ec60f064564bea82bf4 |
06111358 | 10 | Patch0: %{name}-rst.patch |
66e5edf1 | 11 | Patch1: %{name}-__package__.patch |
d8faf023 | 12 | Patch2: %{name}-cons_fields_stripping.patch |
14c391a4 | 13 | URL: http://epydoc.sourceforge.net/ |
2dadee0a | 14 | BuildRequires: rpmbuild(macros) >= 1.710 |
f7859608 | 15 | BuildRequires: python |
14c391a4 | 16 | BuildRequires: python-modules >= 2.2.1 |
f7859608 | 17 | BuildRequires: rpm-pythonprov |
cd0789f1 | 18 | BuildRequires: unzip |
14c391a4 | 19 | %pyrequires_eq python-modules |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
66c4606a | 24 | epydoc is a tool for generating API documentation for Python modules, |
25 | based on their docstrings. For an example of epydoc's output, see the | |
26 | API documentation for epydoc itself (html, pdf). A lightweight markup | |
27 | language called epytext can be used to format docstrings and to add | |
28 | information about specific fields, such as parameters and instance | |
29 | variables. epydoc also understands docstrings written in | |
30 | ReStructuredText, Javadoc and plaintext. | |
31 | ||
d406f402 JR |
32 | %description -l pl.UTF-8 |
33 | epydoc jest narzędziem do generowania dokumentacji API modułów Pythona | |
34 | w oparciu o ich wewnętrzne opisy (docstrings). Jako przykład wyniku | |
35 | jego działania można obejrzeć jego własną dokumentację (html, pdf). | |
cd37f68d JB |
36 | Dostępny jest prosty język znaczników o nazwie epytext, który można |
37 | wykorzystać do formatowania wewnętrznych opisów oraz do dodawania | |
38 | informacji o konkretnych polach, takich jak parametry i zmienne | |
39 | instancji. epydoc rozumie również wewnętrzne opisy stworzone w | |
40 | formatach ReStructuredText i Javadoc oraz w postaci czystego tekstu. | |
14c391a4 | 41 | |
d628eb98 | 42 | %package gui |
66c4606a | 43 | Summary: GUI for epydoc |
2b4efed8 | 44 | Summary(pl.UTF-8): Interfejs graficzny dla epydoc |
d628eb98 | 45 | Group: Development/Languages/Python |
63e879ff | 46 | Requires: %{name} = %{version}-%{release} |
cd37f68d | 47 | Requires: python-tkinter >= 2.2.1 |
d628eb98 | 48 | |
49 | %description gui | |
66c4606a | 50 | epydoc is a tool for generating API documentation for Python modules, |
51 | based on their docstrings. For an example of epydoc's output, see the | |
52 | API documentation for epydoc itself (html, pdf). A lightweight markup | |
53 | language called epytext can be used to format docstrings and to add | |
54 | information about specific fields, such as parameters and instance | |
55 | variables. epydoc also understands docstrings written in | |
56 | ReStructuredText, Javadoc and plaintext. | |
57 | ||
58 | This package contains GUI program for epydoc. | |
59 | ||
d406f402 JR |
60 | %description gui -l pl.UTF-8 |
61 | epydoc jest narzędziem do generowania dokumentacji API modułów Pythona | |
62 | w oparciu o ich wewnętrzne opisy (docstrings). Jako przykład wyniku | |
63 | jego działania można obejrzeć jego własną dokumentację (html, pdf). | |
cd37f68d JB |
64 | Dostępny jest prosty język znaczników o nazwie epytext, który można |
65 | wykorzystać do formatowania wewnętrznych opisów oraz do dodawania | |
66 | informacji o konkretnych polach, takich jak parametry i zmienne | |
67 | instancji. epydoc rozumie również wewnętrzne opisy stworzone w | |
68 | formatach ReStructuredText i Javadoc oraz w postaci czystego tekstu. | |
66c4606a | 69 | |
d406f402 | 70 | Ten pakiet zawiera graficzny interfejs użytkownika (GUI) dla epydoc. |
d628eb98 | 71 | |
14c391a4 | 72 | %prep |
b4505e49 | 73 | %setup -q |
06111358 | 74 | %patch0 -p1 |
66e5edf1 | 75 | %patch1 -p1 |
d8faf023 | 76 | %patch2 -p1 |
14c391a4 | 77 | |
78 | %build | |
d6494800 | 79 | %py_build |
14c391a4 | 80 | |
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
d628eb98 | 83 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
14c391a4 | 84 | |
d6494800 | 85 | %py_install |
14c391a4 | 86 | |
d628eb98 | 87 | install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
88 | ||
9b9d9acf | 89 | %py_postclean |
eb50c78d | 90 | |
14c391a4 | 91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc doc/* | |
cd37f68d JB |
97 | %attr(755,root,root) %{_bindir}/apirst2html.py |
98 | %attr(755,root,root) %{_bindir}/epydoc | |
99 | %{_mandir}/man1/epydoc.1* | |
9b9d9acf | 100 | %{py_sitescriptdir}/epydoc |
9b9d9acf | 101 | %exclude %{py_sitescriptdir}/epydoc/gui.py[co] |
cd37f68d | 102 | %{py_sitescriptdir}/epydoc-%{version}-py*.egg-info |
d628eb98 | 103 | |
104 | %files gui | |
105 | %defattr(644,root,root,755) | |
106 | %attr(755,root,root) %{_bindir}/epydocgui | |
eb50c78d | 107 | %{py_sitescriptdir}/epydoc/gui.py[co] |
cd37f68d | 108 | %{_mandir}/man1/epydocgui.1* |