commit python-pydot for openSUSE:Factory

2020-02-29 Thread root
Hello community,

here is the log from the commit of package python-pydot for openSUSE:Factory 
checked in at 2020-02-29 21:18:36

Comparing /work/SRC/openSUSE:Factory/python-pydot (Old)
 and  /work/SRC/openSUSE:Factory/.python-pydot.new.26092 (New)


Package is "python-pydot"

Sat Feb 29 21:18:36 2020 rev:9 rq:778974 version:1.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pydot/python-pydot.changes
2019-04-08 10:32:27.511268002 +0200
+++ /work/SRC/openSUSE:Factory/.python-pydot.new.26092/python-pydot.changes 
2020-02-29 21:18:40.758042606 +0100
@@ -1,0 +2,5 @@
+Tue Feb 25 08:02:25 UTC 2020 - Tomáš Chvátal 
+
+- We need the full graphviz-gd as otherwise it acts really weirdly
+
+---



Other differences:
--
++ python-pydot.spec ++
--- /var/tmp/diff_new_pack.ZH3Yl3/_old  2020-02-29 21:18:41.902042059 +0100
+++ /var/tmp/diff_new_pack.ZH3Yl3/_new  2020-02-29 21:18:41.902042059 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pydot
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,6 @@
 Release:0
 Summary:Module to create (dot) graphs from Python
 License:MIT
-Group:  Development/Libraries/Python
 URL:https://github.com/erocarrera/pydot
 Source: 
https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
 # https://github.com/pydot/pydot/issues/204
@@ -36,8 +35,10 @@
 BuildRequires:  graphviz-gd
 BuildRequires:  python-rpm-macros
 Requires:   graphviz
+Requires:   graphviz-gd
 Requires:   python-pyparsing >= 2.1.4
-Recommends: graphviz-gd
+# we need at least some fonts
+Requires:   dejavu-fonts
 BuildArch:  noarch
 %python_subpackages
 




commit python-pydot for openSUSE:Factory

2019-04-08 Thread root
Hello community,

here is the log from the commit of package python-pydot for openSUSE:Factory 
checked in at 2019-04-08 10:32:21

Comparing /work/SRC/openSUSE:Factory/python-pydot (Old)
 and  /work/SRC/openSUSE:Factory/.python-pydot.new.3908 (New)


Package is "python-pydot"

Mon Apr  8 10:32:21 2019 rev:8 rq:691521 version:1.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pydot/python-pydot.changes
2018-12-24 11:46:24.713185461 +0100
+++ /work/SRC/openSUSE:Factory/.python-pydot.new.3908/python-pydot.changes  
2019-04-08 10:32:27.511268002 +0200
@@ -1,0 +2,18 @@
+Thu Apr  4 12:58:15 UTC 2019 - Tomáš Chvátal 
+
+- Skip one failing test:
+  * pydot-skip-test.patch
+- Enable testsuite and add tests dependencies
+
+---
+Tue Apr  2 12:56:07 UTC 2019 - Colleen Murphy 
+
+- Update to 1.4.1:
+  * Make graph, edge, node attributes order deterministic
+  *  Fix string formatting after catching error (#201)
+  * Installation of pydot in conda env on Windows directly supported
+  * Fixed comparing of SHA hash in regression tests (which fail now)
+  * Dropped Python 2.6 support (#185)
+  * Move errno from os to builtin. Fixes #177 (#191, #182)
+
+---

Old:

  pydot-1.2.4.tar.gz

New:

  pydot-1.4.1.tar.gz
  pydot-skip-test.patch



Other differences:
--
++ python-pydot.spec ++
--- /var/tmp/diff_new_pack.btkXpb/_old  2019-04-08 10:32:28.723266461 +0200
+++ /var/tmp/diff_new_pack.btkXpb/_new  2019-04-08 10:32:28.727266455 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pydot
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,26 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pydot
-Version:1.2.4
+Version:1.4.1
 Release:0
 Summary:Module to create (dot) graphs from Python
 License:MIT
 Group:  Development/Libraries/Python
 URL:https://github.com/erocarrera/pydot
 Source: 
https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
+# https://github.com/pydot/pydot/issues/204
+Patch0: pydot-skip-test.patch
+BuildRequires:  %{python_module chardet}
 BuildRequires:  %{python_module pyparsing >= 2.1.4}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  ghostscript-fonts-std
+BuildRequires:  graphviz
+BuildRequires:  graphviz-gd
 BuildRequires:  python-rpm-macros
 Requires:   graphviz
 Requires:   python-pyparsing >= 2.1.4
+Recommends: graphviz-gd
 BuildArch:  noarch
 %python_subpackages
 
@@ -41,6 +48,7 @@
 
 %prep
 %setup -q -n pydot-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -49,6 +57,9 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python 
test/pydot_unittest.py --no-check
+
 %files %{python_files}
 %license LICENSE
 %doc README.md

++ pydot-1.2.4.tar.gz -> pydot-1.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pydot-1.2.4/ChangeLog new/pydot-1.4.1/ChangeLog
--- old/pydot-1.2.4/ChangeLog   2017-12-25 17:36:05.0 +0100
+++ new/pydot-1.4.1/ChangeLog   2018-12-12 21:59:45.0 +0100
@@ -1,7 +1,29 @@
 # `pydot` changelog
 
 
-## 1.2.4 (2017-12-25)
+1.4.1 (2018-12-12)
+--
+
+- Make graph, edge, node attributes order deterministic
+- Fix string formatting after catching error (#201)
+
+
+1.4.0 (2018-12-01)
+--
+
+- Installation of pydot in conda env on Windows directly supported
+- Fixed comparing of SHA hash in regression tests (which fail now)
+
+
+1.3.0 (2018-11-19)
+--
+
+- Dropped Python 2.6 support (#185)
+- Move errno from os to builtin. Fixes #177 (#191, #182)
+
+
+1.2.4 (2017-12-25)
+--
 
 - ENH: propagate `LD_LIBRARY_PATH` when calling GraphViz
 - API: raise `OSError` when a GraphViz executable is not found
@@ -12,14 +34,16 @@
 - API: never ignore `src, dst`, overwrite if `points` defined in `obj_dict`
 
 
-## 1.2.3 (2016-10-06)
+1.2.3 (2016-10-06)
+--
 
 - support Python 2.6
 - several corrections
 - quote empty strings to avoid graphviz errors
 
 
-## 1.2.0 (2016-07-01)
+1.2.0 (2016-07-01)
+--
 
 - support Python 3
 - bumped dependency to `pyparsing >= 2.1.4`
@@ -61,7 +85,8 @@
 - rm attribute `pydot.Dot.pr

commit python-pydot for openSUSE:Factory

2018-12-24 Thread root
Hello community,

here is the log from the commit of package python-pydot for openSUSE:Factory 
checked in at 2018-12-24 11:46:23

Comparing /work/SRC/openSUSE:Factory/python-pydot (Old)
 and  /work/SRC/openSUSE:Factory/.python-pydot.new.28833 (New)


Package is "python-pydot"

Mon Dec 24 11:46:23 2018 rev:7 rq:659831 version:1.2.4

Changes:

--- /work/SRC/openSUSE:Factory/python-pydot/python-pydot.changes
2018-01-09 14:53:29.174977890 +0100
+++ /work/SRC/openSUSE:Factory/.python-pydot.new.28833/python-pydot.changes 
2018-12-24 11:46:24.713185461 +0100
@@ -1,0 +2,11 @@
+Tue Dec 18 23:56:25 UTC 2018 - Jan Engelhardt 
+
+- Use noun phrase in summary. Grammar adjustments for the
+  description.
+
+---
+Tue Dec  4 12:52:08 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-pydot.spec ++
--- /var/tmp/diff_new_pack.ArTz99/_old  2018-12-24 11:46:25.269184973 +0100
+++ /var/tmp/diff_new_pack.ArTz99/_new  2018-12-24 11:46:25.273184969 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -20,13 +20,11 @@
 Name:   python-pydot
 Version:1.2.4
 Release:0
-Url:https://github.com/erocarrera/pydot
-Summary:Create (dot) graphs from python
+Summary:Module to create (dot) graphs from Python
 License:MIT
 Group:  Development/Libraries/Python
+URL:https://github.com/erocarrera/pydot
 Source: 
https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pyparsing >= 2.1.4}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -37,8 +35,9 @@
 %python_subpackages
 
 %description
-pydot allows to easily create both directed and non directed graphs from 
Python. 
-Currently all attributes implemented in the Dot language are supported (up to 
Graphviz 2.16).
+pydot allows to create both directed and non-directed graphs from
+Python. All attributes implemented in the Dot language up to Graphviz
+2.16 are supported.
 
 %prep
 %setup -q -n pydot-%{version}
@@ -51,8 +50,8 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc README.md LICENSE
+%license LICENSE
+%doc README.md
 %{python_sitelib}/dot_parser.py*
 %{python_sitelib}/pydot.py*
 %pycache_only %{python_sitelib}/__pycache__/dot_parser.*.py*




commit python-pydot for openSUSE:Factory

2018-01-09 Thread root
Hello community,

here is the log from the commit of package python-pydot for openSUSE:Factory 
checked in at 2018-01-09 14:53:27

Comparing /work/SRC/openSUSE:Factory/python-pydot (Old)
 and  /work/SRC/openSUSE:Factory/.python-pydot.new (New)


Package is "python-pydot"

Tue Jan  9 14:53:27 2018 rev:6 rq:562297 version:1.2.4

Changes:

--- /work/SRC/openSUSE:Factory/python-pydot/python-pydot.changes
2017-05-03 15:54:36.294124034 +0200
+++ /work/SRC/openSUSE:Factory/.python-pydot.new/python-pydot.changes   
2018-01-09 14:53:29.174977890 +0100
@@ -1,0 +2,17 @@
+Sat Jan  6 17:20:02 UTC 2018 - a...@gmx.de
+
+- specfile:
+  * update copyright year
+
+- update to version 1.2.4:
+  * ENH: propagate `LD_LIBRARY_PATH` when calling GraphViz
+  * API: raise `OSError` when a GraphViz executable is not found
+  * API: add method `__str__` to classes `Node, Edge, Graph`
+  * API: add arg `encoding` to `Dot` methods `create, write`
+  * API: quote cluster names when necessary
+  * API: give source and destination nodes as separate args to
+`Edge.__init__`
+  * API: never ignore `src, dst`, overwrite if `points` defined in
+`obj_dict`
+
+---

Old:

  pydot-1.2.3.tar.gz

New:

  pydot-1.2.4.tar.gz



Other differences:
--
++ python-pydot.spec ++
--- /var/tmp/diff_new_pack.4iYAWX/_old  2018-01-09 14:53:30.066936076 +0100
+++ /var/tmp/diff_new_pack.4iYAWX/_new  2018-01-09 14:53:30.070935889 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pydot
 #
-# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pydot
-Version:1.2.3
+Version:1.2.4
 Release:0
 Url:https://github.com/erocarrera/pydot
 Summary:Create (dot) graphs from python
@@ -26,11 +26,11 @@
 Group:  Development/Libraries/Python
 Source: 
https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module pyparsing >= 2.1.4}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 Requires:   graphviz
 Requires:   python-pyparsing >= 2.1.4
 BuildArch:  noarch

++ pydot-1.2.3.tar.gz -> pydot-1.2.4.tar.gz ++
 17839 lines of diff (skipped)




commit python-pydot for openSUSE:Factory

2017-05-03 Thread root
Hello community,

here is the log from the commit of package python-pydot for openSUSE:Factory 
checked in at 2017-05-03 15:54:32

Comparing /work/SRC/openSUSE:Factory/python-pydot (Old)
 and  /work/SRC/openSUSE:Factory/.python-pydot.new (New)


Package is "python-pydot"

Wed May  3 15:54:32 2017 rev:5 rq:489386 version:1.2.3

Changes:

--- /work/SRC/openSUSE:Factory/python-pydot/python-pydot.changes
2016-11-05 21:25:27.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-pydot.new/python-pydot.changes   
2017-05-03 15:54:36.294124034 +0200
@@ -1,0 +2,5 @@
+Wed Apr 19 16:15:07 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version.
+
+---



Other differences:
--
++ python-pydot.spec ++
--- /var/tmp/diff_new_pack.9J3Yyo/_old  2017-05-03 15:54:38.069873342 +0200
+++ /var/tmp/diff_new_pack.9J3Yyo/_new  2017-05-03 15:54:38.073872778 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pydot
 #
-# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pydot
 Version:1.2.3
 Release:0
@@ -25,12 +26,15 @@
 Group:  Development/Libraries/Python
 Source: 
https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-pyparsing >= 2.1.4
-BuildRequires:  python-setuptools
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module pyparsing >= 2.1.4}
 Requires:   graphviz
 Requires:   python-pyparsing >= 2.1.4
 BuildArch:  noarch
+%python_subpackages
 
 %description
 pydot allows to easily create both directed and non directed graphs from 
Python. 
@@ -40,16 +44,19 @@
 %setup -q -n pydot-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc README.md LICENSE
 %{python_sitelib}/dot_parser.py*
 %{python_sitelib}/pydot.py*
+%pycache_only %{python_sitelib}/__pycache__/dot_parser.*.py*
+%pycache_only %{python_sitelib}/__pycache__/pydot.*.py*
 %{python_sitelib}/pydot-%{version}-py*.egg-info
 
 %changelog




commit python-pydot for openSUSE:Factory

2016-11-05 Thread h_root
Hello community,

here is the log from the commit of package python-pydot for openSUSE:Factory 
checked in at 2016-11-05 21:25:14

Comparing /work/SRC/openSUSE:Factory/python-pydot (Old)
 and  /work/SRC/openSUSE:Factory/.python-pydot.new (New)


Package is "python-pydot"

Changes:

--- /work/SRC/openSUSE:Factory/python-pydot/python-pydot.changes
2014-05-21 16:23:19.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pydot.new/python-pydot.changes   
2016-11-05 21:25:27.0 +0100
@@ -1,0 +2,58 @@
+Tue Nov  1 20:19:09 UTC 2016 - toddrme2...@gmail.com
+
+- Update source url
+- Remove some obsolete parts of the spec file
+
+---
+Tue Nov  1 19:38:17 UTC 2016 - toddrme2...@gmail.com
+
+- Update to 1.2.3
+  - support Python 2.6
+  - several corrections
+  - quote empty strings to avoid graphviz errors
+- Update to 1.2.0
+  - support Python 3
+  - bumped dependency to `pyparsing >= 2.1.4`
+  - tests running on Travis CI
+  - tests require `chardet`
+  - detect character encoding for most test files
+using the package `chardet`
+  - API:
++ on all operating systems, search GraphViz
+  executables in environment `$PATH`,
+  using `subprocess.Popen`.
+  No paths hard-coded due to security and privacy issues.
++ add option to pass GraphViz executable name
+  or absolute path as `prog` to `pydot.Dot.write_*` methods.
+  This provides an alternative to
+  adding GraphViz to the `$PATH`.
++ the functions:
+  * `pydot.graph_from_dot_data`
+  * `pydot.graph_from_dot_file`
+  * `dot_parser.parse_dot_data`
+  changed to always return a `list` of graphs,
+  instead of behaving differently for singletons.
++ require that the user explicitly give an encoding to
+  the function `pydot.graph_from_dot_file`,
+  with default encoding same as `io.open`.
++ decode to unicode at program boundaries, and
+  treat binary images as bytes,
+  for more compatibility with python 3.
+  Use `io.open`, instead of the built-in `open`.
++ rm function `pydot.set_graphviz_executables`
++ rm attribute `pydot.Dot.progs`
+- Update to 1.1.0
+  - compatibility with `pyparsing >= 1.5.7`
+  - API:
++ `pydot.Graph.to_string`: hide `subgraph` keyword only if so requested
++ produce `warnings.warn` if `pydot.dot_parser` fails to import,
+  instead of `print`
+- Update to 1.0.29
+  - Maintenance release that keeps the same API
+  - pin `pyparsing == 1.5.7`
+  - update version number in source code
+  - update `setup.py`
+- Remove unneeded python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch
+- Remove out-of-date example files
+
+---

Old:

  example-demo.py
  example-rank.py
  pydot-1.0.28.tar.gz
  python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch

New:

  pydot-1.2.3.tar.gz



Other differences:
--
++ python-pydot.spec ++
--- /var/tmp/diff_new_pack.0uI7hG/_old  2016-11-05 21:25:30.0 +0100
+++ /var/tmp/diff_new_pack.0uI7hG/_new  2016-11-05 21:25:30.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pydot
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,54 +16,40 @@
 #
 
 
-%define modname pydot
-Name:   python-%{modname}
-Version:1.0.28
+Name:   python-pydot
+Version:1.2.3
 Release:0
-Url:http://code.google.com/p/pydot
+Url:https://github.com/erocarrera/pydot
 Summary:Create (dot) graphs from python
 License:MIT
 Group:  Development/Libraries/Python
-Source: 
http://%{modname}.googlecode.com/files/%{modname}-%{version}.tar.gz
-Source1:example-demo.py
-Source2:example-rank.py
-Patch0: %{name}-1.0.28_fix_pyparser_2_incompatibility.patch
+Source: 
https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
-Requires:   python-pyparsing
+BuildRequires:  python-pyparsing >= 2.1.4
+BuildRequires:  python-setuptools
 Requires:   graphviz
-%if 0%{?suse_version} <= 1110
-%{!?python_sitelib:  %global python_sitelib  %(python -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%else
+Requires:   python-pyparsing >= 2.1.4
 BuildArch:  noarch
-%py_requires
-%endif
 
 %description
 pydot allows to easily create both dir

commit python-pydot for openSUSE:Factory

2014-05-21 Thread h_root
Hello community,

here is the log from the commit of package python-pydot for openSUSE:Factory 
checked in at 2014-05-21 16:23:17

Comparing /work/SRC/openSUSE:Factory/python-pydot (Old)
 and  /work/SRC/openSUSE:Factory/.python-pydot.new (New)


Package is "python-pydot"

Changes:

--- /work/SRC/openSUSE:Factory/python-pydot/python-pydot.changes
2014-03-30 12:25:57.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pydot.new/python-pydot.changes   
2014-05-21 16:23:19.0 +0200
@@ -1,0 +2,6 @@
+Sat May  3 14:00:00 UTC 2014 - and...@opensuse.org
+
+- added python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch to fix
+  incompatibility when using pydot with pyparser 2
+  
+---

New:

  python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch



Other differences:
--
++ python-pydot.spec ++
--- /var/tmp/diff_new_pack.ntbYt4/_old  2014-05-21 16:23:20.0 +0200
+++ /var/tmp/diff_new_pack.ntbYt4/_new  2014-05-21 16:23:20.0 +0200
@@ -1,7 +1,7 @@
 #
 # 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
 # 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
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
-#
+
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %define modname pydot
 Name:   python-%{modname}
 Version:1.0.28
@@ -26,6 +27,7 @@
 Source: 
http://%{modname}.googlecode.com/files/%{modname}-%{version}.tar.gz
 Source1:example-demo.py
 Source2:example-rank.py
+Patch0: %{name}-1.0.28_fix_pyparser_2_incompatibility.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 Requires:   python-pyparsing
@@ -43,6 +45,7 @@
 
 %prep
 %setup -q -n %{modname}-%{version}
+%patch0 -p1
 mkdir examples && cp %{SOURCE1} %{SOURCE2} examples
 
 %build

++ python-pydot-1.0.28_fix_pyparser_2_incompatibility.patch ++
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:
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org