forked from pool/python-pydot
Accepting request 232538 from home:anubisg1:networking
added python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch to fix incompatibility when using pydot with pyparser 2 OBS-URL: https://build.opensuse.org/request/show/232538 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
4b24324b73
commit
1da8718100
14
python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch
Normal file
14
python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/dot_parser.py b/dot_parser.py
|
||||||
|
index dedd61a..138d152 100644
|
||||||
|
--- a/dot_parser.py
|
||||||
|
+++ b/dot_parser.py
|
||||||
|
@@ -25,8 +25,9 @@ from pyparsing import __version__ as pyparsing_version
|
||||||
|
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:
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 3 14:00:00 UTC 2014 - andrea@opensuse.org
|
||||||
|
|
||||||
|
- added python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch to fix
|
||||||
|
incompatibility when using pydot with pyparser 2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 25 09:05:07 UTC 2012 - toddrme2178@gmail.com
|
Fri May 25 09:05:07 UTC 2012 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pydot
|
# spec file for package python-pydot
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -11,10 +11,11 @@
|
|||||||
# case the license is the MIT License). An "Open Source License" is a
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
#
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define modname pydot
|
%define modname pydot
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.0.28
|
Version: 1.0.28
|
||||||
@@ -26,6 +27,7 @@ Group: Development/Libraries/Python
|
|||||||
Source: http://%{modname}.googlecode.com/files/%{modname}-%{version}.tar.gz
|
Source: http://%{modname}.googlecode.com/files/%{modname}-%{version}.tar.gz
|
||||||
Source1: example-demo.py
|
Source1: example-demo.py
|
||||||
Source2: example-rank.py
|
Source2: example-rank.py
|
||||||
|
Patch0: %{name}-1.0.28_fix_pyparser_2_incompatibility.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
Requires: python-pyparsing
|
Requires: python-pyparsing
|
||||||
@@ -43,6 +45,7 @@ Currently all attributes implemented in the Dot language are supported (up to Gr
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
mkdir examples && cp %{SOURCE1} %{SOURCE2} examples
|
mkdir examples && cp %{SOURCE1} %{SOURCE2} examples
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Reference in New Issue
Block a user