diff --git a/pydotplus-2.0.2.tar.gz b/pydotplus-2.0.2.tar.gz new file mode 100644 index 0000000..fd868aa Binary files /dev/null and b/pydotplus-2.0.2.tar.gz differ diff --git a/python-pydotplus.spec b/python-pydotplus.spec new file mode 100644 index 0000000..17c869c --- /dev/null +++ b/python-pydotplus.spec @@ -0,0 +1,69 @@ +Name: python-pydotplus +Version: 2.0.2 +Release: 10 +Summary: Python interface to Graphviz's Dot language +License: MIT +URL: https://pypi.python.org/pypi/pydotplus +Source0: https://pypi.python.org/packages/source/p/pydotplus/pydotplus-2.0.2.tar.gz + +BuildArch: noarch +BuildRequires: graphviz + +%description +PyDotPlus is an improved version of the old pydot project that +provides a Python Interface to Graphviz's Dot language. + +%package -n python2-pydotplus +Summary: Python interface to Graphviz's Dot language +%{?python_provide:%python_provide python2-pydotplus} +BuildRequires: python2-devel python2-setuptools +BuildRequires: pyparsing +Requires: pyparsing +Requires: graphviz + +%description -n python2-pydotplus +PyDotPlus is an improved version of the old pydot project that +provides a Python Interface to Graphviz's Dot language. + +Python 2 version. + +%package -n python3-pydotplus +Summary: Python interface to Graphviz's Dot language +%{?python_provide:%python_provide python3-pydotplus} +BuildRequires: python3-devel python3-setuptools python3-pyparsing +Requires: python3-pyparsing graphviz + +%description -n python3-pydotplus +PyDotPlus is an improved version of the old pydot project that +provides a Python Interface to Graphviz's Dot language. + +Python 3 version. + +%prep +%autosetup -n pydotplus-%{version} -p1 +rm -rf lib/*.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +cd test + PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} pydot_unittest.py -v || : + PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} pydot_unittest.py -v || : + +%files -n python2-pydotplus +%doc README.rst LICENSE +%{python2_sitelib}/pydotplus* + +%files -n python3-pydotplus +%doc README.rst LICENSE +%{python3_sitelib}/pydotplus* + +%changelog +* Tue Mar 10 2020 zhangtao - 2.0.2-10 +- package init