packages: epydoc/epydoc.spec, epydoc/epydoc-rst.patch (NEW) - Release: 3 - ...
jajcus
jajcus at pld-linux.org
Sun May 8 13:35:22 CEST 2011
Author: jajcus Date: Sun May 8 11:35:22 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- Release: 3
- restructured text parsing fix, based on the patch from https://bugzilla.redhat.com/show_bug.cgi?id=578920
---- Files affected:
packages/epydoc:
epydoc.spec (1.22 -> 1.23) , epydoc-rst.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/epydoc/epydoc.spec
diff -u packages/epydoc/epydoc.spec:1.22 packages/epydoc/epydoc.spec:1.23
--- packages/epydoc/epydoc.spec:1.22 Thu Jan 27 22:28:12 2011
+++ packages/epydoc/epydoc.spec Sun May 8 13:35:16 2011
@@ -3,11 +3,12 @@
Summary(pl.UTF-8): Narzędzie do generowania dokumentacji API modułów Pythona
Name: epydoc
Version: 3.0.1
-Release: 2
+Release: 3
License: MIT
Group: Development/Languages/Python
Source0: http://downloads.sourceforge.net/epydoc/%{name}-%{version}.zip
# Source0-md5: 43223b2139c59ec60f064564bea82bf4
+Patch0: %{name}-rst.patch
URL: http://epydoc.sourceforge.net/
BuildRequires: python
BuildRequires: python-modules >= 2.2.1
@@ -68,6 +69,7 @@
%prep
%setup -q
+%patch0 -p1
%build
python setup.py build
@@ -106,6 +108,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.23 2011/05/08 11:35:16 jajcus
+- Release: 3
+- restructured text parsing fix, based on the patch from https://bugzilla.redhat.com/show_bug.cgi?id=578920
+
Revision 1.22 2011/01/27 21:28:12 sparky
- BR: python, rpm-pythonprov
================================================================
Index: packages/epydoc/epydoc-rst.patch
diff -u /dev/null packages/epydoc/epydoc-rst.patch:1.1
--- /dev/null Sun May 8 13:35:22 2011
+++ packages/epydoc/epydoc-rst.patch Sun May 8 13:35:16 2011
@@ -0,0 +1,31 @@
+diff -dur epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py epydoc-3.0.1/epydoc/markup/restructuredtext.py
+--- epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py 2008-01-28 18:15:32.000000000 +0100
++++ epydoc-3.0.1/epydoc/markup/restructuredtext.py 2011-05-08 13:33:08.000000000 +0200
+@@ -304,10 +304,10 @@
+ # 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
+@@ -489,10 +489,10 @@
+ if (len(fbody[0]) > 0 and
+ isinstance(fbody[0][0], docutils.nodes.Text)):
+ child = fbody[0][0]
+- if child.data[:1] in ':-':
+- child.data = child.data[1:].lstrip()
+- elif child.data[:2] in (' -', ' :'):
+- child.data = child.data[2:].lstrip()
++ if child[:1] in ':-':
++ child = child[1:].lstrip()
++ elif child[:2] in (' -', ' :'):
++ child = child[2:].lstrip()
+
+ # Wrap the field body, and add a new field
+ self._add_field(tagname, arg, fbody)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/epydoc/epydoc.spec?r1=1.22&r2=1.23&f=u
More information about the pld-cvs-commit
mailing list