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