From 36f8a1620b790c03e699ce1de1d094c5d6ffb02d645cb9ebf897ba3c9f01a063 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Thu, 29 Jun 2017 15:17:09 +0000 Subject: [PATCH 1/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot3?expand=0&rev=4 --- python-pydot3.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python-pydot3.spec b/python-pydot3.spec index 2080d3e..cfc1346 100644 --- a/python-pydot3.spec +++ b/python-pydot3.spec @@ -1,5 +1,5 @@ # -# spec file for package python3-pydot3 +# spec file for package python-pydot3 # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 Dr. Axel Braun @@ -16,6 +16,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname pydot3 @@ -29,13 +30,12 @@ Url: https://pypi.python.org/pypi/pydot3 Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz Source1: example-demo.py Source2: example-rank.py -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: graphviz Requires: python-pyparsing BuildArch: noarch %python_subpackages -%undefine have_python2 %description pydot allows to easily create both directed and non directed graphs from Python. @@ -47,7 +47,7 @@ Currently all attributes implemented in the Dot language are supported (up to Gr mkdir examples && cp %{SOURCE1} %{SOURCE2} examples %build -%python_build +%python_build %install %python_install From caa1bdefa273d5b285e2e8235754d6d91da9e386cd29914d6fbf0a770888d8cf Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Thu, 29 Jun 2017 15:17:56 +0000 Subject: [PATCH 2/2] - drop undefine for python2, this works fine for all pythons OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydot3?expand=0&rev=5 --- python-pydot3.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-pydot3.changes b/python-pydot3.changes index 6fd7b42..c4ae340 100644 --- a/python-pydot3.changes +++ b/python-pydot3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 29 15:17:34 UTC 2017 - jmatejek@suse.com + +- drop undefine for python2, this works fine for all pythons + ------------------------------------------------------------------- Mon Apr 24 14:27:43 UTC 2017 - axel.braun@gmx.de