[pydot] fix for pyparsing2

Tom Callaway spot at fedoraproject.org
Mon Dec 9 14:04:00 UTC 2013


commit 66b0c70e5dc3e530e47f75c472dfa9d4eab4f815
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Mon Dec 9 09:04:02 2013 -0500

    fix for pyparsing2

 pydot-1.0.28-pyparsing2fix.patch |   14 ++++++++++++++
 pydot.spec                       |    7 ++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/pydot-1.0.28-pyparsing2fix.patch b/pydot-1.0.28-pyparsing2fix.patch
new file mode 100644
index 0000000..12a0109
--- /dev/null
+++ b/pydot-1.0.28-pyparsing2fix.patch
@@ -0,0 +1,14 @@
+diff -up pydot-1.0.28/dot_parser.py.pyparsing2fix pydot-1.0.28/dot_parser.py
+--- pydot-1.0.28/dot_parser.py.pyparsing2fix	2013-12-09 08:59:24.660145534 -0500
++++ pydot-1.0.28/dot_parser.py	2013-12-09 09:00:10.021222397 -0500
+@@ -25,8 +25,9 @@ from pyparsing import __version__ as pyp
+ from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
+     Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums,
+     restOfLine, cStyleComment, nums, alphanums, printables, empty, quotedString,
+-    ParseException, ParseResults, CharsNotIn, _noncomma, dblQuotedString, QuotedString, ParserElement )
++    ParseException, ParseResults, CharsNotIn, dblQuotedString, QuotedString, ParserElement )
+ 
++_noncomma = "".join( [ c for c in printables if c != "," ] )
+ 
+ class P_AttrList:
+ 
diff --git a/pydot.spec b/pydot.spec
index 9af6aa4..b546d80 100644
--- a/pydot.spec
+++ b/pydot.spec
@@ -2,12 +2,13 @@
 
 Name:		pydot
 Version:	1.0.28
-Release:	4%{?dist}
+Release:	5%{?dist}
 License:	MIT
 Group:		System Environment/Libraries
 Summary:	Python interface to Graphviz's Dot language
 URL:		http://code.google.com/p/pydot/
 Source0:	http://pydot.googlecode.com/files/pydot-%{version}.tar.gz
+Patch0:		pydot-1.0.28-pyparsing2fix.patch
 BuildRequires:	pyparsing python-devel
 Requires:	graphviz, pyparsing
 BuildArch:	noarch
@@ -23,6 +24,7 @@ tools dot, neato, twopi.
 
 %prep
 %setup -q
+%patch0 -p1 -b .pyparsing2fix
 
 %build
 %{__python} setup.py build
@@ -40,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT%{_prefix}/LICENSE $RPM_BUILD_ROOT%{_prefix}/README
 %{python_sitelib}/pydot-%{version}*.egg-info
 
 %changelog
+* Mon Dec  9 2013 Tom Callaway <spot at fedoraproject.org> - 1.0.28-5
+- fix for pyparsing2
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.28-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list