forked from pool/python-pydotplus
Accepting request 494501 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/494501 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pydotplus?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 11 02:34:26 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement single-spec version.
|
||||||
|
- Fix source URL.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 25 09:23:18 UTC 2016 - tbechtold@suse.com
|
Mon Jul 25 09:23:18 UTC 2016 - tbechtold@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pydotplus
|
# spec file for package python-pydotplus
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,6 +15,9 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pydotplus
|
Name: python-pydotplus
|
||||||
Version: 2.0.2
|
Version: 2.0.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -22,13 +25,20 @@ License: MIT
|
|||||||
Summary: Python interface to Graphviz's Dot language
|
Summary: Python interface to Graphviz's Dot language
|
||||||
Url: http://pydotplus.readthedocs.org/
|
Url: http://pydotplus.readthedocs.org/
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: https://pypi.python.org/packages/source/p/pydotplus/pydotplus-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pydotplus/pydotplus-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-pyparsing >= 2.0.1
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module pyparsing >= 2.0.1}
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: graphviz
|
||||||
|
%endif
|
||||||
Requires: python-pyparsing >= 2.0.1
|
Requires: python-pyparsing >= 2.0.1
|
||||||
|
Requires: graphviz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PyDotPlus is an improved version of the old pydot project that provides a
|
PyDotPlus is an improved version of the old pydot project that provides a
|
||||||
@@ -38,12 +48,20 @@ Python Interface to Graphviz's Dot language.
|
|||||||
%setup -q -n pydotplus-%{version}
|
%setup -q -n pydotplus-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
%if %{with tests}
|
||||||
|
%check
|
||||||
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||||
|
$python test/pydot_unittest.py
|
||||||
|
}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
Reference in New Issue
Block a user