#27 Only recommend dvipng (but require it if texlive is installed)
Merged 3 years ago by qulogic. Opened 3 years ago by churchyard.
rpms/ churchyard/python-matplotlib tex-recommends  into  master

file modified
+7 -3
@@ -44,7 +44,7 @@ 

  

  Name:           python-matplotlib

  Version:        3.2.1

- Release:        1%{?rctag:.%{rctag}}%{?dist}.1

+ Release:        2%{?rctag:.%{rctag}}%{?dist}

  Summary:        Python 2D plotting library

  # qt4_editor backend is MIT

  License:        Python and MIT
@@ -156,7 +156,8 @@ 

  BuildRequires:  python3-pytz

  BuildRequires:  python3-sphinx

  Requires:       dejavu-sans-fonts

- Requires:       dvipng

+ Recommends:     texlive-dvipng

+ Requires:       (texlive-dvipng if texlive-base)

  Requires:       python3-matplotlib-data = %{version}-%{release}

  Requires:       python3-cairo

  Requires:       python3-cycler >= 0.10.0
@@ -247,7 +248,7 @@ 

  %package -n python3-matplotlib-doc

  Summary:        Documentation files for python-matplotlib

  %if %{with_html}

- BuildRequires:  dvipng

+ BuildRequires:  texlive-dvipng

  BuildRequires:  graphviz

  BuildRequires:  python3-sphinx

  BuildRequires:  tex(latex)
@@ -447,6 +448,9 @@ 

  

  

  %changelog

+ * Mon Jun 01 2020 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-2

+ - Only recommend texlive-dvipng (but require it if texlive is installed) (#1509657)

+ 

  * Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-1.1

  - Rebuilt for Python 3.9

  

Out of the scope of the review, but the use of the %{rctag} in Release seems problematic.

Review:

  1. Just to double check, if you first install matplotlib (without dvipng), then install texlive-base, then dvipng will be forced to install, correct?

  2. dvipng is obsoleted by texlive-dvipng-bin which is now only a provide from package texlive-dvipng.

Out of the scope of the review, but the use of the %{rctag} in Release seems problematic.

Indeed.

  1. correct
  2. texlive-dvipng provides dvipng. do you think we should require texlive-dvipng?

TWO. Yes, it seems the best option.

(I hate handling of numbers here :) )

rebased onto 713ad40

3 years ago

simple-koji-ci fails because numpy was updated once again.

Pull-Request has been merged by qulogic

3 years ago