diff --git a/epydoc-3.0.1-new-docutils.patch b/epydoc-3.0.1-new-docutils.patch new file mode 100644 index 0000000..d17a610 --- /dev/null +++ b/epydoc-3.0.1-new-docutils.patch @@ -0,0 +1,29 @@ +From b293e11299566005b5d918c735bdf9c0ab5ded6f Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Thu, 1 Apr 2010 20:23:12 +0200 +Subject: [PATCH] Fix restructuredtext formatting for python-docutils-0.6 + +--- + epydoc/markup/restructuredtext.py | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/epydoc/markup/restructuredtext.py b/epydoc/markup/restructuredtext.py +index 8b6ac04..4726cb5 100644 +--- a/epydoc/markup/restructuredtext.py ++++ b/epydoc/markup/restructuredtext.py +@@ -304,10 +304,10 @@ class _SummaryExtractor(NodeVisitor): + # Extract the first sentence. + for child in node: + if isinstance(child, docutils.nodes.Text): +- m = self._SUMMARY_RE.match(child.data) ++ m = self._SUMMARY_RE.match(child) + if m: + summary_pieces.append(docutils.nodes.Text(m.group(1))) +- other = child.data[m.end():] ++ other = child[m.end():] + if other and not other.isspace(): + self.other_docs = True + break +-- +1.7.0.1 + diff --git a/epydoc.spec b/epydoc.spec index fedbcf7..68bff6d 100644 --- a/epydoc.spec +++ b/epydoc.spec @@ -3,7 +3,7 @@ Summary: Automatic API documentation generation tool for Python Name: epydoc Version: 3.0.1 -Release: 6%{?dist} +Release: 7%{?dist} Group: Development/Tools License: MIT URL: http://epydoc.sourceforge.net/ @@ -11,6 +11,7 @@ Source0: http://dl.sf.net/epydoc/epydoc-%{version}.tar.gz Source1: epydocgui.desktop Patch0: epydoc-3.0.1-nohashbang.patch Patch1: epydoc-3.0.1-giftopng.patch +Patch2: epydoc-3.0.1-new-docutils.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: tkinter # Needed for some outputs, like --pdf (#522249) @@ -34,6 +35,7 @@ ReStructuredText, Javadoc, and plaintext. %setup -q %patch0 -p1 -b .nohashbang %patch1 -p1 -b .giftopng +%patch2 -p1 -b .new-docutils %build @@ -75,6 +77,9 @@ desktop-file-install \ %changelog +* Tue Apr 13 2010 Lubomir Rintel 3.0.1-7 +- Fix crash with newer docutils (#578920) + * Tue Dec 8 2009 Matthias Saou 3.0.1-6 - Add texlive-dvips and texlive-latex requirements (#522249). diff --git a/import.log b/import.log new file mode 100644 index 0000000..eb7b680 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +epydoc-3_0_1-7_fc14:F-13:epydoc-3.0.1-7.fc14.src.rpm:1271751093