diff --git a/.gitignore b/.gitignore index e69de29..5497dcf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pydotplus-2.0.2.tar.gz diff --git a/python-pydotplus.spec b/python-pydotplus.spec new file mode 100644 index 0000000..7fcd31e --- /dev/null +++ b/python-pydotplus.spec @@ -0,0 +1,79 @@ +%global modname pydotplus + +Name: python-%{modname} +Version: 2.0.2 +Release: 1%{?dist} +Summary: Python interface to Graphviz's Dot language + +License: MIT +URL: https://pypi.python.org/pypi/%{modname} +Source0: https://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.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-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{modname}} +BuildRequires: python2-devel python2-setuptools +BuildRequires: pyparsing +Requires: pyparsing +Requires: graphviz + +%description -n python2-%{modname} +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-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-pyparsing +Requires: python3-pyparsing +Requires: graphviz + +%description -n python3-%{modname} +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 %{modname}-%{version} + +rm -rf lib/*.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +# https://github.com/carlos-jenkins/pydotplus/issues/2 +pushd test + PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} pydot_unittest.py -v || : + PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} pydot_unittest.py -v || : +popd + +%files -n python2-%{modname} +%license LICENSE +%doc README.rst +%{python2_sitelib}/%{modname}* + +%files -n python3-%{modname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{modname}* + +%changelog +* Sun Dec 06 2015 Igor Gnatenko - 2.0.2-1 +- Initial package diff --git a/sources b/sources index e69de29..c183636 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0e2fc3dbdfd846819d4cd3769cb4595b pydotplus-2.0.2.tar.gz