Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
python3-matplotlib.29613
python3-matplotlib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-matplotlib.spec of Package python3-matplotlib.29613
# # spec file for package python-matplotlib # # Copyright (c) 2022 SUSE LLC # # 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 https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python %define skip_python2 1 # Not doing tests because they take too long # The tests also pull in dependencies of all backends done in pure python %bcond_with tests Name: python3-matplotlib Version: 2.2.5 Release: 0 Summary: Plotting Library for Python License: SUSE-Matplotlib Group: Development/Libraries/Python URL: https://matplotlib.org Source0: https://files.pythonhosted.org/packages/source/m/matplotlib/matplotlib-%{version}.tar.gz Source1: matplotlib-setup.cfg # Needed for all versions of python BuildRequires: %{python_module Cycler >= 0.10} BuildRequires: %{python_module devel} BuildRequires: %{python_module kiwisolver} BuildRequires: %{python_module numpy >= 1.7.1} BuildRequires: %{python_module numpy-devel >= 1.7.1} BuildRequires: %{python_module pyparsing > 2.1.6} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.10} # WebAgg dependencies BuildRequires: %{python_module tornado} BuildRequires: c++_compiler BuildRequires: fdupes BuildRequires: pkgconfig # Python 2 only BuildRequires: python-functools32 BuildRequires: python-rpm-macros BuildRequires: python-subprocess32 # tk dependencies via tcl BuildRequires: tcl BuildRequires: pkgconfig(freetype2) >= 2.3 BuildRequires: pkgconfig(libpng) >= 1.2 BuildRequires: pkgconfig(tcl) # End of backend dependencies Requires: python3-Cycler >= 0.10 Requires: python3-kiwisolver >= 1.0.1 Requires: python3-numpy >= 1.7.1 Requires: python3-pyparsing > 2.1.6 Requires: python3-python-dateutil >= 2.1 Requires: python3-pytz Requires: python3-six >= 1.10 Recommends: %{python_flavor}-Pillow Recommends: ghostscript Recommends: libxml2-tools Recommends: poppler-tools Provides: python3-matplotlib-gtk = %{version} Obsoletes: python3-matplotlib-gtk < %{version} # needed for testing %if %{with tests} # cairo dependencies BuildRequires: %{python_module cairocffi} # GTK3 dependencies BuildRequires: %{python_module gobject} BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} BuildRequires: %{python_module python-dateutil >= 2.1} # Qt5 dependencies BuildRequires: %{python_module qt5} # tk dependencies BuildRequires: %{python_module tk} # latex dependencies BuildRequires: ghostscript BuildRequires: inkscape BuildRequires: poppler-tools # Wx dependencies (currently Python 2 only) BuildRequires: python-wxWidgets >= 3 BuildRequires: qhull-devel >= 2003.1 BuildRequires: texlive-dvipng BuildRequires: texlive-latex BuildRequires: texlive-sfmath BuildRequires: texlive-tex # X server needed for Qt4/Qt5 tests BuildRequires: xorg-x11-Xvfb BuildRequires: pkgconfig(gtk+-3.0) 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) %endif %ifpython2 Requires: python3-backports.functools_lru_cache Requires: python3-functools32 Requires: python3-subprocess32 %endif %if 0%{?suse_version} >= 1500 Recommends: (%{python_flavor}-matplotlib-tk if tk) %else Recommends: python3-matplotlib-tk %endif %ifpython2 Provides: %{oldpython}-matplotlib-gtk = %{version} Obsoletes: %{oldpython}-matplotlib-gtk < %{version} %endif %python_subpackages %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 (ala matlab or mathematica), web application servers, and six graphical user interface toolkits. %package cairo Summary: Cairo backend for %{name} License: SUSE-Matplotlib Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: python3-cairocffi %description cairo This package includes the non-interactive Cairo-based backend for the %{name} plotting package %package gtk3 Summary: GTK3 backends for %{name} License: BSD-2-Clause Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: %{name}-cairo = %{version} Requires: python3-gobject %description gtk3 This package includes the GTK3-based gtk3, gtk3agg, and gtk3cairo backends for the %{name} plotting package %package latex 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-sfmath Requires: texlive-tex %description latex This package allows %{name} to display latex in plots and figures. %package qt5 Summary: Qt5 backend for %{name} License: BSD-2-Clause Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: python3-qt5 %description qt5 This package includes the Qt5-based pyqt5 backend for the %{name} plotting package %package tk Summary: Tk backend for %{name} License: BSD-2-Clause Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: python3-tk Requires: tcl >= 8.3 %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: python3-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} Requires: python3-wxWidgets >= 2.8 %description wx This package includes the wxWidgets-based wxagg backend for %{name} plotting package %prep %setup -q -n matplotlib-%{version} chmod -x lib/matplotlib/mpl-data/images/*.svg find examples lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name "*.py" -exec sed -i "s|#!\/usr\/bin\/env python||" {} \; find examples lib/matplotlib lib/mpl_toolkits/mplot3d -type f -name "*.py" -exec sed -i "s|#!\/usr\/bin\/python||" {} \; 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 %build export XDG_RUNTIME_DIR=/tmp %python_build %install export XDG_RUNTIME_DIR=/tmp %python_install %{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/ } %if %{with tests} %check export DISPLAY=:42 %{_bindir}/Xvfb :42 -screen 0 1024x768x24 >& /tmp/Xvfb.log & trap "kill $! || true" EXIT %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python ./tests.py --no-network --recursionlimit=5000 %endif %files %{python_files} %doc README.rst %doc examples/ %license LICENSE/ %license doc/users/license.rst %{python_sitearch}/matplotlib/ %{python_sitearch}/matplotlib-%{version}-py*.egg-info %{python_sitearch}/matplotlib-%{version}-py*-nspkg.pth %{python_sitearch}/mpl_toolkits %{python_sitearch}/pylab.py* %pycache_only %{python_sitearch}/__pycache__/pylab.* %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.* %exclude %{python_sitearch}/matplotlib/backends/backend_qt4.py* %exclude %{python_sitearch}/matplotlib/backends/backend_qt4agg.py* %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.* %exclude %{python_sitearch}/matplotlib/backends/qt_compat.* %exclude %{python_sitearch}/matplotlib/backends/qt_editor/ %exclude %{python_sitearch}/matplotlib/backends/tkagg.* %exclude %{python_sitearch}/matplotlib/backends/web_backend/ %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_cairo.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3agg.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_gtk3cairo.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt4.*.py* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt4agg.*.py* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_qt5agg.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_tkagg.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg_core.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/qt_compat.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/tkagg.* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/backend_wx* %exclude %{python_sitearch}/matplotlib/backends/__pycache__/wx_compat.* %exclude %{python_sitearch}/matplotlib/backends/backend_wx.py* %exclude %{python_sitearch}/matplotlib/backends/backend_wxagg.py* %exclude %{python_sitearch}/matplotlib/backends/wx_compat.py* # Dummy package to pull in latex dependencies. %files %{python_files latex} %license LICENSE/ %license doc/users/license.rst %files %{python_files cairo} %license LICENSE/ %license doc/users/license.rst %{python_sitearch}/matplotlib/backends/backend_cairo.py* %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_cairo.*.py* %files %{python_files gtk3} %license LICENSE/ %license doc/users/license.rst %{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* %files %{python_files qt5} %license LICENSE/ %license doc/users/license.rst %{python_sitearch}/matplotlib/backends/backend_qt5.py* %{python_sitearch}/matplotlib/backends/backend_qt5agg.py* %{python_sitearch}/matplotlib/backends/qt_compat.py* %{python_sitearch}/matplotlib/backends/qt_editor/ %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* %files %{python_files tk} %license LICENSE/ %license doc/users/license.rst %{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* %files %{python_files web} %license LICENSE/ %license doc/users/license.rst %{python_sitearch}/matplotlib/backends/backend_webagg.py* %{python_sitearch}/matplotlib/backends/backend_webagg_core.py* %{python_sitearch}/matplotlib/backends/web_backend/ %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg.*.py* %pycache_only %{python_sitearch}/matplotlib/backends/__pycache__/backend_webagg_core.*.py* %files %{python_files wx} %license LICENSE/ %license doc/users/license.rst %{python_sitearch}/matplotlib/backends/wx_compat.py* %{python_sitearch}/matplotlib/backends/backend_wx.py* %{python_sitearch}/matplotlib/backends/backend_wxagg.py* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor