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