|
|
|
|
@@ -40,7 +40,7 @@
|
|
|
|
|
Name: python-matplotlib
|
|
|
|
|
Version: 3.9.1
|
|
|
|
|
%global Version %{version_no_tilde %{quote:%nil}}
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Python 2D plotting library
|
|
|
|
|
# qt_editor backend is MIT
|
|
|
|
|
# ResizeObserver at end of lib/matplotlib/backends/web_backend/js/mpl.js is CC0
|
|
|
|
|
@@ -68,7 +68,7 @@ BuildRequires: glibc-langpack-en
|
|
|
|
|
BuildRequires: freetype-devel
|
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
|
BuildRequires: qhull-devel
|
|
|
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
|
|
|
BuildRequires: wlheadless-run
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
|
@@ -76,7 +76,7 @@ BuildRequires: ghostscript
|
|
|
|
|
%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} < 8)
|
|
|
|
|
BuildRequires: ImageMagick
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: inkscape
|
|
|
|
|
## BuildRequires: inkscape
|
|
|
|
|
|
|
|
|
|
BuildRequires: font(dejavusans)
|
|
|
|
|
BuildRequires: font(notosanscjkjp)
|
|
|
|
|
@@ -203,18 +203,6 @@ Matplotlib tries to make easy things easy and hard things possible.
|
|
|
|
|
You can generate plots, histograms, power spectra, bar charts,
|
|
|
|
|
errorcharts, scatterplots, etc, with just a few lines of code.
|
|
|
|
|
|
|
|
|
|
%package -n python3-matplotlib-qt5
|
|
|
|
|
Summary: Qt5 backend for python3-matplotlib
|
|
|
|
|
BuildRequires: python3dist(cairocffi)
|
|
|
|
|
BuildRequires: python3dist(pyqt5)
|
|
|
|
|
Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: python3dist(cairocffi)
|
|
|
|
|
Requires: python3dist(pyqt5)
|
|
|
|
|
Obsoletes: python3-matplotlib-qt4 < 3.5.0-0
|
|
|
|
|
|
|
|
|
|
%description -n python3-matplotlib-qt5
|
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
|
|
%package -n python3-matplotlib-qt6
|
|
|
|
|
Summary: Qt6 backend for python3-matplotlib
|
|
|
|
|
BuildRequires: python3dist(cairocffi)
|
|
|
|
|
@@ -370,16 +358,7 @@ k="${k-}${k+ and }not test_form_widget_get_with_datetime_and_date_fields"
|
|
|
|
|
# This test won't work due to Xvfb not existing.
|
|
|
|
|
k="${k-}${k+ and }not test_cross_Qt_imports"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
MPLCONFIGDIR=$PWD \
|
|
|
|
|
%ifnarch %{ix86}
|
|
|
|
|
xvfb-run -a -s "-screen 0 640x480x24" \
|
|
|
|
|
%endif
|
|
|
|
|
env %{pytest} -ra -n auto \
|
|
|
|
|
-m 'not network' -k "${k-}" \
|
|
|
|
|
--pyargs matplotlib mpl_toolkits.axes_grid1 mpl_toolkits.axisartist mpl_toolkits.mplot3d
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-matplotlib-data
|
|
|
|
|
%{_datadir}/matplotlib/mpl-data/
|
|
|
|
|
@@ -421,9 +400,6 @@ MPLCONFIGDIR=$PWD \
|
|
|
|
|
%{python3_sitearch}/matplotlib/tests/baseline_images/
|
|
|
|
|
%{python3_sitearch}/mpl_toolkits/*/tests/baseline_images/
|
|
|
|
|
|
|
|
|
|
%files -n python3-matplotlib-qt5
|
|
|
|
|
%pycached %{python3_sitearch}/matplotlib/backends/backend_qt5*.py
|
|
|
|
|
|
|
|
|
|
# This is handled by backend_qt*.py (no number), so the package exists only for
|
|
|
|
|
# the dependencies.
|
|
|
|
|
%files -n python3-matplotlib-qt6
|
|
|
|
|
|