964fb7a
%{?python_enable_dependency_generator}
c8c3f43
%global modname pydotplus
c8c3f43
c8c3f43
Name:           python-%{modname}
c8c3f43
Version:        2.0.2
b524cc1
Release:        28%{?dist}
c8c3f43
Summary:        Python interface to Graphviz's Dot language
c8c3f43
c8c3f43
License:        MIT
c8c3f43
URL:            https://pypi.python.org/pypi/%{modname}
c8c3f43
Source0:        https://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
c8c3f43
c8c3f43
BuildArch:      noarch
c8c3f43
BuildRequires:  graphviz
c8c3f43
c8c3f43
%description
c8c3f43
PyDotPlus is an improved version of the old pydot project that provides a
c8c3f43
Python Interface to Graphviz's Dot language.
c8c3f43
c8c3f43
%package -n python3-%{modname}
c8c3f43
Summary:        %{summary}
c8c3f43
%{?python_provide:%python_provide python3-%{modname}}
07fc3ca
BuildRequires:  python3-devel
07fc3ca
BuildRequires:  python3-setuptools
964fb7a
BuildRequires:  python3dist(pyparsing) >= 2.0.1
c8c3f43
Requires:       graphviz
c8c3f43
c8c3f43
%description -n python3-%{modname}
c8c3f43
PyDotPlus is an improved version of the old pydot project that provides a
c8c3f43
Python Interface to Graphviz's Dot language.
c8c3f43
c8c3f43
Python 3 version.
c8c3f43
c8c3f43
%prep
c8c3f43
%autosetup -n %{modname}-%{version}
c8c3f43
c8c3f43
rm -rf lib/*.egg-info
c8c3f43
c8c3f43
%build
c8c3f43
%py3_build
c8c3f43
c8c3f43
%install
c8c3f43
%py3_install
c8c3f43
c8c3f43
%check
c8c3f43
# https://github.com/carlos-jenkins/pydotplus/issues/2
c8c3f43
pushd test
c8c3f43
  PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} pydot_unittest.py -v || :
c8c3f43
popd
c8c3f43
c8c3f43
%files -n python3-%{modname}
c8c3f43
%license LICENSE
c8c3f43
%doc README.rst
c8c3f43
%{python3_sitelib}/%{modname}*
c8c3f43
c8c3f43
%changelog
b524cc1
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-28
b524cc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
b524cc1
701ac2a
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.0.2-27
701ac2a
- Rebuilt for Python 3.12
701ac2a
34de675
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-26
34de675
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
34de675
491861c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-25
491861c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
491861c
aa62ad8
* Tue Jul 19 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.2-24
aa62ad8
- Rebuilt for pyparsing-3.0.9
aa62ad8
bb943eb
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.2-23
bb943eb
- Rebuilt for Python 3.11
bb943eb
d1bd2a6
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-22
d1bd2a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d1bd2a6
54990f4
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-21
54990f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
54990f4
8c9084b
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.2-20
8c9084b
- Rebuilt for Python 3.10
8c9084b
1f3bc2c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-19
1f3bc2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1f3bc2c
8ee4f29
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-18
8ee4f29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8ee4f29
70aca19
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-17
70aca19
- Rebuilt for Python 3.9
70aca19
1c74dff
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-16
1c74dff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1c74dff
40bf5c9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-15
40bf5c9
- Rebuilt for Python 3.8.0rc1 (#1748018)
40bf5c9
9dc11fb
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-14
9dc11fb
- Rebuilt for Python 3.8
9dc11fb
49c9e12
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-13
49c9e12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
49c9e12
5d047a2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-12
5d047a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5d047a2
964fb7a
* Wed Jan 02 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.2-11
964fb7a
- Enable python dependency generator
964fb7a
07fc3ca
* Wed Jan 02 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-10
07fc3ca
- Subpackage python2-pydotplus has been removed
07fc3ca
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
07fc3ca
7d827de
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-9
7d827de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7d827de
1d3f63e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-8
1d3f63e
- Rebuilt for Python 3.7
1d3f63e
95e9207
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-7
95e9207
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
95e9207
4bf9dc4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-6
4bf9dc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4bf9dc4
3e3ff61
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
3e3ff61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3e3ff61
8840ce1
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-4
8840ce1
- Rebuild for Python 3.6
8840ce1
3c6eeff
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
3c6eeff
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
3c6eeff
2b2c129
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
2b2c129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2b2c129
c8c3f43
* Sun Dec 06 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-1
c8c3f43
- Initial package