#1 Update to latest upstream release 2.7.4 and package the STIXWeb fonts.
Merged 5 years ago by zbyszek. Opened 6 years ago by jgu.
Unknown source master  into  master

file modified
+1
@@ -1,3 +1,4 @@

  /v2.2.tar.gz

  /2.4.0.tar.gz

  /mathjax-2.7.1.tar.gz

+ /mathjax-2.7.4.tar.gz

file modified
+44 -5
@@ -1,6 +1,6 @@

  Name:       mathjax

- Version:    2.7.1

- Release:    3%{?dist}

+ Version:    2.7.4

+ Release:    2%{?dist}

  Summary:    JavaScript library to render math in the browser

  License:    ASL 2.0

  URL:        http://mathjax.org
@@ -26,6 +26,8 @@

  Requires:        %{name}-size1-fonts

  Requires:        %{name}-winie6-fonts

  Requires:        %{name}-winchrome-fonts

+ Requires:        %{name}-vector-fonts

+ Requires:        %{name}-stixweb-fonts

  

  %description

  MathJax is an open-source JavaScript display engine for LaTeX, MathML,
@@ -136,11 +138,25 @@

  %description   winchrome-fonts

  %{fontsummary}.

  

+ %package       vector-fonts

+ Summary:       %{fontsummary}

+ Requires:      fontpackages-filesystem

+ License:       OFL

+ %description   vector-fonts

+ %{fontsummary}.

+ 

+ %package       stixweb-fonts

+ Summary:       %{fontsummary}

+ Requires:      fontpackages-filesystem

+ License:       OFL

+ %description   stixweb-fonts

+ %{fontsummary}.

+ 

  %prep

  %setup -q -n MathJax-%{version}

  # Remove bundled fonts

  rm -rf MathJax-%{version}/jax/output

- rm -rf MathJax-%{version}/fonts/HTML-CSS/{Asana-Math,Gyre-Pagella,Gyre-Termes,Latin-Modern,Neo-Euler,STIX-Web}

+ rm -rf MathJax-%{version}/fonts/HTML-CSS/{Asana-Math,Gyre-Pagella,Gyre-Termes,Latin-Modern,Neo-Euler}

  

  # Remove minified javascript.

  for i in $(find . -type f -path '*unpacked*'); do \
@@ -163,11 +179,13 @@

  cp -pr MathJax.js config/ extensions/ jax/ localization/ test/ \

      %{buildroot}%{_jsdir}/mathjax/

  

+ mkdir -p %{buildroot}%{_fontdir}

+ 

+ # TeX fonts

  mkdir -p %{buildroot}%{_jsdir}/mathjax/fonts/HTML-CSS/TeX/

  cp -pr fonts/HTML-CSS/TeX/png %{buildroot}%{_jsdir}/mathjax/fonts/HTML-CSS/TeX/

  

- mkdir -p %{buildroot}%{_fontdir}

- cp -pr fonts/HTML-CSS/TeX/*/MathJax_$i*.{eot,otf,svg} %{buildroot}%{_fontdir}

+ cp -pr fonts/HTML-CSS/TeX/*/MathJax_*.{eot,otf,svg} %{buildroot}%{_fontdir}

  

  for t in eot otf svg; do \

      mkdir -p %{buildroot}%{_jsdir}/mathjax/fonts/HTML-CSS/TeX/$t; \
@@ -177,6 +195,18 @@

      done \

  done

  

+ # STIX-Web fonts

+ mkdir -p %{buildroot}%{_jsdir}/mathjax/fonts/HTML-CSS/STIX-Web/

+ cp -pr fonts/HTML-CSS/STIX-Web/*/STIXMathJax_*.{eot,otf} %{buildroot}%{_fontdir}

+ 

+ for t in eot otf; do \

+     mkdir -p %{buildroot}%{_jsdir}/mathjax/fonts/HTML-CSS/STIX-Web/$t; \

+     for i in fonts/HTML-CSS/STIX-Web/$t/STIXMathJax_*.$t; do \

+         ln -s %{_fontdir}/$(basename $i) \

+             %{buildroot}%{_jsdir}/mathjax/fonts/HTML-CSS/STIX-Web/$t/; \

+     done \

+ done

+ 

  %files

  %{_jsdir}/mathjax

  %doc README.md LICENSE
@@ -195,8 +225,17 @@

  %_font_pkg -n %{name}-Size4 MathJax_Size4*.eot MathJax_Size4*.otf MathJax_Size4*.svg

  %_font_pkg -n %{name}-WinIE6 MathJax_WinIE6*.eot MathJax_WinIE6*.otf

  %_font_pkg -n %{name}-WinChrome MathJax_WinChrome*.otf MathJax_WinChrome*.svg

+ %_font_pkg -n %{name}-Vector MathJax_Vector*.eot MathJax_Vector*.otf MathJax_WinChrome*.svg

+ %_font_pkg -n %{name}-STIXWeb STIXMathJax_*.eot STIXMathJax_*.otf

  

  %changelog

+ * Sat May 26 2018 Jonathan Underwood <jonathan.underwood@gmail.com> - 2.7.4-2

+ - Add a sub-package for the STIXWeb fonts

+ 

+ * Sat May 26 2018 Jonathan Underwood <jonathan.underwood@gmail.com> - 2.7.4-1

+ - Update to upstream version 2.7.4

+ - Add sub-package for new Vector fonts

+ 

  * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-3

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@

- SHA512 (mathjax-2.7.1.tar.gz) = d030456942c5cbc82a56d1952f39530be005a64be389d5ea6325270b4cd0290d31e19e3a3abb95f119dca43dde6ccd9d34401c717d199f5f05fb330482102452

+ SHA512 (mathjax-2.7.4.tar.gz) = cddc4c64c188620307f0ede3b0bc7ba071f78702ba6315426d8c83129543a6b81a3a9a115f88017e23b5094b7aefd934c39aeec9688419830e33f9fd0fb1de7e

This PR

  • Updates to the latest upstream bugfix release (2.7.4)
  • Adds a sub-package for the STIXWeb fonts, which are needed for Jupyter/python-notebook to render mathematics properly - BZ#1580129

1 new commit added

  • Remove undefined variable use in spec
6 years ago

I wonder if the STIX fonts should be split up into one sub-package per font family ?

Pull-Request has been merged by zbyszek

5 years ago