%define module matplotlib %define name python-%{module} %define version 1.2.0 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: Matlab-style 2D plotting package for Python Group: Development/Python License: Python license URL: http://matplotlib.org/ Source0: https://github.com/downloads/%{module}/%{module}/%{module}-%{version}.tar.gz Patch0: setupext-tk-include-0.99.1.2.patch Patch1: setupext-x86_64-libdir-1.1.1.patch Requires: python-numpy >= 1.1.0 Requires: python-configobj, python-dateutil, python-pytz Requires: python-matplotlib-gtk = %{version}-%{release} BuildRequires: python-setuptools BuildRequires: python-numpy-devel >= 1.1.0 BuildRequires: libwxPythonGTK-devel, pygtk2.0-devel, cairo-devel BuildRequires: tkinter, tcl-devel, tk-devel, freetype2-devel >= 2.1.7 BuildRequires: python-qt4 BuildRequires: agg-devel BuildRequires: libpng-devel, zlib-devel BuildRequires: python-configobj, python-dateutil, python-pytz BuildRequires: python-docutils, python-sphinx BuildRequires: ipython %description matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. matplotlib can be used in Python scripts, the python and ipython shell (a la Matlab or Mathematica), web application servers, and various graphical user interface toolkits. %package cairo Summary: Cairo backend for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: python-cairo >= 1.2.0 %description cairo This package contains the Cairo backend for matplotlib. %package emf Summary: EMF backend for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: python-pyemf %description emf This package contains the EMF backend for matplotlib. %package fltk Summary: FLTK backend for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: python-pyfltk %description fltk This package contains the FLTK backend for matplotlib. %package gtk Summary: GDK and GTK backends for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: pygtk2.0 >= 2.4.0 Requires: %{name}-cairo = %{version}-%{release} %description gtk This package contains the GDK and GTK backends for matplotlib. %package gtk3 Summary: GTK3 backends for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: %{name}-cairo = %{version}-%{release} %description gtk3 This package contains the GDK3 backends for matplotlib. %package qt4 Summary: Qt backend for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: python-qt4 %description qt4 This package contains the Qt4 backend for matplotlib. %package svg Summary: SVG backend for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: python-pyxml %description svg This package contains the SVG backend for matplotlib. %package pgf Summary: PGF backend for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} %description pgf This package contains the PGF backend for matplotlib. %package tk Summary: Tk backend for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: tkinter %description tk This package contains the Tk backend for matplotlib. %package wx Summary: wxPython backend for matplotlib Group: Development/Python Requires: %{name} = %{version}-%{release} Requires: wxPython %description wx This package contains the wxPython backend for matplotlib. %package doc Summary: Documentation for matplotlib Group: Development/Python BuildArch: noarch %description doc This package contains documentation and sample code for matplotlib. %prep %setup -q -n %{module}-%{version} %patch0 -p0 -b .setupext %patch1 -p0 -b .x86_64 %build find -name .svn | xargs rm -rf # Remove duplicate test data file: %__rm -f lib/matplotlib/tests/baseline_images/test_axes/shaped\ data.svg PYTHONDONTWRITEBYTECODE= %__python setup.py build # Need to make built matplotlib libs available for the sphinx extensions: pushd doc export PYTHONPATH=`dir -d ../build/lib.linux*` ./make.py html popd %install %__rm -rf %{buildroot} PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot} %files %{py_platsitedir}/%{module}/*.py* %{py_platsitedir}/%{module}/*.so %{py_platsitedir}/%{module}*egg-info %{py_platsitedir}/%{module}/backends/Matplotlib.nib* %{py_platsitedir}/%{module}/backends/__init__* %{py_platsitedir}/%{module}/backends/*backend_agg* %{py_platsitedir}/%{module}/backends/backend_cocoa* %{py_platsitedir}/%{module}/backends/backend_macosx* %{py_platsitedir}/%{module}/backends/backend_mixed* %{py_platsitedir}/%{module}/backends/backend_pdf* %{py_platsitedir}/%{module}/backends/backend_ps* %{py_platsitedir}/%{module}/backends/backend_template* %{py_platsitedir}/%{module}/backends/windowing* %{py_platsitedir}/%{module}/backends/qt4_compat* %{py_platsitedir}/%{module}/backends/qt4_editor* %{py_platsitedir}/%{module}/delaunay* %{py_platsitedir}/%{module}/mpl-data/* %{py_platsitedir}/%{module}/projections* %{py_platsitedir}/%{module}/sphinxext* %{py_platsitedir}/%{module}/test* %{py_platsitedir}/%{module}/tri* %{py_platsitedir}/mpl_toolkits* %{py_platsitedir}/pylab* %exclude %{py_platsitedir}/%{module}/backends/backend_qt.py* %exclude %{py_platsitedir}/%{module}/backends/backend_qtagg.py* %files cairo %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_cairo.py* %files emf %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_emf.py* %files fltk %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_fltkagg.py* %files gtk %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_gdk.py* %{py_platsitedir}/%{module}/backends/backend_gtk.py* %{py_platsitedir}/%{module}/backends/backend_gtkagg.py* %{py_platsitedir}/%{module}/backends/backend_gtkcairo.py* %{py_platsitedir}/%{module}/backends/_backend_gdk.so %{py_platsitedir}/%{module}/backends/_gtkagg.so %files gtk3 %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_gtk3.py* %{py_platsitedir}/%{module}/backends/backend_gtk3agg.py* %{py_platsitedir}/%{module}/backends/backend_gtk3cairo.py* %files qt4 %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_qt4.py* %{py_platsitedir}/%{module}/backends/backend_qt4agg.py* %files pgf %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_pgf.py* %files svg %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_svg.py* %files tk %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_tkagg.py* %{py_platsitedir}/%{module}/backends/tkagg.py* %{py_platsitedir}/%{module}/backends/_tkagg.so %files wx %defattr(-,root,root) %{py_platsitedir}/%{module}/backends/backend_wx.py* %{py_platsitedir}/%{module}/backends/backend_wxagg.py* %files doc %doc examples/ CHANGELOG README.txt TODO doc/build/html/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.2.0-2.mga3 + Revision: 379123 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Dec 23 2012 philippem <philippem> 1.2.0-1.mga3 + Revision: 334342 - Update to 1.2.0 * Sun Oct 07 2012 philippem <philippem> 1.1.1-1.mga3 + Revision: 303208 - Update to 1.1.1 * Fri Oct 21 2011 philippem <philippem> 1.1.0-1.mga2 + Revision: 157235 - Update to 1.1.0 * Tue Sep 20 2011 fwang <fwang> 1.0.1-4.mga2 + Revision: 145920 - fix build with latest libpng - rebuild for new libpng - br agg - add debian patch to fix tkinter version detection - sync with fedora package - rebuild for new tcl * Mon Apr 25 2011 grenoya <grenoya> 1.0.1-2.mga1 + Revision: 90209 - increase release - remove python-matplotlib-qt subpackage * Sun Apr 24 2011 grenoya <grenoya> 1.0.1-1.mga1 + Revision: 90115 - remove python-qt from buildrequires - imported package python-matplotlib