From d803cfe71f9bd6a75942b87d2f880ee24387f808a0f64d1a80ddf3474f0c53a0 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 19 Sep 2014 11:56:26 +0000 Subject: [PATCH] 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 --- python-matplotlib.changes | 10 ++++++++++ python-matplotlib.spec | 32 ++++++++++++++++++++++++-------- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/python-matplotlib.changes b/python-matplotlib.changes index f029da0..a09bc9d 100644 --- a/python-matplotlib.changes +++ b/python-matplotlib.changes @@ -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 diff --git a/python-matplotlib.spec b/python-matplotlib.spec index 8a78e7f..4ec165c 100644 --- a/python-matplotlib.spec +++ b/python-matplotlib.spec @@ -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