| |
@@ -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
|
| |
|
| |
This PR