From fa5fd50bfcfc1b5ea6917d1e84e2a63de14b5304 Mon Sep 17 00:00:00 2001 From: "Jonathan G. Underwood" Date: Mon, 21 Feb 2011 23:54:27 +0000 Subject: [PATCH] Enable wxPython backend --- python-matplotlib.spec | 22 +++++++++++++++++++++- setup.cfg | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/python-matplotlib.spec b/python-matplotlib.spec index d8d5e2c..bd20ca3 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -16,7 +16,7 @@ Name: python-matplotlib Version: 1.0.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python plotting library Group: Development/Libraries @@ -55,6 +55,16 @@ Requires: tkinter %description tk %{summary} +%package wx +Summary: wxPython backend for python-matplotlib +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: wxPython +BuildRequires: wxPython-devel + +%description wx +%{summary} + %if %{withdocs} %package doc Summary: Documentation files for python-matplotlib @@ -126,6 +136,8 @@ rm -rf $RPM_BUILD_ROOT %exclude %{python_sitearch}/matplotlib/backends/backend_tkagg.* %exclude %{python_sitearch}/matplotlib/backends/tkagg.* %exclude %{python_sitearch}/matplotlib/backends/_tkagg.so +%exclude %{python_sitearch}/matplotlib/backends/backend_wx.* +%exclude %{python_sitearch}/matplotlib/backends/backend_wxagg.* %files tk %defattr(-,root,root,-) @@ -133,6 +145,11 @@ rm -rf $RPM_BUILD_ROOT %{python_sitearch}/matplotlib/backends/tkagg.py* %{python_sitearch}/matplotlib/backends/_tkagg.so +%files wx +%defattr(-,root,root,-) +%{python_sitearch}/matplotlib/backends/backend_wx.py* +%{python_sitearch}/matplotlib/backends/backend_wxagg.py* + %if %{withdocs} %files doc %doc doc/build/html @@ -140,6 +157,9 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Mon Feb 21 2011 Jonathan G. Underwood - 1.0.1-4 +- Enable wxPython backend + * Mon Feb 21 2011 Jonathan G. Underwood - 1.0.1-3 - Add conditional for optionally building doc sub-package - Add flag to build low res images for documentation diff --git a/setup.cfg b/setup.cfg index fdeb182..76a43fb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -57,7 +57,7 @@ configobj = False gtk = True gtkagg = True tkagg = True -wxagg = False +wxagg = True [rc_options] # User-configurable options