1 %include /usr/lib/rpm/macros.python
3 Summary: Tool for generating API documentation for Python modules
8 Group: Development/Languages/Python
9 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
10 # Source0-md5: fbb0bd482a872795c59f897b699f9549
11 URL: http://epydoc.sourceforge.net/
12 BuildRequires: python-modules >= 2.2.1
13 BuildRequires: rpm-pythonprov
14 %pyrequires_eq python-modules
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Epydoc is a tool for generating API documentation for Python modules, based
20 on their docstrings. For an example of epydoc's output, see the API
21 documentation for epydoc itself (html, pdf). A lightweight markup language
22 called epytext can be used to format docstrings and to add information
23 about specific fields, such as parameters and instance variables. Epydoc
24 also understands docstrings written in ReStructuredText, Javadoc and
28 Summary: GUI for Epydoc
29 Group: Development/Languages/Python
30 Requires: %{name} = %{version}
31 %pyrequires_eq tkinter
34 Epydoc is a tool for generating API documentation for Python modules, based
35 on their docstrings. For an example of epydoc's output, see the API
36 documentation for epydoc itself (html, pdf). A lightweight markup language
37 called epytext can be used to format docstrings and to add information
38 about specific fields, such as parameters and instance variables. Epydoc
39 also understands docstrings written in ReStructuredText, Javadoc and
42 This package contains GUI program for Epydoc.
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_mandir}/man1
54 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
56 install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/epydoc
66 %dir %{py_sitedir}/epydoc
67 %{py_sitedir}/epydoc/*.py[co]
68 %exclude %{py_sitedir}/epydoc/gui.py[co]
70 %dir %{py_sitedir}/epydoc/markup
71 %{py_sitedir}/epydoc/markup/*.py[co]
73 %{_mandir}/man1/epydoc.*
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_bindir}/epydocgui
78 %{py_sitedir}/epydoc/gui.py[co]
80 %{_mandir}/man1/epydocgui.*