Compare commits

...

5 Commits
main ... epel8

Author SHA1 Message Date
Orion Poplawski
44c2a728ac Enable wx backend (bz#1955488) 2022-01-18 19:14:50 -07:00
Troy Dawson
0e996bb26d remove package.cfg per new epel-playground policy 2020-09-24 16:08:49 +00:00
Orion Poplawski
b29f41cf45 Merge branch 'epel8-playground' into epel8 2020-01-11 21:38:06 -07:00
Orion Poplawski
588e490738 Disable qt4 and wx for EPEL8 2019-09-17 20:42:07 -06:00
Igor Gnatenko
0958869c1a "Adding package.cfg file" 2019-09-11 08:57:28 +02:00

View File

@@ -1,5 +1,13 @@
%global with_html 0
# No qt4 for EL8
%if 0%{rhel} >= 8
%bcond_with qt4
%else
%bcond_without qt4
%endif
%bcond_without wx
# It seems like there's some kind of weird occasional error where a
# build (often aarch64 or ppc64) will fail in one of the Stix font
# tests with a huge RMS difference, but if you run the same build again,
@@ -44,7 +52,7 @@
Name: python-matplotlib
Version: 3.0.3
Release: 2%{?rctag:.%{rctag}}%{?dist}
Release: 4%{?rctag:.%{rctag}}%{?dist}
Summary: Python 2D plotting library
# qt4_editor backend is MIT
License: Python and MIT
@@ -169,6 +177,7 @@ 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.
%if %{with qt4}
%package -n python3-matplotlib-qt4
Summary: Qt4 backend for python3-matplotlib
BuildRequires: python3-PyQt4-devel
@@ -179,6 +188,7 @@ Requires: python3-PyQt4
%description -n python3-matplotlib-qt4
%{summary}
%endif
%package -n python3-matplotlib-qt5
Summary: Qt5 backend for python3-matplotlib
@@ -213,6 +223,7 @@ Requires: python3-tkinter
%description -n python3-matplotlib-tk
%{summary}
%if %{with wx}
%package -n python3-matplotlib-wx
Summary: WX backend for python3-matplotlib
BuildRequires: python3-wxpython4
@@ -222,6 +233,7 @@ Requires: python3-wxpython4
%description -n python3-matplotlib-wx
%{summary}
%endif
%package -n python3-matplotlib-doc
Summary: Documentation files for python-matplotlib
@@ -272,7 +284,10 @@ gzip -dc %SOURCE1000 | tar xvf - --transform='s~^mpl-images-%{mpl_images_version
%endif
rm -r extern/libqhull
# Old pytest in EL8
%if ! ( 0%{?rhel} >= 8 )
%patch1005 -p1
%endif
# Copy setup.cfg to the builddir
cp -p %{SOURCE1} setup.cfg
@@ -337,6 +352,12 @@ export http_proxy=http://127.0.0.1/
# * test_invisible_Line_rendering: Checks for "slowness" that often fails on a
# heavily-loaded builder.
# * test_tinypages fails due to new Sphinx warning
# * test_determinism_all fails on s390x
%ifarch s390x
fail=0
%else
fail=1
%endif
MPLCONFIGDIR=$PWD \
MATPLOTLIBDATA=%{buildroot}%{_datadir}/matplotlib/mpl-data \
MATPLOTLIBRC=%{buildroot}%{_sysconfdir}/matplotlibrc \
@@ -345,7 +366,7 @@ PYTHONDONTWRITEBYTECODE=1 \
xvfb-run -a -s "-screen 0 640x480x24" \
%{__python3} tests.py -ra -n $(getconf _NPROCESSORS_ONLN) \
-m 'not network' \
-k 'not test_invisible_Line_rendering and not backend_qt5 and not test_tinypages'
-k 'not test_invisible_Line_rendering and not backend_qt5 and not test_tinypages' || exit $fail
# Run Qt5Agg tests separately to not conflict with Qt4 tests.
MPLCONFIGDIR=$PWD \
MATPLOTLIBDATA=%{buildroot}%{_datadir}/matplotlib/mpl-data \
@@ -355,7 +376,7 @@ PYTHONDONTWRITEBYTECODE=1 \
xvfb-run -a -s "-screen 0 640x480x24" \
%{__python3} tests.py -ra -n $(getconf _NPROCESSORS_ONLN) \
-m 'not network' \
matplotlib.tests.test_backend_qt5
matplotlib.tests.test_backend_qt5 || exit $fail
%endif
%files -n python3-matplotlib-data
@@ -412,11 +433,13 @@ PYTHONDONTWRITEBYTECODE=1 \
%{python3_sitearch}/matplotlib/tests/baseline_images/
%{python3_sitearch}/mpl_toolkits/tests/baseline_images/
%if %{with qt4}
%files -n python3-matplotlib-qt4
%{python3_sitearch}/matplotlib/backends/backend_qt4.py
%{python3_sitearch}/matplotlib/backends/__pycache__/backend_qt4.*
%{python3_sitearch}/matplotlib/backends/backend_qt4agg.py
%{python3_sitearch}/matplotlib/backends/__pycache__/backend_qt4agg.*
%endif
# This subpackage is empty because the Qt4 backend imports it, so we leave
# these files in the default package, and only use this one for dependencies.
@@ -441,14 +464,22 @@ PYTHONDONTWRITEBYTECODE=1 \
%{python3_sitearch}/matplotlib/backends/__pycache__/tkagg.*
%{python3_sitearch}/matplotlib/backends/_tkagg.*
%if %{with wx}
%files -n python3-matplotlib-wx
%{python3_sitearch}/matplotlib/backends/backend_wx*.py
%{python3_sitearch}/matplotlib/backends/wx_compat.py
%{python3_sitearch}/matplotlib/backends/__pycache__/backend_wx*
%{python3_sitearch}/matplotlib/backends/__pycache__/wx_compat.*
%endif
%changelog
* Wed Jan 19 2022 Orion Poplawski <orion@nwra.com> - 3.0.3-4
- Enable wx backend (bz#1955488)
* Tue Sep 17 2019 Orion Poplawski <orion@nwra.com> - 3.0.3-3
- Disable qt4 and wx for EPEL8
* Wed Jul 3 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.3-2
- Update Obsoletes to be later than the last python2 builds (#1726490)