forked from pool/mathjax
osc copypac from project:Java:packages package:mathjax revision:11
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mathjax?expand=0&rev=1
This commit is contained in:
3
mathjax-2.7.9.tar.gz
Normal file
3
mathjax-2.7.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c9167279c87da044f2ff910ad573a02ce90354cb59440ae568eb86e1630f65df
|
||||
size 25707631
|
67
mathjax.spec
67
mathjax.spec
@@ -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,13 +18,13 @@
|
||||
|
||||
%{!?_fontsdir:%global _fontsdir %{_datadir}/fonts}
|
||||
Name: mathjax
|
||||
Version: 2.6.0
|
||||
Version: 2.7.9
|
||||
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}.tar.gz#/mathjax-%{version}.tar.gz
|
||||
BuildRequires: fontpackages-devel
|
||||
Requires: %{name}-ams-fonts
|
||||
Requires: %{name}-caligraphic-fonts
|
||||
@@ -38,6 +38,7 @@ Requires: %{name}-size2-fonts
|
||||
Requires: %{name}-size3-fonts
|
||||
Requires: %{name}-size4-fonts
|
||||
Requires: %{name}-typewriter-fonts
|
||||
Requires: %{name}-vector-fonts
|
||||
Requires: %{name}-winchrome-fonts
|
||||
Requires: %{name}-winie6-fonts
|
||||
BuildArch: noarch
|
||||
@@ -52,6 +53,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}
|
||||
@@ -165,6 +167,22 @@ Group: System/X11/Fonts
|
||||
%description winchrome-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package vector-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL-1.1
|
||||
Group: System/X11/Fonts
|
||||
|
||||
%description vector-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package stixweb-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL-1.1
|
||||
Group: System/X11/Fonts
|
||||
|
||||
%description stixweb-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%prep
|
||||
%setup -q -n MathJax-%{version}
|
||||
# Remove bundled fonts
|
||||
@@ -189,11 +207,12 @@ 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_$i*.{eot,otf,svg} %{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; \
|
||||
@@ -203,66 +222,70 @@ for t in eot otf svg; do \
|
||||
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
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_datadir}/javascript
|
||||
%{_datadir}/javascript/mathjax
|
||||
%doc README.md LICENSE
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
|
||||
%files ams-fonts
|
||||
%defattr(-,root,root)
|
||||
%{_fontsdir}/MathJax_AMS-Regular.*
|
||||
|
||||
%files caligraphic-fonts
|
||||
%defattr(-,root,root)
|
||||
%{_fontsdir}/MathJax_Caligraphic-*.*
|
||||
|
||||
%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 winchrome-fonts
|
||||
%defattr(-,root,root)
|
||||
%{_fontsdir}/MathJax_WinChrome-*.*
|
||||
|
||||
%files vector-fonts
|
||||
%{_fontsdir}/MathJax_Vector-*.*
|
||||
|
||||
%files stixweb-fonts
|
||||
%{_fontsdir}/STIXMathJax_*.*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user