Summary: Tool for generating API documentation for Python modules
Name: epydoc
Version: 2.0
-Release: 0.1
+Release: 1
License: MIT
Group: Development/Languages/Python
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
also understands docstrings written in ReStructuredText, Javadoc and
plaintext.
+%package gui
+Summary: GUI for Epydoc
+Group: Development/Languages/Python
+Requires: %{name} = %{version}
+%pyrequires_eq tkinter
+
+%description gui
+Epydoc is a tool for generating API documentation for Python modules, based
+on their docstrings. For an example of epydoc's output, see the API
+documentation for epydoc itself (html, pdf). A lightweight markup language
+called epytext can be used to format docstrings and to add information
+about specific fields, such as parameters and instance variables. Epydoc
+also understands docstrings written in ReStructuredText, Javadoc and
+plaintext.
+
+This package contains GUI program for Epydoc.
+
%prep
%setup -q
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc doc/*
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/epydoc
+
%dir %{py_sitedir}/epydoc
%{py_sitedir}/epydoc/*.py[co]
+%exclude %{py_sitedir}/epydoc/gui.py[co]
+
%dir %{py_sitedir}/epydoc/markup
%{py_sitedir}/epydoc/markup/*.py[co]
+
+%{_mandir}/man1/epydoc.*
+
+%files gui
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/epydocgui
+%{py_sitedir}/epydoc/gui.py[co]
+
+%{_mandir}/man1/epydocgui.*