Hello community, here is the log from the commit of package python-pydotplus for openSUSE:Factory checked in at 2017-05-16 14:43:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pydotplus (Old) and /work/SRC/openSUSE:Factory/.python-pydotplus.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pydotplus" Tue May 16 14:43:39 2017 rev:2 rq:494501 version:2.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pydotplus/python-pydotplus.changes 2016-10-10 16:19:55.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pydotplus.new/python-pydotplus.changes 2017-05-16 14:44:45.090532735 +0200 @@ -1,0 +2,6 @@ +Thu May 11 02:34:26 UTC 2017 - [email protected] + +- Implement single-spec version. +- Fix source URL. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pydotplus.spec ++++++ --- /var/tmp/diff_new_pack.eZGBD3/_old 2017-05-16 14:44:45.642455185 +0200 +++ /var/tmp/diff_new_pack.eZGBD3/_new 2017-05-16 14:44:45.650454061 +0200 @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,9 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pydotplus Version: 2.0.2 Release: 0 @@ -22,13 +25,20 @@ Summary: Python interface to Graphviz's Dot language Url: http://pydotplus.readthedocs.org/ Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/p/pydotplus/pydotplus-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-pyparsing >= 2.0.1 +Source: https://files.pythonhosted.org/packages/source/p/pydotplus/pydotplus-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +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: graphviz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description PyDotPlus is an improved version of the old pydot project that provides a @@ -38,12 +48,20 @@ %setup -q -n pydotplus-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with tests} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python test/pydot_unittest.py +} +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst LICENSE %{python_sitelib}/*
