7
0
forked from pool/mathjax

Accepting request 1234955 from devel:languages:javascript

OBS-URL: https://build.opensuse.org/request/show/1234955
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mathjax?expand=0&rev=4
This commit is contained in:
2025-01-05 14:32:04 +00:00
committed by Git OBS Bridge
4 changed files with 58 additions and 72 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1c2be5eeb6d423eaaa5fd162602ad482a2c3fb923844c94cca2e748ece267a68
size 24549340

3
mathjax-3.2.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4206b9645a97f431018d0b6c4021c98607d49ba4dc129f4f2ecce675e2fcba11
size 6191341

View File

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

View File

@@ -1,7 +1,7 @@
#
# spec file for package mathjax
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,18 @@
%{!?_fontsdir:%global _fontsdir %{_datadir}/fonts}
Name: mathjax
Version: 2.6.0
Version: 3.2.2
Release: 0
Summary: JavaScript library to render math in the browser
Group: Development/Libraries/Java
License: Apache-2.0
URL: http://mathjax.org
Source0: https://github.com/mathjax/MathJax/archive/%{version}.tar.gz
Group: Development/Libraries/Java
URL: https://mathjax.org
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
@@ -38,9 +40,10 @@ Requires: %{name}-size2-fonts
Requires: %{name}-size3-fonts
Requires: %{name}-size4-fonts
Requires: %{name}-typewriter-fonts
Requires: %{name}-winchrome-fonts
Requires: %{name}-winie6-fonts
Requires: %{name}-vector-fonts
Requires: %{name}-zero-fonts
BuildArch: noarch
%{?nodejs_requires}
%description
MathJax is an open-source JavaScript display engine for LaTeX, MathML,
@@ -52,6 +55,7 @@ naturally and easily. Supports LaTeX, MathML, and AsciiMath notation
in HTML pages.
%global fontsummary Fonts used by MathJax to display math in the browser
License: Apache-2.0
%package ams-fonts
Summary: %{fontsummary}
@@ -61,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
@@ -149,120 +153,78 @@ Group: System/X11/Fonts
%description size4-fonts
%{fontsummary}.
%package winie6-fonts
%package vector-fonts
Summary: %{fontsummary}
License: OFL-1.1
Group: System/X11/Fonts
%description winie6-fonts
%description vector-fonts
%{fontsummary}.
%package winchrome-fonts
%package zero-fonts
Summary: %{fontsummary}
License: OFL-1.1
Group: System/X11/Fonts
%description winchrome-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/
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_$i*.{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
%nodejs_install
install -d %{buildroot}%{_fontsdir}
cp es5/output/chtml/fonts/woff-v2/*.woff %{buildroot}%{_fontsdir}
%files
%defattr(-,root,root)
%dir %{_datadir}/javascript
%{_datadir}/javascript/mathjax
%doc README.md LICENSE
%license LICENSE
%doc README.md
%dir %{nodejs_modulesdir}
%{nodejs_modulesdir}/%{name}
%files ams-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_AMS-Regular.*
%files caligraphic-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Caligraphic-*.*
%files calligraphic-fonts
%{_fontsdir}/MathJax_Calligraphic-*.*
%files fraktur-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Fraktur-*.*
%files main-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Main-*.*
%files math-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Math-*.*
%files sansserif-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_SansSerif-*.*
%files script-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Script-*.*
%files typewriter-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Typewriter-*.*
%files size1-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Size1-*.*
%files size2-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Size2-*.*
%files size3-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Size3-*.*
%files size4-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_Size4-*.*
%files winie6-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_WinIE6-*.*
%files vector-fonts
%{_fontsdir}/MathJax_Vector-*.*
%files winchrome-fonts
%defattr(-,root,root)
%{_fontsdir}/MathJax_WinChrome-*.*
%files zero-fonts
%{_fontsdir}/MathJax_Zero.*
%changelog