Enable wxPython backend

This commit is contained in:
Jonathan G. Underwood 2011-02-21 23:54:27 +00:00
parent fd9734a7cb
commit fa5fd50bfc
2 changed files with 22 additions and 2 deletions

View File

@ -16,7 +16,7 @@
Name: python-matplotlib Name: python-matplotlib
Version: 1.0.1 Version: 1.0.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: Python plotting library Summary: Python plotting library
Group: Development/Libraries Group: Development/Libraries
@ -55,6 +55,16 @@ Requires: tkinter
%description tk %description tk
%{summary} %{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} %if %{withdocs}
%package doc %package doc
Summary: Documentation files for python-matplotlib 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/backend_tkagg.*
%exclude %{python_sitearch}/matplotlib/backends/tkagg.* %exclude %{python_sitearch}/matplotlib/backends/tkagg.*
%exclude %{python_sitearch}/matplotlib/backends/_tkagg.so %exclude %{python_sitearch}/matplotlib/backends/_tkagg.so
%exclude %{python_sitearch}/matplotlib/backends/backend_wx.*
%exclude %{python_sitearch}/matplotlib/backends/backend_wxagg.*
%files tk %files tk
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -133,6 +145,11 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitearch}/matplotlib/backends/tkagg.py* %{python_sitearch}/matplotlib/backends/tkagg.py*
%{python_sitearch}/matplotlib/backends/_tkagg.so %{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} %if %{withdocs}
%files doc %files doc
%doc doc/build/html %doc doc/build/html
@ -140,6 +157,9 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%changelog %changelog
* Mon Feb 21 2011 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 1.0.1-4
- Enable wxPython backend
* Mon Feb 21 2011 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 1.0.1-3 * Mon Feb 21 2011 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 1.0.1-3
- Add conditional for optionally building doc sub-package - Add conditional for optionally building doc sub-package
- Add flag to build low res images for documentation - Add flag to build low res images for documentation

View File

@ -57,7 +57,7 @@ configobj = False
gtk = True gtk = True
gtkagg = True gtkagg = True
tkagg = True tkagg = True
wxagg = False wxagg = True
[rc_options] [rc_options]
# User-configurable options # User-configurable options