forked from pool/mathjax
- Update version to 3.2.2
* Prevent lazy typesetting from re-typeset expressions unnecessarily, which can cause duplicate-label error messages in the output, and degrade performance. * Improve method for obtaining the <math> element from mml3 conversion, allowing it to work better in an XHTML setting. * Make version.ts use a constant and create the file during the build process rather than dynamically determining the version. This allows easier packaging of MathJax into other applications. - Update version to 2.7.9 This release updates the Speech-Rule Engine (SRE) that underlies MathJax's accessibility features to version 3.1 and updates the a11y extensions to version 1.6.0 to take advantage of the new SRE version. The upgrade includes new languages (German and French), and access to the Clearspeak rules via the accessibility menu, as well as bug fixes in SRE, and faster conversion of expressions to speech. OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mathjax?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c9167279c87da044f2ff910ad573a02ce90354cb59440ae568eb86e1630f65df
|
||||
size 25707631
|
3
mathjax-3.2.2.tar.gz
Normal file
3
mathjax-3.2.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4206b9645a97f431018d0b6c4021c98607d49ba4dc129f4f2ecce675e2fcba11
|
||||
size 6191341
|
@@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 19 12:52:26 UTC 2024 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Update version to 3.2.2
|
||||
* Prevent lazy typesetting from re-typeset expressions unnecessarily, which
|
||||
can cause duplicate-label error messages in the output, and degrade
|
||||
performance.
|
||||
* Improve method for obtaining the <math> element from mml3 conversion,
|
||||
allowing it to work better in an XHTML setting.
|
||||
* Make version.ts use a constant and create the file during the build process
|
||||
rather than dynamically determining the version. This allows easier
|
||||
packaging of MathJax into other applications.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 18 12:08:15 UTC 2024 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Update version to 2.7.9
|
||||
This release updates the Speech-Rule Engine (SRE) that underlies MathJax's
|
||||
accessibility features to version 3.1 and updates the a11y extensions to
|
||||
version 1.6.0 to take advantage of the new SRE version. The upgrade includes
|
||||
new languages (German and French), and access to the Clearspeak rules via
|
||||
the accessibility menu, as well as bug fixes in SRE, and faster conversion
|
||||
of expressions to speech.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 26 16:50:13 UTC 2021 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
102
mathjax.spec
102
mathjax.spec
@@ -18,16 +18,18 @@
|
||||
|
||||
%{!?_fontsdir:%global _fontsdir %{_datadir}/fonts}
|
||||
Name: mathjax
|
||||
Version: 2.7.9
|
||||
Version: 3.2.2
|
||||
Release: 0
|
||||
Summary: JavaScript library to render math in the browser
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://mathjax.org
|
||||
Source0: https://github.com/mathjax/MathJax/archive/%{version}.tar.gz#/mathjax-%{version}.tar.gz
|
||||
Source0: https://github.com/mathjax/MathJax/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: fontpackages-devel
|
||||
BuildRequires: nodejs
|
||||
BuildRequires: nodejs-packaging
|
||||
Requires: %{name}-ams-fonts
|
||||
Requires: %{name}-caligraphic-fonts
|
||||
Requires: %{name}-calligraphic-fonts
|
||||
Requires: %{name}-fraktur-fonts
|
||||
Requires: %{name}-main-fonts
|
||||
Requires: %{name}-math-fonts
|
||||
@@ -37,12 +39,11 @@ Requires: %{name}-size1-fonts
|
||||
Requires: %{name}-size2-fonts
|
||||
Requires: %{name}-size3-fonts
|
||||
Requires: %{name}-size4-fonts
|
||||
Requires: %{name}-stixweb-fonts
|
||||
Requires: %{name}-typewriter-fonts
|
||||
Requires: %{name}-vector-fonts
|
||||
Requires: %{name}-winchrome-fonts
|
||||
Requires: %{name}-winie6-fonts
|
||||
Requires: %{name}-zero-fonts
|
||||
BuildArch: noarch
|
||||
%{?nodejs_requires}
|
||||
|
||||
%description
|
||||
MathJax is an open-source JavaScript display engine for LaTeX, MathML,
|
||||
@@ -64,12 +65,12 @@ Group: System/X11/Fonts
|
||||
%description ams-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package caligraphic-fonts
|
||||
%package calligraphic-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL-1.1
|
||||
Group: System/X11/Fonts
|
||||
|
||||
%description caligraphic-fonts
|
||||
%description calligraphic-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package fraktur-fonts
|
||||
@@ -152,22 +153,6 @@ Group: System/X11/Fonts
|
||||
%description size4-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package winie6-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL-1.1
|
||||
Group: System/X11/Fonts
|
||||
|
||||
%description winie6-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package winchrome-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL-1.1
|
||||
Group: System/X11/Fonts
|
||||
|
||||
%description winchrome-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package vector-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL-1.1
|
||||
@@ -176,76 +161,35 @@ Group: System/X11/Fonts
|
||||
%description vector-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package stixweb-fonts
|
||||
%package zero-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL-1.1
|
||||
Group: System/X11/Fonts
|
||||
|
||||
%description stixweb-fonts
|
||||
%description zero-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n MathJax-%{version}
|
||||
# Remove bundled fonts
|
||||
rm -rf MathJax-2.4.0/jax/output
|
||||
rm -rf MathJax-2.4.0/fonts/HTML-CSS/{Asana-Math,Gyre-Pagella,Gyre-Termes,Latin-Modern,Neo-Euler,STIX-Web}
|
||||
|
||||
# Remove minified javascript.
|
||||
for i in $(find . -type f -path '*unpacked*'); do \
|
||||
mv $i ${i//unpacked/}; done
|
||||
find . -depth -type d -path '*unpacked*' -delete
|
||||
for i in MathJax.js jax/output/HTML-CSS/jax.js jax/output/HTML-CSS/imageFonts.js; do \
|
||||
sed -r 's#(MathJax|BASE)[.]isPacked#1#' <$i >$i.tmp; \
|
||||
touch -r $i $i.tmp; \
|
||||
mv $i.tmp $i; \
|
||||
done
|
||||
|
||||
%build
|
||||
# minification should be performed here at some point
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_datadir}/javascript/mathjax
|
||||
cp -pr MathJax.js config/ extensions/ jax/ localization/ test/ \
|
||||
%{buildroot}%{_datadir}/javascript/mathjax/
|
||||
|
||||
# TeX fonts
|
||||
mkdir -p %{buildroot}%{_datadir}/javascript/mathjax/fonts/HTML-CSS/TeX/
|
||||
cp -pr fonts/HTML-CSS/TeX/png %{buildroot}%{_datadir}/javascript/mathjax/fonts/HTML-CSS/TeX/
|
||||
|
||||
mkdir -p %{buildroot}%{_fontsdir}
|
||||
cp -pr fonts/HTML-CSS/TeX/*/MathJax_*.{eot,otf,svg} %{buildroot}%{_fontsdir}
|
||||
|
||||
for t in eot otf svg; do \
|
||||
mkdir -p %{buildroot}%{_datadir}/javascript/mathjax/fonts/HTML-CSS/TeX/$t; \
|
||||
for i in fonts/HTML-CSS/TeX/$t/MathJax_*.$t; do \
|
||||
ln -s %{_fontsdir}/$(basename $i) \
|
||||
%{buildroot}%{_datadir}/javascript/mathjax/fonts/HTML-CSS/TeX/$t/; \
|
||||
done \
|
||||
done
|
||||
|
||||
# STIX-Web fonts
|
||||
mkdir -p %{buildroot}%{_datadir}/javascript/mathjax/fonts/HTML-CSS/STIX-Web/
|
||||
cp -pr fonts/HTML-CSS/STIX-Web/*/STIXMathJax_*.{eot,otf} %{buildroot}%{_fontsdir}
|
||||
|
||||
for t in eot otf; do \
|
||||
mkdir -p %{buildroot}%{_datadir}/javascript/mathjax/fonts/HTML-CSS/STIX-Web/$t; \
|
||||
for i in fonts/HTML-CSS/STIX-Web/$t/STIXMathJax_*.$t; do \
|
||||
ln -s %{_fontsdir}/$(basename $i) \
|
||||
%{buildroot}%{_datadir}/javascript/mathjax/fonts/HTML-CSS/STIX-Web/$t/; \
|
||||
done \
|
||||
done
|
||||
%nodejs_install
|
||||
install -d %{buildroot}%{_fontsdir}
|
||||
cp es5/output/chtml/fonts/woff-v2/*.woff %{buildroot}%{_fontsdir}
|
||||
|
||||
%files
|
||||
%dir %{_datadir}/javascript
|
||||
%{_datadir}/javascript/mathjax
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%dir %{nodejs_modulesdir}
|
||||
%{nodejs_modulesdir}/%{name}
|
||||
|
||||
%files ams-fonts
|
||||
%{_fontsdir}/MathJax_AMS-Regular.*
|
||||
|
||||
%files caligraphic-fonts
|
||||
%{_fontsdir}/MathJax_Caligraphic-*.*
|
||||
%files calligraphic-fonts
|
||||
%{_fontsdir}/MathJax_Calligraphic-*.*
|
||||
|
||||
%files fraktur-fonts
|
||||
%{_fontsdir}/MathJax_Fraktur-*.*
|
||||
@@ -277,16 +221,10 @@ done
|
||||
%files size4-fonts
|
||||
%{_fontsdir}/MathJax_Size4-*.*
|
||||
|
||||
%files winie6-fonts
|
||||
%{_fontsdir}/MathJax_WinIE6-*.*
|
||||
|
||||
%files winchrome-fonts
|
||||
%{_fontsdir}/MathJax_WinChrome-*.*
|
||||
|
||||
%files vector-fonts
|
||||
%{_fontsdir}/MathJax_Vector-*.*
|
||||
|
||||
%files stixweb-fonts
|
||||
%{_fontsdir}/STIXMathJax_*.*
|
||||
%files zero-fonts
|
||||
%{_fontsdir}/MathJax_Zero.*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user