forked from pool/python-matplotlib
Accepting request 247122 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/247122 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=35
This commit is contained in:
committed by
Git OBS Bridge
parent
3adca68032
commit
39da1c4581
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-matplotlib
|
||||
Version: 1.3.1
|
||||
Version: 1.4.0
|
||||
Release: 0
|
||||
Summary: Plotting Library for Python
|
||||
License: SUSE-Matplotlib
|
||||
@@ -37,6 +37,7 @@ BuildRequires: ghostscript
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: poppler-tools
|
||||
BuildRequires: python-cairocffi
|
||||
BuildRequires: python-gtk
|
||||
BuildRequires: python-gtk-devel
|
||||
BuildRequires: python-numpy-devel >= 1.2.1
|
||||
@@ -64,11 +65,16 @@ Recommends: texlive-sfmath
|
||||
Recommends: texlive-tex
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1220
|
||||
BuildRequires: python-qt4
|
||||
BuildRequires: python-qt4-devel
|
||||
BuildRequires: texlive-dvipng
|
||||
BuildRequires: texlive-sfmath
|
||||
BuildRequires: texlive-tex
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1310
|
||||
BuildRequires: python-qt5
|
||||
BuildRequires: python-qt5-devel
|
||||
%endif
|
||||
%if 0%{?suse_version} < 1220
|
||||
BuildRequires: gnome-libs-devel
|
||||
BuildRequires: python-wxGTK
|
||||
@@ -88,9 +94,12 @@ BuildRequires: wxWidgets-devel
|
||||
## These packages are required to prevent that matplotlib installs it's
|
||||
## own versions of the packages from the lib directory
|
||||
BuildRequires: python-dateutil
|
||||
BuildRequires: python-tz
|
||||
BuildRequires: python-pytz
|
||||
Requires: python-dateutil
|
||||
Requires: python-pytz
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
|
||||
%description
|
||||
matplotlib is a python 2D plotting library which produces publication
|
||||
@@ -99,11 +108,23 @@ 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: python-cairocffi
|
||||
|
||||
%description cairo
|
||||
This package includes the non-interactive Cairo-based backend
|
||||
for the %{name} plotting package
|
||||
|
||||
%package gtk2
|
||||
Summary: GTK2 backends for %{name}
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %{name}-cairo = %{version}
|
||||
Requires: python-gtk
|
||||
|
||||
%description gtk2
|
||||
@@ -115,6 +136,7 @@ Summary: GTK3 backends for %{name}
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %{name}-cairo = %{version}
|
||||
Requires: python-gobject
|
||||
Requires: python-gobject-cairo
|
||||
|
||||
@@ -122,12 +144,23 @@ Requires: python-gobject-cairo
|
||||
This package includes the GTK3-based gtk3, gtk3agg, and
|
||||
gtk3cairo backends for the %{name} plotting package
|
||||
|
||||
%if 0%{?suse_version} > 1220
|
||||
%package qt-shared
|
||||
Summary: Shared files for the Qt backends for %{name}
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description qt-shared
|
||||
This package includes files needed by both the Qt4-based pyqt4 and
|
||||
pyside backends and the Qt5-based pyqt5 backend for the %{name}
|
||||
plotting package
|
||||
|
||||
%package qt4
|
||||
Summary: Qt4 backends for %{name}
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %{name}-qt-shared = %{version}
|
||||
Requires: python-pyside
|
||||
Requires: python-qt4
|
||||
|
||||
@@ -135,6 +168,18 @@ Requires: python-qt4
|
||||
This package includes the Qt4-based pyqt4 and pyside backends
|
||||
for the %{name} plotting package
|
||||
|
||||
%package qt5
|
||||
Summary: Qt5 backend for %{name}
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %{name}-qt-shared = %{version}
|
||||
Requires: python-qt5
|
||||
|
||||
%description qt5
|
||||
This package includes the Qt5-based pyqt5 backend
|
||||
for the %{name} plotting package
|
||||
|
||||
%package designer
|
||||
Summary: Qt Designer plugin for %{name}
|
||||
License: MIT
|
||||
@@ -147,7 +192,6 @@ This is a plugin and widget to let you use %{name}
|
||||
plots as widget in PyQt4 GUIs using Qt Designer
|
||||
|
||||
This plugin comes from Python(x,y)
|
||||
%endif
|
||||
|
||||
%package tk
|
||||
Summary: Tk backend for %{name}
|
||||
@@ -208,72 +252,88 @@ python setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
||||
%if 0%{?suse_version} > 1220
|
||||
mkdir -p %{buildroot}%{_libdir}/qt4/plugins/designer/python/
|
||||
install -vm 755 %{SOURCE2} %{buildroot}%{_libdir}/qt4/plugins/designer/python/
|
||||
install -vm 755 %{SOURCE3} %{buildroot}%{py_sitedir}/
|
||||
install -vm 755 %{SOURCE3} %{buildroot}%{python_sitearch}/
|
||||
%endif
|
||||
|
||||
%fdupes %{buildroot}%{py_sitedir}/matplotlib/tests/baseline_images/
|
||||
%fdupes %{buildroot}%{python_sitearch}/matplotlib/tests/baseline_images/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst LICENSE CHANGELOG PKG-INFO TODO CXX examples doc/users/license.rst
|
||||
%{py_sitedir}/matplotlib-%{version}_r0-py%{py_ver}.egg-info
|
||||
%{py_sitedir}/matplotlib-%{version}_r0-py%{py_ver}-nspkg.pth
|
||||
%{py_sitedir}/matplotlib/
|
||||
%{py_sitedir}/mpl_toolkits
|
||||
%exclude %{py_sitedir}/mpl_toolkits/gtktools.*
|
||||
%{py_sitedir}/pylab.py
|
||||
%{py_sitedir}/pylab.pyc
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_cairo.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_macosx.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/windowing.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/_backend_gdk.so
|
||||
%exclude %{py_sitedir}/matplotlib/backends/_gtkagg.so
|
||||
%exclude %{py_sitedir}/matplotlib/backends/_tkagg.so
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_cocoaagg.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_gdk.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_gtk.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_gtkagg.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_gtkcairo.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_gtk3.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_gtk3agg.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_gtk3cairo.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_qt4.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_qt4agg.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_tkagg.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_webagg.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_wx.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/backend_wxagg.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/qt4_compat.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/qt4_editor/
|
||||
%exclude %{py_sitedir}/matplotlib/backends/tkagg.*
|
||||
%exclude %{py_sitedir}/matplotlib/backends/web_backend/
|
||||
%doc README.rst LICENSE CHANGELOG PKG-INFO examples doc/users/license.rst
|
||||
%{python_sitearch}/matplotlib-%{version}_r0-py*.egg-info
|
||||
%{python_sitearch}/matplotlib-%{version}_r0-py*-nspkg.pth
|
||||
%{python_sitearch}/matplotlib/
|
||||
%{python_sitearch}/mpl_toolkits
|
||||
%{python_sitearch}/freetype2.so
|
||||
%{python_sitearch}/pylab.py*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/_backend_gdk.so
|
||||
%exclude %{python_sitearch}/matplotlib/backends/_gtkagg.so
|
||||
%exclude %{python_sitearch}/matplotlib/backends/_tkagg.so
|
||||
%exclude %{python_sitearch}/matplotlib/backends/backend_cairo.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/backend_cocoaagg.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/backend_gdk.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/backend_gtk.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/backend_gtkagg.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/backend_gtkcairo.*
|
||||
%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.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/backend_qt4agg.*
|
||||
%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/backend_wx.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/backend_wxagg.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/qt_compat.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/qt4_compat.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/tkagg.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/windowing.*
|
||||
%exclude %{python_sitearch}/matplotlib/backends/qt_editor/
|
||||
%exclude %{python_sitearch}/matplotlib/backends/web_backend/
|
||||
%exclude %{python_sitearch}/mpl_toolkits/gtktools.*
|
||||
|
||||
%files cairo
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitearch}/matplotlib/backends/backend_cairo.*
|
||||
|
||||
%files gtk2
|
||||
%defattr(-,root,root,-)
|
||||
%{py_sitedir}/matplotlib/backends/_backend_gdk.so
|
||||
%{py_sitedir}/matplotlib/backends/_gtkagg.so
|
||||
%{py_sitedir}/matplotlib/backends/backend_cairo.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_gdk.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_gtk.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_gtkagg.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_gtkcairo.*
|
||||
%{py_sitedir}/mpl_toolkits/gtktools.py*
|
||||
%{python_sitearch}/matplotlib/backends/_backend_gdk.so
|
||||
%{python_sitearch}/matplotlib/backends/_gtkagg.so
|
||||
%{python_sitearch}/matplotlib/backends/backend_gdk.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_gtk.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_gtkagg.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_gtkcairo.*
|
||||
%{python_sitearch}/mpl_toolkits/gtktools.py*
|
||||
|
||||
%if 0%{?suse_version} > 1110
|
||||
%files gtk3
|
||||
%defattr(-,root,root,-)
|
||||
%{py_sitedir}/matplotlib/backends/backend_gtk3.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_gtk3agg.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_gtk3cairo.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_gtk3.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_gtk3agg.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_gtk3cairo.*
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} > 1220
|
||||
%files qt-shared
|
||||
# IMPORTANT: the qt4 backend makes use of the qt5 backend,
|
||||
# which is actually a generic qt backend.
|
||||
# So we need to package all the qt5 stuff in this generic
|
||||
# package, and provide a stub package which pulls in the
|
||||
# python-qt5 dependency.
|
||||
%{python_sitearch}/matplotlib/backends/backend_qt5.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_qt5agg.*
|
||||
%{python_sitearch}/matplotlib/backends/qt_compat.*
|
||||
%{python_sitearch}/matplotlib/backends/qt4_compat.*
|
||||
%{python_sitearch}/matplotlib/backends/qt_editor/
|
||||
|
||||
%files qt4
|
||||
%defattr(-,root,root,-)
|
||||
%{py_sitedir}/matplotlib/backends/backend_qt4.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_qt4agg.*
|
||||
%{py_sitedir}/matplotlib/backends/qt4_compat.*
|
||||
%{py_sitedir}/matplotlib/backends/qt4_editor/
|
||||
%{python_sitearch}/matplotlib/backends/backend_qt4.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_qt4agg.*
|
||||
|
||||
%files designer
|
||||
%defattr(-,root,root,-)
|
||||
@@ -282,24 +342,36 @@ install -vm 755 %{SOURCE3} %{buildroot}%{py_sitedir}/
|
||||
%dir %{_libdir}/qt4/plugins/designer/
|
||||
%dir %{_libdir}/qt4/plugins/designer/python/
|
||||
%{_libdir}/qt4/plugins/designer/python/matplotlibplugin.py
|
||||
%{py_sitedir}/matplotlibwidget.py
|
||||
%{python_sitearch}/matplotlibwidget.py
|
||||
|
||||
%if 0%{?suse_version} > 1310
|
||||
%files qt5
|
||||
%defattr(-,root,root,-)
|
||||
# IMPORTANT: the qt4 backend makes use of the qt5 backend,
|
||||
# which is actually a generic qt backend.
|
||||
# So we need to package all the qt5 stuff in a generic
|
||||
# package, and provide this stub package which pulls in the
|
||||
# python-qt5 dependency.
|
||||
%doc README.rst
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%files tk
|
||||
%defattr(-,root,root,-)
|
||||
%{py_sitedir}/matplotlib/backends/windowing.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_tkagg.*
|
||||
%{py_sitedir}/matplotlib/backends/tkagg.*
|
||||
%{py_sitedir}/matplotlib/backends/_tkagg.so
|
||||
%{python_sitearch}/matplotlib/backends/windowing.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_tkagg.*
|
||||
%{python_sitearch}/matplotlib/backends/tkagg.*
|
||||
%{python_sitearch}/matplotlib/backends/_tkagg.so
|
||||
|
||||
%files web
|
||||
%defattr(-,root,root,-)
|
||||
%{py_sitedir}/matplotlib/backends/backend_webagg.*
|
||||
%{py_sitedir}/matplotlib/backends/web_backend/
|
||||
%{python_sitearch}/matplotlib/backends/backend_webagg.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_webagg_core.*
|
||||
%{python_sitearch}/matplotlib/backends/web_backend/
|
||||
|
||||
%files wx
|
||||
%defattr(-,root,root,-)
|
||||
%{py_sitedir}/matplotlib/backends/backend_wx.*
|
||||
%{py_sitedir}/matplotlib/backends/backend_wxagg.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_wx.*
|
||||
%{python_sitearch}/matplotlib/backends/backend_wxagg.*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user