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
|
|
|
#
|
2019-02-27 14:12:25 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX 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.
|
|
|
|
|
2018-11-23 09:27:47 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-11-23 14:45:57 +01:00
|
|
|
#
|
|
|
|
|
2012-08-26 11:33:52 +02:00
|
|
|
|
2019-03-01 19:47:47 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define oldpython python
|
|
|
|
%define skip_python2 1
|
2019-10-14 12:21:08 +02:00
|
|
|
# No Qt4 plugin on > Leap 15.1
|
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} > 150100
|
2019-02-27 14:12:25 +01:00
|
|
|
%bcond_with qt4
|
|
|
|
%else
|
|
|
|
%bcond_without qt4
|
|
|
|
%endif
|
2019-07-07 22:01:44 +02:00
|
|
|
# Not doing tests because they take too long
|
|
|
|
# The tests also pull in dependencies of all backends done in pure python
|
|
|
|
%bcond_with tests
|
2013-10-25 11:21:32 +02:00
|
|
|
Name: python-matplotlib
|
2020-02-10 17:29:52 +01:00
|
|
|
Version: 3.1.3
|
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
|
2018-11-23 09:27:47 +01:00
|
|
|
URL: http://matplotlib.org
|
2017-01-10 10:45:39 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/matplotlib/matplotlib-%{version}.tar.gz
|
2013-10-25 11:21:32 +02:00
|
|
|
Source1: matplotlib-setup.cfg
|
2018-01-31 19:51:16 +01:00
|
|
|
BuildRequires: %{python_module Cycler >= 0.10}
|
2017-08-13 14:58:58 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2018-03-26 13:13:21 +02:00
|
|
|
BuildRequires: %{python_module kiwisolver}
|
2018-01-31 19:51:16 +01:00
|
|
|
BuildRequires: %{python_module numpy >= 1.7.1}
|
|
|
|
BuildRequires: %{python_module numpy-devel >= 1.7.1}
|
|
|
|
BuildRequires: %{python_module pyparsing > 2.1.6}
|
2017-05-06 18:29:48 +02:00
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-01-19 11:53:19 +01:00
|
|
|
BuildRequires: %{python_module six >= 1.10}
|
2019-03-01 19:47:47 +01:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-12-06 20:39:19 +01:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
BuildRequires: qhull-devel >= 2003.1
|
|
|
|
%endif
|
|
|
|
# SECTION WebAgg dependencies
|
|
|
|
BuildRequires: %{python_module tornado}
|
|
|
|
# /SECTION
|
|
|
|
# SECTION tk dependencies via tcl
|
2019-03-01 19:47:47 +01:00
|
|
|
BuildRequires: tcl
|
|
|
|
BuildRequires: pkgconfig(freetype2) >= 2.3
|
|
|
|
BuildRequires: pkgconfig(libpng) >= 1.2
|
|
|
|
BuildRequires: pkgconfig(tcl)
|
2019-12-06 20:39:19 +01:00
|
|
|
# /SECTION
|
2019-03-01 19:47:47 +01:00
|
|
|
Requires: python-Cycler >= 0.10
|
|
|
|
Requires: python-kiwisolver >= 1.0.1
|
|
|
|
Requires: python-numpy >= 1.7.1
|
|
|
|
Requires: python-pyparsing > 2.1.6
|
|
|
|
Requires: python-python-dateutil >= 2.1
|
|
|
|
Requires: python-pytz
|
|
|
|
Requires: python-six >= 1.10
|
|
|
|
Recommends: ghostscript
|
|
|
|
Recommends: libxml2-tools
|
|
|
|
Recommends: poppler-tools
|
|
|
|
Recommends: python-Pillow
|
|
|
|
Provides: python-matplotlib-gtk = %{version}
|
|
|
|
Obsoletes: python-matplotlib-gtk < %{version}
|
2017-05-06 18:29:48 +02:00
|
|
|
%if %{with tests}
|
2019-12-06 20:39:19 +01:00
|
|
|
# SECTION testing dependencies
|
2017-05-06 18:29:48 +02:00
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module nose}
|
2018-03-26 13:13:21 +02:00
|
|
|
BuildRequires: %{python_module python-dateutil >= 2.1}
|
2019-12-06 20:39:19 +01:00
|
|
|
# /SECTION
|
|
|
|
# SECTION cairo dependencies
|
|
|
|
BuildRequires: %{python_module cairo}
|
|
|
|
# SECTION GTK3 dependencies
|
|
|
|
BuildRequires: %{python_module gobject}
|
|
|
|
# /SECTION
|
|
|
|
# SECTION Qt5 dependencies
|
2019-03-01 19:47:47 +01:00
|
|
|
BuildRequires: %{python_module qt5}
|
2019-12-06 20:39:19 +01:00
|
|
|
BuildRequires: xorg-x11-Xvfb
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
# /SECTION
|
|
|
|
# SECTION tk dependencies
|
2019-03-01 19:47:47 +01:00
|
|
|
BuildRequires: %{python_module tk}
|
2019-12-06 20:39:19 +01:00
|
|
|
# /SECTION
|
|
|
|
# SECTION Wx dependencies
|
2019-03-01 19:47:47 +01:00
|
|
|
BuildRequires: %{python_module wxPython >= 4}
|
2019-12-06 20:39:19 +01:00
|
|
|
# /SECTION
|
|
|
|
# SECTION latex dependencies
|
2017-10-17 01:52:04 +02:00
|
|
|
BuildRequires: ghostscript
|
2019-03-01 19:47:47 +01:00
|
|
|
BuildRequires: inkscape
|
2017-10-17 01:52:04 +02:00
|
|
|
BuildRequires: poppler-tools
|
2014-09-17 17:26:35 +02:00
|
|
|
BuildRequires: texlive-dvipng
|
|
|
|
BuildRequires: texlive-latex
|
|
|
|
BuildRequires: texlive-tex
|
2017-08-13 14:58:58 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2015-07-02 22:50:49 +02:00
|
|
|
BuildRequires: texlive-sfmath
|
2017-10-17 01:52:04 +02:00
|
|
|
BuildRequires: tex(8a.enc)
|
|
|
|
BuildRequires: tex(helvet.sty)
|
|
|
|
BuildRequires: tex(phvr7t.tfm)
|
|
|
|
BuildRequires: tex(pncr7t.tfm)
|
|
|
|
BuildRequires: tex(psfrag.sty)
|
|
|
|
BuildRequires: tex(type1cm.sty)
|
|
|
|
BuildRequires: tex(ucs.sty)
|
2017-08-13 14:58:58 +02:00
|
|
|
%endif
|
2019-12-06 20:39:19 +01:00
|
|
|
# /SECTION
|
|
|
|
# SECTION Qt4 dependencies
|
2019-02-27 14:12:25 +01:00
|
|
|
%if %{with qt4}
|
2017-08-13 14:58:58 +02:00
|
|
|
BuildRequires: %{python_module qt4}
|
2019-02-27 14:12:25 +01:00
|
|
|
%endif
|
2019-12-06 20:39:19 +01:00
|
|
|
# /SECTION
|
2017-10-17 01:52:04 +02:00
|
|
|
%endif
|
2018-06-15 14:37:40 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2018-06-02 12:15:27 +02:00
|
|
|
Recommends: (python-matplotlib-tk if tk)
|
2018-06-15 14:37:40 +02:00
|
|
|
%else
|
|
|
|
Recommends: python-matplotlib-tk
|
|
|
|
%endif
|
2017-05-06 18:29:48 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
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.
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package cairo
|
2014-09-03 18:22:57 +02:00
|
|
|
Summary: Cairo backend for %{name}
|
|
|
|
License: SUSE-Matplotlib
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
2019-05-19 07:15:06 +02:00
|
|
|
Requires: python-cairo
|
2014-09-03 18:22:57 +02:00
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description cairo
|
2018-11-23 09:27:47 +01:00
|
|
|
This package includes the non-interactive Cairo-based backend
|
2014-09-03 18:22:57 +02:00
|
|
|
for the %{name} plotting package
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package gtk3
|
2014-03-09 20:14:38 +01:00
|
|
|
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-09-03 18:22:57 +02:00
|
|
|
Requires: %{name}-cairo = %{version}
|
2014-03-09 20:14:38 +01:00
|
|
|
Requires: python-gobject
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description gtk3
|
2014-03-09 20:14:38 +01:00
|
|
|
This package includes the GTK3-based gtk3, gtk3agg, and
|
|
|
|
gtk3cairo backends for the %{name} plotting package
|
2012-03-20 11:33:39 +01:00
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package latex
|
2014-09-19 13:56:26 +02:00
|
|
|
Summary: Allow rendering latex in %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: texlive-dvipng
|
|
|
|
Requires: texlive-latex
|
|
|
|
Requires: texlive-tex
|
2017-08-13 14:58:58 +02:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
Requires: texlive-sfmath
|
|
|
|
%endif
|
2014-09-19 13:56:26 +02:00
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description latex
|
2014-09-19 13:56:26 +02:00
|
|
|
This package allows %{name} to display latex in plots
|
|
|
|
and figures.
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package qt-shared
|
2014-09-03 18:22:57 +02:00
|
|
|
Summary: Shared files for the Qt backends for %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description qt-shared
|
2018-11-23 09:27:47 +01:00
|
|
|
This package includes files needed by both the Qt4-based pyqt4 and
|
2014-09-03 18:22:57 +02:00
|
|
|
pyside backends and the Qt5-based pyqt5 backend for the %{name}
|
|
|
|
plotting package
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package qt4
|
2014-03-09 20:14:38 +01:00
|
|
|
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-09-03 18:22:57 +02:00
|
|
|
Requires: %{name}-qt-shared = %{version}
|
2014-09-17 17:26:35 +02:00
|
|
|
Requires: python-qt4 >= 4.0
|
2014-03-09 20:14:38 +01:00
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description qt4
|
2014-03-09 20:14:38 +01:00
|
|
|
This package includes the Qt4-based pyqt4 and pyside backends
|
|
|
|
for the %{name} plotting package
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package qt5
|
2014-09-03 18:22:57 +02:00
|
|
|
Summary: Qt5 backend for %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: %{name}-qt-shared = %{version}
|
|
|
|
Requires: python-qt5
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description qt5
|
2014-09-03 18:22:57 +02:00
|
|
|
This package includes the Qt5-based pyqt5 backend
|
|
|
|
for the %{name} plotting package
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package tk
|
2014-03-09 20:14:38 +01:00
|
|
|
Summary: Tk backend for %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-tk
|
2014-09-17 17:26:35 +02:00
|
|
|
Requires: tcl >= 8.3
|
2014-03-09 20:14:38 +01:00
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description tk
|
2014-03-09 20:14:38 +01:00
|
|
|
This package includes the Tk-based tkagg backend
|
|
|
|
for the %{name} plotting package
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package web
|
2014-03-09 20:14:38 +01:00
|
|
|
Summary: Web backend for %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-tornado
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description web
|
2014-03-09 20:14:38 +01:00
|
|
|
This package includes the browser-based webagg backend
|
|
|
|
for the %{name} plotting package
|
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%package wx
|
2014-03-09 20:14:38 +01:00
|
|
|
Summary: WxWidgets backend for %{name}
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
2018-09-19 03:59:45 +02:00
|
|
|
Requires: python-wxPython >= 4
|
2014-03-09 20:14:38 +01:00
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%description wx
|
2014-03-09 20:14:38 +01:00
|
|
|
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}
|
2013-10-25 11:21:32 +02:00
|
|
|
chmod -x lib/matplotlib/mpl-data/images/*.svg
|
2014-09-17 17:26:35 +02:00
|
|
|
find examples lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name "*.py" -exec sed -i "s|#!\/usr\/bin\/env python||" {} \;
|
2017-01-10 10:45:39 +01:00
|
|
|
find examples lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name "*.py" -exec sed -i "s|#!\/usr\/bin\/python||" {} \;
|
2017-10-17 01:52:04 +02:00
|
|
|
cp %{SOURCE1} ./setup.cfg
|
|
|
|
|
|
|
|
%if %{without tests}
|
|
|
|
sed -i -e 's/tests = .*/tests = False/' ./setup.cfg
|
|
|
|
%else
|
|
|
|
# raise tolerance for changes due to freetype 2.6/2.7 rendering differences
|
|
|
|
sed -i -e 's/\(image_comparison.*\)tol=0/\1tol=0.310/' lib/matplotlib/testing/decorators.py # default
|
|
|
|
sed -i -e 's/tol=0.002/tol=0.009/' lib/matplotlib/tests/test_streamplot.py
|
|
|
|
sed -i -e 's/tol=0.*)/tol=0.012)/' lib/matplotlib/tests/test_png.py
|
|
|
|
# image rotation is broken, investigate
|
|
|
|
sed -i -e 's/\(image_comparison.*rotate_image.*\)/\1 tol=150,/' lib/matplotlib/tests/test_image.py
|
|
|
|
%endif
|
2010-11-23 14:45:51 +01:00
|
|
|
|
|
|
|
%build
|
2014-07-23 22:07:19 +02:00
|
|
|
export XDG_RUNTIME_DIR=/tmp
|
2017-05-06 18:29:48 +02:00
|
|
|
%python_build
|
2010-11-23 14:45:51 +01:00
|
|
|
|
|
|
|
%install
|
2014-07-23 22:07:19 +02:00
|
|
|
export XDG_RUNTIME_DIR=/tmp
|
2017-05-06 18:29:48 +02:00
|
|
|
%python_install
|
2017-08-13 14:58:58 +02:00
|
|
|
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/matplotlib/backends/qt_editor/
|
|
|
|
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitearch}/matplotlib/backends/qt_editor/
|
|
|
|
%fdupes %{buildroot}%{$python_sitearch}/matplotlib/backends/qt_editor/
|
|
|
|
}
|
2014-03-09 20:14:38 +01:00
|
|
|
|
2017-05-06 18:29:48 +02:00
|
|
|
%if %{with tests}
|
|
|
|
%check
|
2017-10-17 01:52:04 +02:00
|
|
|
export DISPLAY=:42
|
2018-11-23 09:27:47 +01:00
|
|
|
%{_bindir}/Xvfb :42 -screen 0 1024x768x24 >& /tmp/Xvfb.log &
|
2017-10-17 01:52:04 +02:00
|
|
|
trap "kill $! || true" EXIT
|
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python ./tests.py --no-network --recursionlimit=5000
|
2017-05-06 18:29:48 +02:00
|
|
|
%endif
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2017-05-06 18:29:48 +02:00
|
|
|
%files %{python_files}
|
2018-08-18 00:03:18 +02:00
|
|
|
%doc README.rst
|
2017-11-09 13:57:25 +01:00
|
|
|
%doc examples/
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2014-09-17 17:26:35 +02:00
|
|
|
%{python_sitearch}/matplotlib/
|
2017-03-12 20:05:14 +01:00
|
|
|
%{python_sitearch}/matplotlib-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/matplotlib-%{version}-py*-nspkg.pth
|
2014-09-03 18:22:57 +02:00
|
|
|
%{python_sitearch}/mpl_toolkits
|
|
|
|
%{python_sitearch}/pylab.py*
|
2017-05-06 18:29:48 +02:00
|
|
|
%pycache_only %{python_sitearch}/__pycache__/pylab.*
|
2017-08-13 14:58:58 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2014-09-03 18:22:57 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_cairo.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_gtk3.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_gtk3agg.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_gtk3cairo.*
|
2017-05-06 18:29:48 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_qt4.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_qt4agg.py*
|
2014-09-03 18:22:57 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_qt5.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_qt5agg.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_tkagg.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_webagg.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_webagg_core.*
|
2018-09-19 03:59:45 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_wx.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/backend_wxagg.*
|
2014-09-03 18:22:57 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/qt_compat.*
|
2017-05-06 18:29:48 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/qt_editor/
|
2014-09-03 18:22:57 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/tkagg.*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/web_backend/
|
2018-09-19 03:59:45 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/wx_compat.*
|
2018-05-11 09:18:53 +02:00
|
|
|
%endif
|
2017-05-06 18:29:48 +02:00
|
|
|
%ifpycache
|
2018-05-11 09:18:53 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2018-09-19 03:59:45 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_cairo.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3agg.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3cairo.*.py*
|
2017-05-06 18:29:48 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt4.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt4agg.*.py*
|
2018-09-19 03:59:45 +02:00
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5agg.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_tkagg.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg_core.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_wx.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_wxagg.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/qt_compat.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/tkagg.*.py*
|
|
|
|
%exclude %{python_sitearch}/matplotlib/backends/__pycache__/wx_compat.*.py*
|
2017-05-06 18:29:48 +02:00
|
|
|
%endif
|
2017-08-13 14:58:58 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
# Dummy package to pull in latex dependencies.
|
|
|
|
%files %{python_files latex}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2014-09-03 18:22:57 +02:00
|
|
|
|
2017-08-13 14:58:58 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2017-05-06 18:29:48 +02:00
|
|
|
%files %{python_files cairo}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2017-05-06 18:29:48 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/backend_cairo.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_cairo.*.py*
|
|
|
|
|
|
|
|
%files %{python_files gtk3}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2017-05-06 18:29:48 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/backend_gtk3.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/backend_gtk3agg.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/backend_gtk3cairo.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3agg.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3cairo.*.py*
|
2014-03-09 20:14:38 +01:00
|
|
|
|
2017-10-17 01:52:04 +02:00
|
|
|
# IMPORTANT: the qt4 backend makes use of the qt5 backend,
|
2014-09-03 18:22:57 +02:00
|
|
|
# which is actually a generic qt backend.
|
2017-05-06 18:29:48 +02:00
|
|
|
# So we need to package all the qt5 stuff in a generic
|
2017-10-17 01:52:04 +02:00
|
|
|
# package, and provide the -qt5 stub package which pulls in
|
2017-05-06 18:29:48 +02:00
|
|
|
# the python-qt5 dependency.
|
|
|
|
%files %{python_files qt-shared}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2017-05-06 18:29:48 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/backend_qt5.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/backend_qt5agg.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/qt_compat.py*
|
2014-09-03 18:22:57 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/qt_editor/
|
2017-05-06 18:29:48 +02:00
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5agg.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/qt_compat.*.py*
|
|
|
|
|
2019-02-27 14:12:25 +01:00
|
|
|
%if %{with qt4}
|
2017-05-06 18:29:48 +02:00
|
|
|
%files %{python_files qt4}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2017-05-06 18:29:48 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/backend_qt4.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/backend_qt4agg.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt4.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt4agg.*.py*
|
2019-02-27 14:12:25 +01:00
|
|
|
%endif
|
2017-05-06 18:29:48 +02:00
|
|
|
|
|
|
|
%files %{python_files qt5}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2014-09-03 18:22:57 +02:00
|
|
|
%doc README.rst
|
2014-03-09 20:14:38 +01:00
|
|
|
|
2017-05-06 18:29:48 +02:00
|
|
|
%files %{python_files tk}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2017-05-06 18:29:48 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/backend_tkagg.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/tkagg.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_tkagg.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/tkagg.*.py*
|
2014-03-09 20:14:38 +01:00
|
|
|
|
2017-05-06 18:29:48 +02:00
|
|
|
%files %{python_files web}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2017-05-06 18:29:48 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/backend_webagg.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/backend_webagg_core.py*
|
2014-09-03 18:22:57 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/web_backend/
|
2017-05-06 18:29:48 +02:00
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg_core.*.py*
|
2014-03-09 20:14:38 +01:00
|
|
|
|
2018-09-19 03:59:45 +02:00
|
|
|
%files %{python_files wx}
|
2018-08-18 00:03:18 +02:00
|
|
|
%license LICENSE/
|
|
|
|
%license doc/users/license.rst
|
2018-09-19 03:59:45 +02:00
|
|
|
%{python_sitearch}/matplotlib/backends/wx_compat.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/backend_wx.py*
|
|
|
|
%{python_sitearch}/matplotlib/backends/backend_wxagg.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/wx_compat.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_wx.*.py*
|
|
|
|
%pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_wxagg.*.py*
|
2010-11-23 14:45:51 +01:00
|
|
|
|
2017-08-13 14:58:58 +02:00
|
|
|
%endif
|
|
|
|
|
2010-11-23 14:45:51 +01:00
|
|
|
%changelog
|