Björn Esser 76f2a5c
%if 0%{?fedora} || 0%{?rhel} >= 8
Björn Esser 76f2a5c
%bcond_without python3
Björn Esser 76f2a5c
%global py2pkg_suffix 2
Björn Esser 76f2a5c
%else  # 0#{?fedora} || 0#{?rhel} >= 8
Björn Esser 76f2a5c
%bcond_with python3
Björn Esser 76f2a5c
%endif # 0#{?fedora} || 0#{?rhel} >= 8
Björn Esser 76f2a5c
Björn Esser 76f2a5c
%global common_desc								\
Björn Esser 76f2a5c
An interface for creating both directed and non directed graphs from Python.	\
Björn Esser 76f2a5c
Currently all attributes implemented in the Dot language are supported (up	\
Björn Esser 76f2a5c
to Graphviz 2.16).								\
Björn Esser 76f2a5c
										\
Björn Esser 76f2a5c
Output can be inlined in Postscript into interactive scientific environments	\
Björn Esser 76f2a5c
like TeXmacs, or output in any of the format's supported by the Graphviz	\
Björn Esser 76f2a5c
tools dot, neato, twopi.
Björn Esser 76f2a5c
Björn Esser 76f2a5c
d8f2c2e
Name:		pydot
d4e6be5
Version:	1.0.28
ecf5094
Release:	17%{?dist}
d8f2c2e
Summary:	Python interface to Graphviz's Dot language
Björn Esser 76f2a5c
Björn Esser 76f2a5c
License:	MIT
fc7de15
URL:		http://code.google.com/p/pydot/
fc7de15
Source0:	http://pydot.googlecode.com/files/pydot-%{version}.tar.gz
Björn Esser 76f2a5c
Björn Esser 76f2a5c
%if %{with python3}
baa3b34
Patch0:		https://anonscm.debian.org/cgit/python-modules/packages/pydot.git/plain/debian/patches/0002-support-python3.patch
Björn Esser 76f2a5c
%endif with python3
Björn Esser 76f2a5c
d8f2c2e
BuildArch:	noarch
d8f2c2e
d8f2c2e
%description
Björn Esser 76f2a5c
%{common_desc}
d8f2c2e
d8f2c2e
8edcd4a
%package -n python2-pydot
8edcd4a
Summary:	Python2 interface to Graphviz's Dot language
Björn Esser 76f2a5c
Björn Esser 76f2a5c
BuildRequires:	pyparsing
Björn Esser 76f2a5c
BuildRequires:	python%{?py2pkg_suffix}-devel
Björn Esser 76f2a5c
BuildRequires:	python%{?py2pkg_suffix}-setuptools
Björn Esser 76f2a5c
Björn Esser 76f2a5c
Requires:	graphviz
Björn Esser 76f2a5c
Requires:	pyparsing
Björn Esser 76f2a5c
8edcd4a
%{?python_provide:%python_provide python2-pydot}
Björn Esser 76f2a5c
4c2a80e
Obsoletes:	pydot < %{version}-%{release}
8edcd4a
8edcd4a
%description -n python2-pydot
Björn Esser 76f2a5c
%{common_desc}
8edcd4a
8edcd4a
Björn Esser 76f2a5c
%if %{with python3}
8edcd4a
%package -n python3-pydot
8edcd4a
Summary:	Python3 interface to Graphviz's Dot language
Björn Esser 76f2a5c
Björn Esser 76f2a5c
BuildRequires:	python3-devel
Björn Esser 76f2a5c
BuildRequires:	python3-pyparsing
Björn Esser 76f2a5c
BuildRequires:	python3-setuptools
Björn Esser 76f2a5c
Björn Esser 76f2a5c
Requires:	graphviz
Björn Esser 76f2a5c
Requires:	python3-pyparsing
Björn Esser 76f2a5c
8edcd4a
Provides:	pydot = %{version}-%{release}
8edcd4a
%{?python_provide:%python_provide python3-pydot}
8edcd4a
8edcd4a
%description -n python3-pydot
Björn Esser 76f2a5c
%{common_desc}
Björn Esser 76f2a5c
%endif with python3
8edcd4a
8edcd4a
d8f2c2e
%prep
d8f2c2e
%setup -q
Björn Esser 76f2a5c
%if %{with python3}
baa3b34
%patch0 -p1 -b .python3
Björn Esser 76f2a5c
%endif with python3
Björn Esser 76f2a5c
d8f2c2e
d8f2c2e
%build
8edcd4a
%py2_build
Björn Esser 76f2a5c
%if %{with python3}
8edcd4a
%py3_build
Björn Esser 76f2a5c
%endif with python3
Björn Esser 76f2a5c
d8f2c2e
d8f2c2e
%install
8edcd4a
# Must do the python2 install first because the scripts in /usr/bin are
8edcd4a
# overwritten with every setup.py install, and in general we want the
8edcd4a
# python3 version to be the default.
8edcd4a
%py2_install
Björn Esser 76f2a5c
%if %{with python3}
8edcd4a
%py3_install
Björn Esser 76f2a5c
%endif with python3
d8f2c2e
fc7de15
# Why would you do this? :/
a6f8c3b
rm -rf $RPM_BUILD_ROOT%{_prefix}/LICENSE $RPM_BUILD_ROOT%{_prefix}/README
fc7de15
Björn Esser 76f2a5c
8edcd4a
%files -n python2-pydot
8edcd4a
%doc PKG-INFO README
8edcd4a
%license LICENSE
8edcd4a
%{python2_sitelib}/*
8edcd4a
Björn Esser 76f2a5c
%if %{with python3}
8edcd4a
%files -n python3-pydot
8edcd4a
%doc PKG-INFO README
8edcd4a
%license LICENSE
8edcd4a
%{python3_sitelib}/*
Björn Esser 76f2a5c
%endif with python3
Björn Esser 76f2a5c
d8f2c2e
d8f2c2e
%changelog
ecf5094
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.28-17
ecf5094
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ecf5094
83a457f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.28-16
83a457f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
83a457f
e27bdfe
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.28-15
e27bdfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e27bdfe
9fcd4e9
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.28-14
9fcd4e9
- Rebuild for Python 3.6
9fcd4e9
Björn Esser 76f2a5c
* Mon Oct 17 2016 Björn Esser <fedora@besser82.io> - 1.0.28-13
Björn Esser 76f2a5c
- Drop obsolete stuff
Björn Esser 76f2a5c
- Move %%description to a common macro
Björn Esser 76f2a5c
- Add conditionals to build on epel
Björn Esser 76f2a5c
- Clean trailing whitespaces
Björn Esser 76f2a5c
2fa2126
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-12
2fa2126
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2fa2126
baa3b34
* Fri Apr 15 2016 Tom Callaway <spot@fedoraproject.org> - 1.0.28-11
baa3b34
- use debian's python3 fix (tested against bz1312815)
baa3b34
4c2a80e
* Fri Apr  8 2016 Tom Callaway <spot@fedoraproject.org> - 1.0.28-10
4c2a80e
- properly obsolete old "pydot" packages (bz1323980)
4c2a80e
8111a9c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.28-9
8111a9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8111a9c
8edcd4a
* Tue Jan 19 2016 Tom Callaway <spot@fedoraproject.org> - 1.0.28-8
8edcd4a
- python 3 support
8edcd4a
be7852a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-7
be7852a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
be7852a
41578fc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-6
41578fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
41578fc
66b0c70
* Mon Dec  9 2013 Tom Callaway <spot@fedoraproject.org> - 1.0.28-5
66b0c70
- fix for pyparsing2
66b0c70
ad83168
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-4
ad83168
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ad83168
3b2f25e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-3
3b2f25e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3b2f25e
996835f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.28-2
996835f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
996835f
d4e6be5
* Fri Mar  2 2012 Tom Callaway <spot@fedoraproject.org> - 1.0.28-1
d4e6be5
- update to 1.0.28
d4e6be5
9085c73
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-3
9085c73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9085c73
5335cbd
* Tue Oct 11 2011 Tom Callaway <spot@fedoraproject.org> - 1.0.25-2
5335cbd
- apply fix for pebl relating to catching AttributeError, thanks to Thomas Spura
5335cbd
cf2bd33
* Thu Apr 21 2011 Tom Callaway <spot@fedoraproject.org> - 1.0.25-1
cf2bd33
- update to 1.0.25
cf2bd33
4ee6a49
* Thu Mar  3 2011 Tom Callaway <spot@fedoraproject.org> - 1.0.23-1
4ee6a49
- update to 1.0.23
4ee6a49
25c3b84
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
25c3b84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
25c3b84
05a4c07
* Tue Jan  4 2011 Tom Callaway <spot@fedoraproject.org> - 1.0.4-1
05a4c07
- update to 1.0.4
05a4c07
a6f8c3b
* Wed Nov  3 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.3-1
a6f8c3b
- update to 1.0.3
a6f8c3b
64e2c06
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.2-7
64e2c06
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
64e2c06
dfc32ae
* Fri Jul 31 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.2-6
dfc32ae
- somehow, the egg info didn't make it into the rebuild...
dfc32ae
b470df2
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
b470df2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b470df2
ddc8e99
* Mon Jul  6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.2-4
ddc8e99
- fix pydot crash with accented character (bugzilla 481540)
ddc8e99
6f9e593
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
6f9e593
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6f9e593
48615bf
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.2-2
48615bf
- Rebuild for Python 2.6
48615bf
fc7de15
* Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.2-1
fc7de15
- update to 1.0.2
fc7de15
cca67f7
* Thu Dec 14 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.9.10-5
cca67f7
- Rebuild for new Python
cca67f7
- Add BR: python-devel
cca67f7
6a37971
* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.10-4
6a37971
- bump for fc6
6a37971
8d44d69
* Thu Oct  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.10-3
8d44d69
- We really do need pyparsing as a BR
8d44d69
d8f2c2e
* Thu Oct  6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.10-2
d8f2c2e
- change BR to R for graphviz, pyparsing
d8f2c2e
d8f2c2e
* Sat Sep 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.10-1
d8f2c2e
- initial package for Fedora Extras