forked from pool/mathjax
Accepting request 351807 from home:posophe:multimedia
Java math library OBS-URL: https://build.opensuse.org/request/show/351807 OBS-URL: https://build.opensuse.org/package/show/Java:packages/mathjax?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
2.6.0.tar.gz
Normal file
3
2.6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c2be5eeb6d423eaaa5fd162602ad482a2c3fb923844c94cca2e748ece267a68
|
||||
size 24549340
|
5
mathjax.changes
Normal file
5
mathjax.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 3 18:35:09 UTC 2016 - p.drouand@gmail.com
|
||||
|
||||
- Initial release (version 2.6.0)
|
||||
|
266
mathjax.spec
Normal file
266
mathjax.spec
Normal file
@@ -0,0 +1,266 @@
|
||||
#
|
||||
# spec file for package spec
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: mathjax
|
||||
Version: 2.6.0
|
||||
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
|
||||
BuildRequires: fontpackages-devel
|
||||
Requires: %{name}-ams-fonts
|
||||
Requires: %{name}-caligraphic-fonts
|
||||
Requires: %{name}-fraktur-fonts %{name}-main-fonts
|
||||
Requires: %{name}-math-fonts
|
||||
Requires: %{name}-sansserif-fonts
|
||||
Requires: %{name}-script-fonts
|
||||
Requires: %{name}-size1-fonts
|
||||
Requires: %{name}-size2-fonts
|
||||
Requires: %{name}-size3-fonts
|
||||
Requires: %{name}-size4-fonts
|
||||
Requires: %{name}-typewriter-fonts
|
||||
Requires: %{name}-winchrome-fonts
|
||||
Requires: %{name}-winie6-fonts
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
MathJax is an open-source JavaScript display engine for LaTeX, MathML,
|
||||
and AsciiMath notation that works in all modern browsers. It requires no
|
||||
setup on the part of the user (no plugins to download or software to
|
||||
install), so the page author can write web documents that include
|
||||
mathematics and be confident that users will be able to view it
|
||||
naturally and easily. Supports LaTeX, MathML, and AsciiMath notation
|
||||
in HTML pages.
|
||||
|
||||
%global fontsummary Fonts used by MathJax to display math in the browser
|
||||
|
||||
%package ams-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description ams-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package caligraphic-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description caligraphic-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package fraktur-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description fraktur-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package main-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description main-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package math-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description math-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package sansserif-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description sansserif-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package script-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description script-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package typewriter-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description typewriter-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package size1-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description size1-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package size2-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description size2-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package size3-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description size3-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package size4-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description size4-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package winie6-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description winie6-fonts
|
||||
%{fontsummary}.
|
||||
|
||||
%package winchrome-fonts
|
||||
Summary: %{fontsummary}
|
||||
License: OFL1.1
|
||||
Group: System/X11/fonts
|
||||
|
||||
%description winchrome-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
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_datadir}/javascript
|
||||
%{_datadir}/javascript/mathjax
|
||||
%doc README.md LICENSE
|
||||
|
||||
%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-*.*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user