diff --git a/README.en.md b/README.en.md deleted file mode 100644 index b1a339b40039a52bbd9bb3a1b6655836a5e74419..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# python-matplotlib - -#### Description -Python 2D plotting library. - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 669c865aca175ee3796cd9b8f19a9270e6363e0b..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# python-matplotlib - -#### 介绍 -Python 2D plotting library. - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/matplotlib-2.2.3-with-freetype-2.9.1.tar.gz b/matplotlib-2.2.3-with-freetype-2.9.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e10d69fbfb51eede2c4dfe83b93e37dfa6d50db8 Binary files /dev/null and b/matplotlib-2.2.3-with-freetype-2.9.1.tar.gz differ diff --git a/matplotlib-2.2.4.tar.gz b/matplotlib-2.2.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0c56efdea183f185367162f4fceef82cdfc0ce82 Binary files /dev/null and b/matplotlib-2.2.4.tar.gz differ diff --git a/python-matplotlib.spec b/python-matplotlib.spec new file mode 100644 index 0000000000000000000000000000000000000000..73a91a9bff421985094b3aa7d9651c2b3db15a12 --- /dev/null +++ b/python-matplotlib.spec @@ -0,0 +1,286 @@ +Name: python-matplotlib +Version: 2.2.4 +Release: 2 +Summary: A comprehensive library for creating static, animated, and interactive visualizations +License: Python and MIT +URL: http://matplotlib.org +Source0: https://github.com/matplotlib/matplotlib/archive/v%{version}/matplotlib-%{version}.tar.gz +# The config file for python-matplotlib +Source1: setup.cfg +Source1000: https://github.com/QuLogic/mpl-images/archive/v2.2.3-with-freetype-2.8/matplotlib-2.2.3-with-freetype-2.9.1.tar.gz +BuildRequires: freetype-devel libpng-devel qhull-devel texlive-cm xorg-x11-server-Xvfb zlib-devel + +%description +The package produces publication-quality figures in a variety of hardcopy formats and interactive environments +across platforms. + +%package -n python2-matplotlib +Summary: Plotting with Python +BuildRequires: python2-numpy python2-pyparsing python2-dateutil python2-kiwisolver +BuildRequires: python2-pyside python2-setuptools python2-six python2-sphinx python2-subprocess32 +BuildRequires: python2-devel python2-backports-functools_lru_cache python2-pillow python2-pytz +Requires: dejavu-sans-fonts dvipng python2-numpy python2-pyparsing python2-cycler >= 0.10.0 +Requires: python2-dateutil python2-kiwisolver python2-backports-functools_lru_cache +Requires: python-matplotlib-data = %{version}-%{release} python2-six python2-subprocess32 +Requires: python2-matplotlib-tk = %{version}-%{release} python2-pytz +Provides: bundled(stix-math-fonts) bundled(agg) = 2.4 bundled(ttconv) bundled(js-jquery1) = 1.11.3 +Provides: bundled(js-jquery1-ui) = 1.11.4 bundled(texlive-helvetic) +Recommends: python2-pillow +%python_provide python2-matplotlib + +%description -n python2-matplotlib +The package produces publication-quality figures in a variety of hardcopy formats and interactive environments +across platforms. + +%package -n python2-matplotlib-qt4 +Summary: Qt4 backend for python-matplotlib +BuildRequires: PyQt4-devel +Requires: python2-PyQt4 python2-matplotlib = %{version}-%{release} python2-matplotlib-qt5 +%python_provide python2-matplotlib-qt4 + +%description -n python2-matplotlib-qt4 +The qt4 backend for python-matplotlib. + +%package -n python2-matplotlib-qt5 +Summary: Qt5 backend for python-matplotlib +BuildRequires: python2-qt5 +Requires: python2-qt5 python2-matplotlib = %{version}-%{release} +%python_provide python2-matplotlib-qt5 + +%description -n python2-matplotlib-qt5 +The qt5 backend for python-matplotlib. + +%package -n python2-matplotlib-gtk +Summary: GTK backend for python-matplotlib +BuildRequires: gtk2-devel pycairo-devel pygtk2-devel +Requires: pycairo pygtk2 python2-matplotlib = %{version}-%{release} +%python_provide python2-matplotlib-gtk + +%description -n python2-matplotlib-gtk +The gtk backend for python-matplotlib. + +%package -n python2-matplotlib-gtk3 +Summary: GTK3 backend for python-matplotlib +BuildRequires: gtk3 pygobject3-base +Requires: gtk3 pygobject3-base python2-matplotlib = %{version}-%{release} +%python_provide python2-matplotlib-gtk3 + +%description -n python2-matplotlib-gtk3 +The gtk3 backend for python-matplotlib. + +%package -n python2-matplotlib-tk +Summary: Tk backend for python-matplotlib +BuildRequires: tcl-devel tkinter tk-devel +Requires: python2-matplotlib = %{version}-%{release} tkinter +%python_provide python2-matplotlib-tk + +%description -n python2-matplotlib-tk +The tk backend for python-matplotlib. + +%package -n python2-matplotlib-wx +Summary: wxPython backend for python-matplotlib +BuildRequires: wxPython-devel +Requires: python2-matplotlib = %{version}-%{release} python2-wxpython +%python_provide python2-matplotlib-wx + +%description -n python2-matplotlib-wx +The wxPython backend for python-matplotlib. + +%package -n python2-matplotlib-test-data +Summary: Test data for python2-matplotlib +Requires: python2-matplotlib = %{version}-%{release} +%python_provide python2-matplotlib-test-data + +%description -n python2-matplotlib-test-data +Test data for python2-matplotlib. + +%package -n python2-matplotlib-help +Summary: Documentation files for python-matplotlib +Requires: python2-matplotlib = %{version}-%{release} +Provides: python2-matplotlib-doc = %{version}-%{release} +Obsoletes: python2-matplotlib-doc < %{version}-%{release} +%python_provide python2-matplotlib-help + +%description -n python2-matplotlib-help +Documentation files for python-matplotlib. + +%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-qt4 +Summary: Qt4 backend for python3-matplotlib +BuildRequires: python3-PyQt4-devel +Requires: python3-matplotlib = %{version}-%{release} python3-matplotlib-qt5 python3-PyQt4 +%python_provide python3-matplotlib-qt4 + +%description -n python3-matplotlib-qt4 +The qt4 backend for python3-matplotlib. + +%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 +%autosetup -n matplotlib-%{version} -p1 -N +gzip -dc %SOURCE1000 | tar xvf - --transform='s~^mpl-images-2.2.3-with-freetype-2.9.1/\([^/]\+\)/~lib/\1/tests/baseline_images/~' +rm -r extern/libqhull +sed 's/\(backend = \).*/\1TkAgg/' >setup.cfg <%{SOURCE1} + +%build +export http_proxy=http://127.0.0.1/ +MPLCONFIGDIR=$PWD MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data xvfb-run %{__python2} setup.py build +find examples -name '*.py' -exec chmod a-x '{}' \; +MPLCONFIGDIR=$PWD MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data xvfb-run %{__python3} setup.py build + +%install +export http_proxy=http://127.0.0.1/ +MPLCONFIGDIR=$PWD MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data/ %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} +chmod +x %{buildroot}%{python2_sitearch}/matplotlib/dates.py +mkdir -p %{buildroot}%{_sysconfdir} %{buildroot}%{_datadir}/matplotlib +mv %{buildroot}%{python2_sitearch}/matplotlib/mpl-data/matplotlibrc %{buildroot}%{_sysconfdir} +mv %{buildroot}%{python2_sitearch}/matplotlib/mpl-data %{buildroot}%{_datadir}/matplotlib +MPLCONFIGDIR=$PWD MATPLOTLIBDATA=$PWD/lib/matplotlib/mpl-data/ %{__python3} setup.py install -O1 --skip-build --root=%{buildroot} +chmod +x %{buildroot}%{python3_sitearch}/matplotlib/dates.py +rm -fr %{buildroot}%{python3_sitearch}/matplotlib/mpl-data + +%files -n python-matplotlib-data +%{_sysconfdir}/matplotlibrc +%{_datadir}/matplotlib/mpl-data/ +%exclude %{_datadir}/matplotlib/mpl-data/fonts/ + +%files -n python-matplotlib-data-fonts +%{_datadir}/matplotlib/mpl-data/fonts/ + +%files -n python2-matplotlib +%doc README.rst LICENSE/ +%{python2_sitearch}/{*egg-info,matplotlib-*-nspkg.pth,matplotlib/,mpl_toolkits/,pylab.py*} +%exclude %{python2_sitearch}/matplotlib/tests/baseline_images/* +%exclude %{python2_sitearch}/mpl_toolkits/tests/baseline_images/* +%exclude %{python2_sitearch}/matplotlib/backends/{backend_qt4*,backend_qt5*,backend_gtk*,_gtkagg.*,backend_tkagg.*} +%exclude %{python2_sitearch}/matplotlib/backends/{tkagg.*,_tkagg.so,backend_wx.*,backend_wxagg.*} +%exclude %{_pkgdocdir}/{*,*/*} + +%files -n python2-matplotlib-test-data +%{python2_sitearch}/matplotlib/tests/baseline_images/ +%{python2_sitearch}/mpl_toolkits/tests/baseline_images/ + +%files -n python2-matplotlib-qt4 +%{python2_sitearch}/matplotlib/backends/{backend_qt4.*,backend_qt4agg.*} + +%files -n python2-matplotlib-qt5 +%{python2_sitearch}/matplotlib/backends/{backend_qt5.*,backend_qt5agg.*} + +%files -n python2-matplotlib-gtk +%{python2_sitearch}/matplotlib/backends/{backend_gtk.py*,backend_gtkagg.py*,backend_gtkcairo.py*,_gtkagg.so} + +%files -n python2-matplotlib-gtk3 +%{python2_sitearch}/matplotlib/backends/backend_gtk3*.py* + +%files -n python2-matplotlib-tk +%{python2_sitearch}/matplotlib/backends/{backend_tkagg.py*,tkagg.py*,_tkagg.so} + +%files -n python2-matplotlib-wx +%{python2_sitearch}/matplotlib/backends/{backend_wx.*,backend_wxagg.*} + +%files -n python2-matplotlib-help +%doc examples + +%files -n python3-matplotlib +%doc README.rst LICENSE/ +%{python3_sitearch}/{*egg-info,matplotlib-*-nspkg.pth,matplotlib/} +%{python3_sitearch}/mpl_toolkits/ +%{python3_sitearch}/{pylab.py*,__pycache__/*} +%exclude %{python3_sitearch}/matplotlib/tests/baseline_images/* +%exclude %{python3_sitearch}/mpl_toolkits/tests/baseline_images/* +%exclude %{python3_sitearch}/matplotlib/backends/{backend_qt4*,__pycache__/backend_qt4*} +%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.*} +%exclude %{_pkgdocdir}/*/ + +%files -n python3-matplotlib-test-data +%{python3_sitearch}/matplotlib/tests/baseline_images/ +%{python3_sitearch}/mpl_toolkits/tests/baseline_images/ + +%files -n python3-matplotlib-qt4 +%{python3_sitearch}/matplotlib/backends/{backend_qt4.*,__pycache__/backend_qt4.*} +%{python3_sitearch}/matplotlib/backends/{backend_qt4agg.*,__pycache__/backend_qt4agg.*} + +%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 +* Fri Mar 6 2020 chenli - 2.2.4-2 +- Init Package diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000000000000000000000000000000000..978e5f49f6697a3b814cddb3a6b4299ef22f38b4 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,7 @@ +[packages] +tests = True +toolkits = True +toolkits_tests = True + +[rc_options] +backend = GTKAgg