2010-11-23 14:45:57 +01:00
|
|
|
#
|
2011-01-18 12:08:25 +01:00
|
|
|
# spec file for package python-matplotlib
|
2010-11-23 14:45:57 +01:00
|
|
|
#
|
2014-03-09 20:14:38 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-11-23 14:45:57 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-08-26 11:33:52 +02:00
|
|
|
|
2013-10-25 11:21:32 +02:00
|
|
|
Name: python-matplotlib
|
|
|
|
Version: 1.3.1
|
2011-12-12 16:58:51 +01:00
|
|
|
Release: 0
|
2010-11-23 14:45:57 +01:00
|
|
|
Summary: Plotting Library for Python
|
2014-07-23 22:07:19 +02:00
|
|
|
License: SUSE-Matplotlib
|
2011-12-12 16:58:51 +01:00
|
|
|
Group: Development/Libraries/Python
|
2013-10-25 11:21:32 +02:00
|
|
|
Url: http://sourceforge.net/projects/matplotlib
|
|
|
|
Source: matplotlib-%{version}.tar.gz
|
|
|
|
Source1: matplotlib-setup.cfg
|
|
|
|
Source2: matplotlibplugin.py
|
|
|
|
Source3: matplotlibwidget.py
|
2014-07-23 22:07:19 +02:00
|
|
|
Patch0: use-setuptools.diff
|
2010-11-23 14:45:57 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-03-09 20:14:38 +01:00
|
|
|
BuildRequires: fdupes
|
2011-02-07 23:51:18 +01:00
|
|
|
BuildRequires: fltk-devel
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: gcc-c++
|
2014-03-09 20:14:38 +01:00
|
|
|
BuildRequires: ghostscript
|
2011-02-07 23:51:18 +01:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: libpng-devel
|
2014-03-09 20:14:38 +01:00
|
|
|
BuildRequires: poppler-tools
|
2011-02-07 23:51:18 +01:00
|
|
|
BuildRequires: python-gtk
|
2012-03-20 11:33:39 +01:00
|
|
|
BuildRequires: python-gtk-devel
|
2010-11-23 14:45:51 +01:00
|
|
|
BuildRequires: python-numpy-devel >= 1.2.1
|
2014-03-09 20:14:38 +01:00
|
|
|
BuildRequires: python-pyparsing
|
2013-08-23 14:21:14 +02:00
|
|
|
BuildRequires: python-setuptools
|
2011-02-07 23:51:18 +01:00
|
|
|
BuildRequires: python-tk
|
2014-03-09 20:14:38 +01:00
|
|
|
BuildRequires: python-tornado
|
2011-02-07 23:51:18 +01:00
|
|
|
BuildRequires: tcl
|
|
|
|
BuildRequires: tcl-devel
|
2014-03-09 20:14:38 +01:00
|
|
|
BuildRequires: texlive-latex
|
2011-02-07 23:51:18 +01:00
|
|
|
BuildRequires: tk
|
|
|
|
BuildRequires: tk-devel
|
2014-03-09 20:14:38 +01:00
|
|
|
# needed for testing
|
|
|
|
BuildRequires: python-nose
|
2011-02-07 23:51:18 +01:00
|
|
|
Requires: python-numpy >= 1.2.1
|
2013-09-03 22:03:40 +02:00
|
|
|
Requires: python-pyparsing
|
2014-03-09 20:14:38 +01:00
|
|
|
Recommends: ghostscript
|
|
|
|
Recommends: inkscape
|
|
|
|
Recommends: libxml2-tools
|
|
|
|
Recommends: poppler-tools
|
2014-03-12 14:46:29 +01:00
|
|
|
Recommends: python-matplotlib-tk
|
2014-03-09 20:14:38 +01:00
|
|
|
Recommends: texlive-dvipng
|
|
|
|
Recommends: texlive-latex
|
|
|
|
Recommends: texlive-sfmath
|
|
|
|
Recommends: texlive-tex
|
2011-02-07 23:51:18 +01:00
|
|
|
%py_requires
|
2014-03-09 20:14:38 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
BuildRequires: python-qt4-devel
|
|
|
|
BuildRequires: texlive-dvipng
|
|
|
|
BuildRequires: texlive-sfmath
|
|
|
|
BuildRequires: texlive-tex
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} < 1220
|
2012-03-20 11:33:39 +01:00
|
|
|
BuildRequires: gnome-libs-devel
|
2011-02-07 23:51:18 +01:00
|
|
|
BuildRequires: python-wxGTK
|
|
|
|
BuildRequires: wxGTK-devel
|
2010-11-23 14:45:51 +01:00
|
|
|
%else
|
2010-11-23 14:45:57 +01:00
|
|
|
BuildRequires: libgnome-devel
|
2014-03-09 20:14:38 +01:00
|
|
|
BuildRequires: libxml2-tools
|
|
|
|
BuildRequires: python-gobject
|
|
|
|
BuildRequires: python-gobject-cairo
|
|
|
|
BuildRequires: python-gobject-devel
|
|
|
|
BuildRequires: python-pyside
|
2012-03-20 11:33:39 +01:00
|
|
|
BuildRequires: python-wxWidgets
|
|
|
|
BuildRequires: wxWidgets-devel
|
2011-01-18 12:08:13 +01:00
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %wx_requires
|
|
|
|
%endif
|
2011-02-07 23:51:18 +01:00
|
|
|
## These packages are required to prevent that matplotlib installs it's
|
2010-11-23 14:45:51 +01:00
|
|
|
## own versions of the packages from the lib directory
|
2011-02-07 23:51:18 +01:00
|
|
|
BuildRequires: python-dateutil
|
|
|
|
BuildRequires: python-tz
|
2014-03-09 20:14:38 +01:00
|
|
|
Requires: python-dateutil
|
|
|
|
Requires: python-pytz
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2011-02-07 23:51:18 +01:00
|
|
|
%description
|
2010-11-23 14:45:51 +01:00
|
|
|
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 (ala matlab or mathematica), web
|
|
|
|
application servers, and six graphical user interface toolkits.
|
|
|
|
|
2014-03-09 20:14:38 +01:00
|
|
|
%package gtk2
|
|
|
|
Summary: GTK2 backends for %{name}
|
2012-08-26 11:33:52 +02:00
|
|
|
License: BSD-2-Clause
|
2012-01-19 16:56:53 +01:00
|
|
|
Group: Development/Libraries/Python
|
2011-02-07 23:51:18 +01:00
|
|
|
Requires: %{name} = %{version}
|
2014-03-09 20:14:38 +01:00
|
|
|
Requires: python-gtk
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2014-03-09 20:14:38 +01:00
|
|
|
%description gtk2
|
|
|
|
This package includes the GTK2-based gdk, gtk, gtkagg, and
|
|
|
|
gtkcairo backends for the %{name} plotting package
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2014-03-09 20:14:38 +01:00
|
|
|
%package gtk3
|
|
|
|
Summary: GTK3 backends for %{name}
|
2012-08-26 11:33:52 +02:00
|
|
|
License: BSD-2-Clause
|
2012-01-19 16:56:53 +01:00
|
|
|
Group: Development/Libraries/Python
|
2011-02-07 23:51:18 +01:00
|
|
|
Requires: %{name} = %{version}
|
2014-03-09 20:14:38 +01:00
|
|
|
Requires: python-gobject
|
|
|
|
Requires: python-gobject-cairo
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2014-03-09 20:14:38 +01:00
|
|
|
%description gtk3
|
|
|
|
This package includes the GTK3-based gtk3, gtk3agg, and
|
|
|
|
gtk3cairo backends for the %{name} plotting package
|
2012-03-20 11:33:39 +01:00
|
|
|
|
2014-03-09 20:14:38 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
%package qt4
|
|
|
|
Summary: Qt4 backends for %{name}
|
|
|
|
License: BSD-2-Clause
|
2012-08-26 11:33:52 +02:00
|
|
|
Group: Development/Libraries/Python
|
2012-03-20 11:33:39 +01:00
|
|
|
Requires: %{name} = %{version}
|
2014-03-09 20:14:38 +01:00
|
|
|
Requires: python-pyside
|
2012-03-20 11:33:39 +01:00
|
|
|
Requires: python-qt4
|
2014-03-09 20:14:38 +01:00
|
|
|
|
|
|
|
%description qt4
|
|
|
|
This package includes the Qt4-based pyqt4 and pyside backends
|
|
|
|
for the %{name} plotting package
|
|
|
|
|
|
|
|
%package designer
|
|
|
|
Summary: Qt Designer plugin for %{name}
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name}-qt4 = %{version}
|
2012-03-20 11:33:39 +01:00
|
|
|
Requires: qt-creator
|
|
|
|
|
|
|
|
%description designer
|
|
|
|
This is a plugin and widget to let you use %{name}
|
|
|
|
plots as widget in PyQt4 GUIs using Qt Designer
|
|
|
|
|
|
|
|
This plugin comes from Python(x,y)
|
2014-03-09 20:14:38 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%package tk
|
|
|
|
Summary: Tk backend for %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-tk
|
|
|
|
|
|
|
|
%description tk
|
|
|
|
This package includes the Tk-based tkagg backend
|
|
|
|
for the %{name} plotting package
|
|
|
|
|
|
|
|
%package web
|
|
|
|
Summary: Web backend for %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-tornado
|
|
|
|
|
|
|
|
%description web
|
|
|
|
This package includes the browser-based webagg backend
|
|
|
|
for the %{name} plotting package
|
|
|
|
|
|
|
|
%package wx
|
|
|
|
Summary: WxWidgets backend for %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
%if 0%{?sles_version} == 11
|
|
|
|
Requires: python-wxGTK
|
|
|
|
%else
|
|
|
|
Requires: python-wxWidgets
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description wx
|
|
|
|
This package includes the wxWidgets-based wxagg backend
|
|
|
|
for %{name} plotting package
|
2010-11-23 14:45:51 +01:00
|
|
|
|
|
|
|
%prep
|
2014-03-09 20:14:38 +01:00
|
|
|
%setup -q -n matplotlib-%{version}
|
2014-07-23 22:07:19 +02:00
|
|
|
%patch0
|
2013-10-25 11:21:32 +02:00
|
|
|
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
2010-11-23 14:45:51 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
cp %{SOURCE1} ./setup.cfg
|
2014-07-23 22:07:19 +02:00
|
|
|
%if 0%{?suse_version} > 1310
|
|
|
|
export XDG_RUNTIME_DIR=/tmp
|
|
|
|
%endif
|
2010-11-23 14:45:51 +01:00
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
2014-07-23 22:07:19 +02:00
|
|
|
%if 0%{?suse_version} > 1310
|
|
|
|
export XDG_RUNTIME_DIR=/tmp
|
|
|
|
%endif
|
2013-10-25 11:21:32 +02:00
|
|
|
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
2014-03-09 20:14:38 +01:00
|
|
|
|
|
|
|
# Install designer plugin
|
|
|
|
%if 0%{?suse_version} > 1220
|
2012-03-22 12:39:07 +01:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/qt4/plugins/designer/python/
|
|
|
|
install -vm 755 %{SOURCE2} %{buildroot}%{_libdir}/qt4/plugins/designer/python/
|
|
|
|
install -vm 755 %{SOURCE3} %{buildroot}%{py_sitedir}/
|
2014-03-09 20:14:38 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{py_sitedir}/matplotlib/tests/baseline_images/
|
2010-11-23 14:45:51 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2014-07-23 22:07:19 +02:00
|
|
|
%doc README.rst LICENSE CHANGELOG PKG-INFO TODO CXX examples doc/users/license.rst
|
2013-10-25 11:21:32 +02:00
|
|
|
%{py_sitedir}/matplotlib-%{version}_r0-py%{py_ver}.egg-info
|
|
|
|
%{py_sitedir}/matplotlib-%{version}_r0-py%{py_ver}-nspkg.pth
|
|
|
|
%{py_sitedir}/matplotlib/
|
2012-03-20 11:33:39 +01:00
|
|
|
%{py_sitedir}/mpl_toolkits
|
2014-03-09 20:14:38 +01:00
|
|
|
%exclude %{py_sitedir}/mpl_toolkits/gtktools.*
|
2012-03-20 11:33:39 +01:00
|
|
|
%{py_sitedir}/pylab.py
|
|
|
|
%{py_sitedir}/pylab.pyc
|
2014-03-09 20:14:38 +01:00
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_cairo.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_macosx.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/windowing.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/_backend_gdk.so
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/_gtkagg.so
|
2013-10-25 11:21:32 +02:00
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/_tkagg.so
|
2014-03-09 20:14:38 +01:00
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_cocoaagg.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_gdk.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_gtk.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_gtkagg.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_gtkcairo.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_gtk3.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_gtk3agg.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_gtk3cairo.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_qt4.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_qt4agg.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_tkagg.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_webagg.*
|
2013-10-25 11:21:32 +02:00
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_wx.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/backend_wxagg.*
|
2014-03-09 20:14:38 +01:00
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/qt4_compat.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/qt4_editor/
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/tkagg.*
|
|
|
|
%exclude %{py_sitedir}/matplotlib/backends/web_backend/
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2014-03-09 20:14:38 +01:00
|
|
|
%files gtk2
|
2010-11-23 14:45:51 +01:00
|
|
|
%defattr(-,root,root,-)
|
2014-03-09 20:14:38 +01:00
|
|
|
%{py_sitedir}/matplotlib/backends/_backend_gdk.so
|
|
|
|
%{py_sitedir}/matplotlib/backends/_gtkagg.so
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_cairo.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_gdk.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_gtk.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_gtkagg.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_gtkcairo.*
|
|
|
|
%{py_sitedir}/mpl_toolkits/gtktools.py*
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2014-03-09 20:14:38 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
%files gtk3
|
2010-11-23 14:45:51 +01:00
|
|
|
%defattr(-,root,root,-)
|
2014-03-09 20:14:38 +01:00
|
|
|
%{py_sitedir}/matplotlib/backends/backend_gtk3.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_gtk3agg.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_gtk3cairo.*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
%files qt4
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_qt4.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_qt4agg.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/qt4_compat.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/qt4_editor/
|
2012-03-20 11:33:39 +01:00
|
|
|
|
|
|
|
%files designer
|
|
|
|
%defattr(-,root,root,-)
|
2012-03-22 12:39:07 +01:00
|
|
|
%dir %{_libdir}/qt4/
|
|
|
|
%dir %{_libdir}/qt4/plugins/
|
|
|
|
%dir %{_libdir}/qt4/plugins/designer/
|
|
|
|
%dir %{_libdir}/qt4/plugins/designer/python/
|
2013-10-25 11:21:32 +02:00
|
|
|
%{_libdir}/qt4/plugins/designer/python/matplotlibplugin.py
|
|
|
|
%{py_sitedir}/matplotlibwidget.py
|
2014-03-09 20:14:38 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files tk
|
|
|
|
%defattr(-,root,root,-)
|
2014-03-18 14:01:29 +01:00
|
|
|
%{py_sitedir}/matplotlib/backends/windowing.*
|
2014-03-09 20:14:38 +01:00
|
|
|
%{py_sitedir}/matplotlib/backends/backend_tkagg.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/tkagg.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/_tkagg.so
|
|
|
|
|
|
|
|
%files web
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_webagg.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/web_backend/
|
|
|
|
|
|
|
|
%files wx
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_wx.*
|
|
|
|
%{py_sitedir}/matplotlib/backends/backend_wxagg.*
|
2010-11-23 14:45:51 +01:00
|
|
|
|
|
|
|
%changelog
|