964fb7
%{?python_enable_dependency_generator}
c8c3f4
%global modname pydotplus
c8c3f4
c8c3f4
Name:           python-%{modname}
c8c3f4
Version:        2.0.2
40bf5c
Release:        15%{?dist}
c8c3f4
Summary:        Python interface to Graphviz's Dot language
c8c3f4
c8c3f4
License:        MIT
c8c3f4
URL:            https://pypi.python.org/pypi/%{modname}
c8c3f4
Source0:        https://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
c8c3f4
c8c3f4
BuildArch:      noarch
c8c3f4
BuildRequires:  graphviz
c8c3f4
c8c3f4
%description
c8c3f4
PyDotPlus is an improved version of the old pydot project that provides a
c8c3f4
Python Interface to Graphviz's Dot language.
c8c3f4
c8c3f4
%package -n python3-%{modname}
c8c3f4
Summary:        %{summary}
c8c3f4
%{?python_provide:%python_provide python3-%{modname}}
07fc3c
BuildRequires:  python3-devel
07fc3c
BuildRequires:  python3-setuptools
964fb7
BuildRequires:  python3dist(pyparsing) >= 2.0.1
c8c3f4
Requires:       graphviz
c8c3f4
c8c3f4
%description -n python3-%{modname}
c8c3f4
PyDotPlus is an improved version of the old pydot project that provides a
c8c3f4
Python Interface to Graphviz's Dot language.
c8c3f4
c8c3f4
Python 3 version.
c8c3f4
c8c3f4
%prep
c8c3f4
%autosetup -n %{modname}-%{version}
c8c3f4
c8c3f4
rm -rf lib/*.egg-info
c8c3f4
c8c3f4
%build
c8c3f4
%py3_build
c8c3f4
c8c3f4
%install
c8c3f4
%py3_install
c8c3f4
c8c3f4
%check
c8c3f4
# https://github.com/carlos-jenkins/pydotplus/issues/2
c8c3f4
pushd test
c8c3f4
  PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} pydot_unittest.py -v || :
c8c3f4
popd
c8c3f4
c8c3f4
%files -n python3-%{modname}
c8c3f4
%license LICENSE
c8c3f4
%doc README.rst
c8c3f4
%{python3_sitelib}/%{modname}*
c8c3f4
c8c3f4
%changelog
40bf5c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-15
40bf5c
- Rebuilt for Python 3.8.0rc1 (#1748018)
40bf5c
9dc11f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-14
9dc11f
- Rebuilt for Python 3.8
9dc11f
49c9e1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-13
49c9e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
49c9e1
5d047a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-12
5d047a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5d047a
964fb7
* Wed Jan 02 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.2-11
964fb7
- Enable python dependency generator
964fb7
07fc3c
* Wed Jan 02 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-10
07fc3c
- Subpackage python2-pydotplus has been removed
07fc3c
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
07fc3c
7d827d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-9
7d827d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7d827d
1d3f63
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-8
1d3f63
- Rebuilt for Python 3.7
1d3f63
95e920
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-7
95e920
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
95e920
4bf9dc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-6
4bf9dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4bf9dc
3e3ff6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
3e3ff6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3e3ff6
8840ce
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-4
8840ce
- Rebuild for Python 3.6
8840ce
3c6eef
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
3c6eef
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
3c6eef
2b2c12
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
2b2c12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2b2c12
c8c3f4
* Sun Dec 06 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-1
c8c3f4
- Initial package