1
0

Accepting request 250125 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/250125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=38
This commit is contained in:
Stephan Kulow 2014-09-19 11:56:26 +00:00 committed by Git OBS Bridge
parent 887a92432c
commit d948f4d5e9
2 changed files with 34 additions and 8 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Sep 18 15:21:01 UTC 2014 - toddrme2178@gmail.com
- Create subpackage to pull in latex dependencies so they are more
visible to users.
- Comment out testing BuildRequires since we aren't doing testing.
We aren't doing testing because it takes a long time and a lot
of packages depend on matplotlib, so it slows down the build
process for python packages too much.
-------------------------------------------------------------------
Wed Sep 17 15:23:25 UTC 2014 - jmatejek@suse.com

View File

@ -48,9 +48,10 @@ BuildRequires: python-pytz
BuildRequires: python-setuptools
BuildRequires: python-six >= 1.3
BuildRequires: qhull-devel >= 2003.1
# needed for testing
BuildRequires: python-mock
BuildRequires: python-nose
# needed for testing -- Not doing tests because they take too long
# BuildRequires: inkscape
# BuildRequires: python-mock
# BuildRequires: python-nose
# cairo dependencies
BuildRequires: python-cairocffi
# GTK dependencies
@ -99,11 +100,6 @@ Recommends: libxml2-tools
Recommends: python-Pillow
Recommends: poppler-tools
Recommends: python-matplotlib-tk
Suggests: inkscape
Suggests: texlive-dvipng
Suggests: texlive-latex
Suggests: texlive-sfmath
Suggests: texlive-tex
%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
@ -151,6 +147,20 @@ Requires: python-gobject
This package includes the GTK3-based gtk3, gtk3agg, and
gtk3cairo backends for the %{name} plotting package
%package latex
Summary: Allow rendering latex in %{name}
License: BSD-2-Clause
Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: texlive-dvipng
Requires: texlive-latex
Requires: texlive-sfmath
Requires: texlive-tex
%description latex
This package allows %{name} to display latex in plots
and figures.
%package qt-shared
Summary: Shared files for the Qt backends for %{name}
License: BSD-2-Clause
@ -316,6 +326,12 @@ install -vm 755 %{SOURCE3} %{buildroot}%{python_sitearch}/
%{python_sitearch}/matplotlib/backends/backend_gtk3agg.*
%{python_sitearch}/matplotlib/backends/backend_gtk3cairo.*
# Dummy package to pull in latex dependencies.
%files latex
%defattr(-,root,root,-)
%doc doc/users/usetex.rst
# 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