2020-03-07 17:24:37 +08:00
|
|
|
Name: python-matplotlib
|
2023-05-05 14:59:25 +08:00
|
|
|
Version: 3.7.1
|
2023-05-10 16:45:08 +08:00
|
|
|
Release: 2
|
2020-03-07 17:24:37 +08:00
|
|
|
Summary: A comprehensive library for creating static, animated, and interactive visualizations
|
2022-02-08 19:53:54 +08:00
|
|
|
License: Python and MIT and OFL-1.1 and Public Domain
|
2021-02-19 15:17:08 +08:00
|
|
|
URL: https://github.com/matplotlib/matplotlib
|
2020-03-07 17:24:37 +08:00
|
|
|
Source0: https://github.com/matplotlib/matplotlib/archive/v%{version}/matplotlib-%{version}.tar.gz
|
|
|
|
|
# The config file for python-matplotlib
|
2023-05-05 14:59:25 +08:00
|
|
|
Source1: mplsetup.cfg
|
|
|
|
|
Source1000: https://github.com/QuLogic/mpl-images/archive/v3.7.1-with-freetype-2.12.1/matplotlib-3.7.1-with-freetype-2.12.1.tar.gz
|
2022-02-08 19:53:54 +08:00
|
|
|
Patch0001: 0001-matplotlibrc-path-search-fix.patch
|
2023-05-05 14:59:25 +08:00
|
|
|
Patch0002: 0002-Set-FreeType-version-to-2.12.1-and-update-tolerances.patch
|
2020-03-07 17:24:37 +08:00
|
|
|
BuildRequires: freetype-devel libpng-devel qhull-devel texlive-cm xorg-x11-server-Xvfb zlib-devel
|
2023-05-10 16:45:08 +08:00
|
|
|
BuildRequires: python3-certifi python3-pybind11 gcc-c++ python3-setuptools_scm
|
2020-03-07 17:24:37 +08:00
|
|
|
|
|
|
|
|
|
2021-02-19 15:17:08 +08:00
|
|
|
%description
|
2020-03-07 17:24:37 +08:00
|
|
|
The package produces publication-quality figures in a variety of hardcopy formats and interactive environments
|
|
|
|
|
across platforms.
|
|
|
|
|
|
|
|
|
|
%package -n python-matplotlib-data
|
|
|
|
|
Summary: Data used by python-matplotlib
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python-matplotlib-data-fonts = %{version}-%{release}
|
|
|
|
|
%python_provide python-matplotlib-data
|
|
|
|
|
|
|
|
|
|
%description -n python-matplotlib-data
|
|
|
|
|
Data used by python-matplotlib.
|
|
|
|
|
|
|
|
|
|
%package -n python-matplotlib-data-fonts
|
|
|
|
|
Summary: Fonts used by python-matplotlib
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Requires: python-matplotlib-data = %{version}-%{release}
|
|
|
|
|
%python_provide python-matplotlib-data-fonts
|
|
|
|
|
|
|
|
|
|
%description -n python-matplotlib-data-fonts
|
|
|
|
|
Fonts used by python-matplotlib.
|
|
|
|
|
|
|
|
|
|
%package -n python3-matplotlib
|
|
|
|
|
Summary: Plotting with Python
|
|
|
|
|
BuildRequires: python3-cairo python3-cycler >= 0.10.0 python3-dateutil python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools python3-gobject python3-kiwisolver python3-numpy
|
|
|
|
|
BuildRequires: python3-pillow python3-pyparsing python3-pytz python3-six python3-sphinx
|
|
|
|
|
Requires: dejavu-sans-fonts dvipng python-matplotlib-data = %{version}-%{release}
|
|
|
|
|
Requires: python3-cairo python3-cycler >= 0.10.0 python3-dateutil python3-kiwisolver
|
|
|
|
|
Requires: python3-matplotlib-tk = %{version}-%{release} python3-numpy
|
|
|
|
|
Requires: python3-pyparsing python3-pytz python3-six
|
|
|
|
|
Provides: bundled(stix-math-fonts)
|
|
|
|
|
Recommends: python3-pillow
|
|
|
|
|
%python_provide python3-matplotlib
|
|
|
|
|
|
|
|
|
|
%description -n python3-matplotlib
|
|
|
|
|
The package produces publication-quality figures in a variety of hardcopy formats and interactive environments
|
|
|
|
|
across platforms.
|
|
|
|
|
|
|
|
|
|
%package -n python3-matplotlib-qt5
|
|
|
|
|
Summary: Qt5 backend for python3-matplotlib
|
|
|
|
|
BuildRequires: python3-qt5
|
|
|
|
|
Requires: python3-matplotlib = %{version}-%{release} python3-qt5
|
|
|
|
|
%python_provide python3-matplotlib-qt5
|
|
|
|
|
|
|
|
|
|
%description -n python3-matplotlib-qt5
|
|
|
|
|
The qt5 backend for python3-matplotlib.
|
|
|
|
|
|
|
|
|
|
%package -n python3-matplotlib-gtk3
|
|
|
|
|
Summary: GTK3 backend for python3-matplotlib
|
|
|
|
|
BuildRequires: gtk3 python3-gobject
|
|
|
|
|
Requires: gtk3 python3-gobject python3-matplotlib = %{version}-%{release}
|
|
|
|
|
%python_provide python3-matplotlib-gtk3
|
|
|
|
|
|
|
|
|
|
%description -n python3-matplotlib-gtk3
|
|
|
|
|
The gtk3 backend for python3-matplotlib.
|
|
|
|
|
|
|
|
|
|
%package -n python3-matplotlib-tk
|
|
|
|
|
Summary: Tk backend for python3-matplotlib
|
|
|
|
|
BuildRequires: python3-tkinter
|
|
|
|
|
Requires: python3-matplotlib = %{version}-%{release} python3-tkinter
|
|
|
|
|
%python_provide python3-matplotlib-tk
|
|
|
|
|
|
|
|
|
|
%description -n python3-matplotlib-tk
|
|
|
|
|
The tk backend for python3-matplotlib.
|
|
|
|
|
|
|
|
|
|
%package -n python3-matplotlib-test-data
|
|
|
|
|
Summary: Test data for python3-matplotlib
|
|
|
|
|
Requires: python3-matplotlib = %{version}-%{release}
|
|
|
|
|
%python_provide python3-matplotlib-test-data
|
|
|
|
|
|
|
|
|
|
%description -n python3-matplotlib-test-data
|
|
|
|
|
Test data for python3-matplotlib.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-02-08 19:53:54 +08:00
|
|
|
%autosetup -n matplotlib-%{version} -N
|
2021-02-19 15:17:08 +08:00
|
|
|
%patch0001 -p1
|
2021-03-10 11:20:23 +08:00
|
|
|
%patch0002 -p1
|
2023-05-05 14:59:25 +08:00
|
|
|
gzip -dc %SOURCE1000 | tar xvf - --transform='s~^mpl-images-3.7.1-with-freetype-2.12.1/\([^/]\+\)/~lib/\1/tests/baseline_images/~'
|
2022-02-08 19:53:54 +08:00
|
|
|
|
|
|
|
|
# Copy setup.cfg to the builddir
|
2023-05-05 14:59:25 +08:00
|
|
|
cp -p %{SOURCE1} mplsetup.cfg
|
2020-03-07 17:24:37 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export http_proxy=http://127.0.0.1/
|
|
|
|
|
find examples -name '*.py' -exec chmod a-x '{}' \;
|
2022-02-08 19:53:54 +08:00
|
|
|
|
|
|
|
|
PLCONFIGDIR=$PWD %py3_build
|
2020-03-07 17:24:37 +08:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export http_proxy=http://127.0.0.1/
|
2022-02-08 19:53:54 +08:00
|
|
|
|
|
|
|
|
MPLCONFIGDIR=$PWD %py3_install
|
|
|
|
|
|
2020-03-07 17:24:37 +08:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir} %{buildroot}%{_datadir}/matplotlib
|
2021-02-19 15:17:08 +08:00
|
|
|
mv %{buildroot}%{python3_sitearch}/matplotlib/mpl-data %{buildroot}%{_datadir}/matplotlib
|
2020-03-07 17:24:37 +08:00
|
|
|
|
|
|
|
|
%files -n python-matplotlib-data
|
|
|
|
|
%{_datadir}/matplotlib/mpl-data/
|
|
|
|
|
%exclude %{_datadir}/matplotlib/mpl-data/fonts/
|
|
|
|
|
|
|
|
|
|
%files -n python-matplotlib-data-fonts
|
|
|
|
|
%{_datadir}/matplotlib/mpl-data/fonts/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-matplotlib
|
2023-05-05 14:59:25 +08:00
|
|
|
%doc README.md LICENSE/
|
2020-03-07 17:24:37 +08:00
|
|
|
%{python3_sitearch}/{*egg-info,matplotlib-*-nspkg.pth,matplotlib/}
|
|
|
|
|
%{python3_sitearch}/mpl_toolkits/
|
|
|
|
|
%{python3_sitearch}/{pylab.py*,__pycache__/*}
|
|
|
|
|
%exclude %{python3_sitearch}/matplotlib/tests/baseline_images/*
|
2023-05-05 14:59:25 +08:00
|
|
|
%exclude %{python3_sitearch}/mpl_toolkits/*/tests/baseline_images/*
|
2020-03-07 17:24:37 +08:00
|
|
|
%exclude %{python3_sitearch}/matplotlib/backends/{backend_qt5*,__pycache__/backend_qt5*}
|
|
|
|
|
%exclude %{python3_sitearch}/matplotlib/backends/{backend_gtk*,__pycache__/backend_gtk*}
|
|
|
|
|
%exclude %{python3_sitearch}/matplotlib/backends/{backend_tkagg.*,__pycache__/backend_tkagg.*}
|
|
|
|
|
%exclude %{python3_sitearch}/matplotlib/backends/{tkagg.*,__pycache__/tkagg.*,_tkagg.*}
|
|
|
|
|
|
|
|
|
|
%files -n python3-matplotlib-test-data
|
|
|
|
|
%{python3_sitearch}/matplotlib/tests/baseline_images/
|
2023-05-05 14:59:25 +08:00
|
|
|
%{python3_sitearch}/mpl_toolkits/*/tests/baseline_images/
|
2020-03-07 17:24:37 +08:00
|
|
|
|
|
|
|
|
%files -n python3-matplotlib-qt5
|
|
|
|
|
%{python3_sitearch}/matplotlib/backends/{backend_qt5.*,__pycache__/backend_qt5.*}
|
|
|
|
|
%{python3_sitearch}/matplotlib/backends/{backend_qt5agg.*,__pycache__/backend_qt5agg.*}
|
|
|
|
|
|
|
|
|
|
%files -n python3-matplotlib-gtk3
|
|
|
|
|
%{python3_sitearch}/matplotlib/backends/{backend_gtk*,__pycache__/backend_gtk*}
|
|
|
|
|
|
|
|
|
|
%files -n python3-matplotlib-tk
|
|
|
|
|
%{python3_sitearch}/matplotlib/backends/{backend_tkagg.py*,__pycache__/backend_tkagg.*}
|
|
|
|
|
%{python3_sitearch}/matplotlib/backends/{tkagg.*,__pycache__/tkagg.*,_tkagg.*}
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-05-10 16:45:08 +08:00
|
|
|
* Wed May 10 2023 wulei <wu_lei@hoperun.com> - 3.7.1-2
|
|
|
|
|
- Fix the version cannot be detected
|
|
|
|
|
|
2023-05-05 14:59:25 +08:00
|
|
|
* Fri Apr 14 2023 wulei <wu_lei@hoperun.com> - 3.7.1-1
|
|
|
|
|
- Upgrade package to version 3.7.1
|
|
|
|
|
|
2022-03-05 14:58:54 +08:00
|
|
|
* Sat Mar 05 2022 chenchen <chen_aka_jan@163.com> - 3.4.3-2
|
|
|
|
|
- enable debuginfo
|
|
|
|
|
|
2022-02-08 19:53:54 +08:00
|
|
|
* Fri Jan 28 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.4.3-1
|
|
|
|
|
- Upgrade to version 3.4.3
|
|
|
|
|
|
2021-03-10 11:20:23 +08:00
|
|
|
* Wed Mar 10 2021 caodongxia <caodongxia@huawei.com> - 2.2.4-4
|
|
|
|
|
- Fix the function-import matplotlib and import matplotlib.pyplot
|
|
|
|
|
|
2021-02-19 15:17:08 +08:00
|
|
|
* Fri Feb 19 2021 liyanan <liyanan32@huawei.com> - 2.2.4-3
|
|
|
|
|
- remove python2 dependency
|
|
|
|
|
|
2020-03-07 17:24:37 +08:00
|
|
|
* Fri Mar 6 2020 chenli <chenli147@huawei.com> - 2.2.4-2
|
|
|
|
|
- Init Package
|