2011-06-02 09:46:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pydot
|
|
|
|
#
|
2019-04-04 12:38:55 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-06-02 09:46:46 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# 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.
|
2014-05-19 11:47:52 +00:00
|
|
|
|
2018-12-04 13:50:33 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-02 09:46:46 +00:00
|
|
|
#
|
2011-02-18 11:38:46 +00:00
|
|
|
|
2014-05-19 11:47:52 +00:00
|
|
|
|
2017-04-19 16:16:06 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-11-01 20:03:22 +00:00
|
|
|
Name: python-pydot
|
2019-04-04 12:38:55 +00:00
|
|
|
Version: 1.4.1
|
2011-06-02 09:46:46 +00:00
|
|
|
Release: 0
|
2018-12-19 03:58:33 +00:00
|
|
|
Summary: Module to create (dot) graphs from Python
|
2011-02-18 11:38:46 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Python
|
2018-12-04 17:19:10 +00:00
|
|
|
URL: https://github.com/erocarrera/pydot
|
2016-11-01 20:03:22 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pydot/pydot-%{version}.tar.gz
|
2019-04-04 12:59:37 +00:00
|
|
|
# https://github.com/pydot/pydot/issues/204
|
|
|
|
Patch0: pydot-skip-test.patch
|
|
|
|
BuildRequires: %{python_module chardet}
|
2017-04-19 16:16:06 +00:00
|
|
|
BuildRequires: %{python_module pyparsing >= 2.1.4}
|
2018-01-07 09:36:51 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2019-04-04 12:59:37 +00:00
|
|
|
BuildRequires: ghostscript-fonts-std
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: graphviz-gd
|
2018-01-07 09:36:51 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2011-06-02 09:46:46 +00:00
|
|
|
Requires: graphviz
|
2016-11-01 20:03:22 +00:00
|
|
|
Requires: python-pyparsing >= 2.1.4
|
2019-04-04 12:59:37 +00:00
|
|
|
Recommends: graphviz-gd
|
2011-06-02 09:46:46 +00:00
|
|
|
BuildArch: noarch
|
2017-04-19 16:16:06 +00:00
|
|
|
%python_subpackages
|
2011-02-18 11:38:46 +00:00
|
|
|
|
|
|
|
%description
|
2018-12-19 03:58:33 +00:00
|
|
|
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.
|
2011-02-18 11:38:46 +00:00
|
|
|
|
|
|
|
%prep
|
2016-11-01 20:03:22 +00:00
|
|
|
%setup -q -n pydot-%{version}
|
2019-04-04 12:59:37 +00:00
|
|
|
%patch0 -p1
|
2011-02-18 11:38:46 +00:00
|
|
|
|
|
|
|
%build
|
2017-04-19 16:16:06 +00:00
|
|
|
%python_build
|
2011-02-18 11:38:46 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-19 16:16:06 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-02-18 11:38:46 +00:00
|
|
|
|
2019-04-04 12:59:37 +00:00
|
|
|
%check
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test/pydot_unittest.py --no-check
|
|
|
|
|
2017-04-19 16:16:06 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:19:10 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2012-05-25 09:05:51 +00:00
|
|
|
%{python_sitelib}/dot_parser.py*
|
2016-11-01 20:03:22 +00:00
|
|
|
%{python_sitelib}/pydot.py*
|
2017-04-19 16:16:06 +00:00
|
|
|
%pycache_only %{python_sitelib}/__pycache__/dot_parser.*.py*
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/pydot.*.py*
|
2016-11-01 20:03:22 +00:00
|
|
|
%{python_sitelib}/pydot-%{version}-py*.egg-info
|
2011-02-18 11:38:46 +00:00
|
|
|
|
|
|
|
%changelog
|