From 14c391a45ace80e8968092f41efafe4b6a5c939e Mon Sep 17 00:00:00 2001 From: wrobell Date: Mon, 25 Aug 2003 15:23:29 +0000 Subject: [PATCH] - based on python-logging.spec Changed files: epydoc.spec -> 1.1 --- epydoc.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 epydoc.spec diff --git a/epydoc.spec b/epydoc.spec new file mode 100644 index 0000000..b8c96c0 --- /dev/null +++ b/epydoc.spec @@ -0,0 +1,48 @@ +%include /usr/lib/rpm/macros.python + +Summary: Tool for generating API documentation for Python modules +Name: epydoc +Version: 2.0 +Release: 0.1 +License: MIT +Group: Development/Languages/Python +Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +# Source0-md5: fbb0bd482a872795c59f897b699f9549 +URL: http://epydoc.sourceforge.net/ +BuildRequires: python-modules >= 2.2.1 +BuildRequires: rpm-pythonprov +%pyrequires_eq python-modules +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +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. + +%prep +%setup -q + +%build +python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT + +python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc doc/* +%attr(755,root,root) %{_bindir}/* +%dir %{py_sitedir}/epydoc +%{py_sitedir}/epydoc/*.py[co] +%dir %{py_sitedir}/epydoc/markup +%{py_sitedir}/epydoc/markup/*.py[co] -- 2.44.0