1
0
forked from pool/python-pydot3

Accepting request 507107 from devel:languages:python

- drop undefine for python2, this works fine for all pythons

OBS-URL: https://build.opensuse.org/request/show/507107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydot3?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-07-05 22:01:21 +00:00 committed by Git OBS Bridge
commit d7fca7000b
2 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -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