2016-01-08 10:29:12 +00:00
|
|
|
#
|
2021-07-26 16:50:39 +00:00
|
|
|
# spec file for package mathjax
|
2016-01-08 10:29:12 +00:00
|
|
|
#
|
2023-08-31 10:25:17 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-01-08 10:29:12 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-07-26 16:50:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-01-08 10:29:12 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-07-26 16:50:39 +00:00
|
|
|
%{!?_fontsdir:%global _fontsdir %{_datadir}/fonts}
|
2016-01-08 10:29:12 +00:00
|
|
|
Name: mathjax
|
2025-01-04 21:21:27 +00:00
|
|
|
Version: 3.2.2
|
2016-01-08 10:29:12 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: JavaScript library to render math in the browser
|
2019-02-07 08:13:57 +00:00
|
|
|
License: Apache-2.0
|
2023-08-31 10:25:17 +00:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://mathjax.org
|
2025-01-04 21:21:27 +00:00
|
|
|
Source0: https://github.com/mathjax/MathJax/archive/%{version}/%{name}-%{version}.tar.gz
|
2016-01-08 10:29:12 +00:00
|
|
|
BuildRequires: fontpackages-devel
|
2025-01-04 21:21:27 +00:00
|
|
|
BuildRequires: nodejs
|
|
|
|
BuildRequires: nodejs-packaging
|
2016-01-08 10:29:12 +00:00
|
|
|
Requires: %{name}-ams-fonts
|
2025-01-04 21:21:27 +00:00
|
|
|
Requires: %{name}-calligraphic-fonts
|
2021-07-26 16:50:39 +00:00
|
|
|
Requires: %{name}-fraktur-fonts
|
|
|
|
Requires: %{name}-main-fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
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
|
2023-08-31 10:25:17 +00:00
|
|
|
Requires: %{name}-vector-fonts
|
2025-01-04 21:21:27 +00:00
|
|
|
Requires: %{name}-zero-fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
BuildArch: noarch
|
2025-01-04 21:21:27 +00:00
|
|
|
%{?nodejs_requires}
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%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
|
2023-08-31 10:25:17 +00:00
|
|
|
License: Apache-2.0
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%package ams-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description ams-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
2025-01-04 21:21:27 +00:00
|
|
|
%package calligraphic-fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
2025-01-04 21:21:27 +00:00
|
|
|
%description calligraphic-fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package fraktur-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description fraktur-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package main-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description main-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package math-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description math-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package sansserif-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description sansserif-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package script-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description script-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package typewriter-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description typewriter-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package size1-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description size1-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package size2-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description size2-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package size3-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description size3-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
|
|
|
%package size4-fonts
|
|
|
|
Summary: %{fontsummary}
|
2016-03-03 17:27:01 +00:00
|
|
|
License: OFL-1.1
|
2016-07-02 17:35:24 +00:00
|
|
|
Group: System/X11/Fonts
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%description size4-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
2023-08-31 10:25:17 +00:00
|
|
|
%package vector-fonts
|
|
|
|
Summary: %{fontsummary}
|
|
|
|
License: OFL-1.1
|
|
|
|
Group: System/X11/Fonts
|
|
|
|
|
|
|
|
%description vector-fonts
|
|
|
|
%{fontsummary}.
|
|
|
|
|
2025-01-04 21:21:27 +00:00
|
|
|
%package zero-fonts
|
2023-08-31 10:25:17 +00:00
|
|
|
Summary: %{fontsummary}
|
|
|
|
License: OFL-1.1
|
|
|
|
Group: System/X11/Fonts
|
|
|
|
|
2025-01-04 21:21:27 +00:00
|
|
|
%description zero-fonts
|
2023-08-31 10:25:17 +00:00
|
|
|
%{fontsummary}.
|
|
|
|
|
2016-01-08 10:29:12 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n MathJax-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2025-01-04 21:21:27 +00:00
|
|
|
%nodejs_install
|
|
|
|
install -d %{buildroot}%{_fontsdir}
|
|
|
|
cp es5/output/chtml/fonts/woff-v2/*.woff %{buildroot}%{_fontsdir}
|
2023-08-31 10:25:17 +00:00
|
|
|
|
2016-01-08 10:29:12 +00:00
|
|
|
%files
|
2023-08-31 10:25:17 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2025-01-04 21:21:27 +00:00
|
|
|
%dir %{nodejs_modulesdir}
|
|
|
|
%{nodejs_modulesdir}/%{name}
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%files ams-fonts
|
|
|
|
%{_fontsdir}/MathJax_AMS-Regular.*
|
|
|
|
|
2025-01-04 21:21:27 +00:00
|
|
|
%files calligraphic-fonts
|
|
|
|
%{_fontsdir}/MathJax_Calligraphic-*.*
|
2016-01-08 10:29:12 +00:00
|
|
|
|
|
|
|
%files fraktur-fonts
|
|
|
|
%{_fontsdir}/MathJax_Fraktur-*.*
|
|
|
|
|
|
|
|
%files main-fonts
|
|
|
|
%{_fontsdir}/MathJax_Main-*.*
|
|
|
|
|
|
|
|
%files math-fonts
|
|
|
|
%{_fontsdir}/MathJax_Math-*.*
|
|
|
|
|
|
|
|
%files sansserif-fonts
|
|
|
|
%{_fontsdir}/MathJax_SansSerif-*.*
|
|
|
|
|
|
|
|
%files script-fonts
|
|
|
|
%{_fontsdir}/MathJax_Script-*.*
|
|
|
|
|
|
|
|
%files typewriter-fonts
|
|
|
|
%{_fontsdir}/MathJax_Typewriter-*.*
|
|
|
|
|
|
|
|
%files size1-fonts
|
|
|
|
%{_fontsdir}/MathJax_Size1-*.*
|
|
|
|
|
|
|
|
%files size2-fonts
|
|
|
|
%{_fontsdir}/MathJax_Size2-*.*
|
|
|
|
|
|
|
|
%files size3-fonts
|
|
|
|
%{_fontsdir}/MathJax_Size3-*.*
|
|
|
|
|
|
|
|
%files size4-fonts
|
|
|
|
%{_fontsdir}/MathJax_Size4-*.*
|
|
|
|
|
2023-08-31 10:25:17 +00:00
|
|
|
%files vector-fonts
|
|
|
|
%{_fontsdir}/MathJax_Vector-*.*
|
|
|
|
|
2025-01-04 21:21:27 +00:00
|
|
|
%files zero-fonts
|
|
|
|
%{_fontsdir}/MathJax_Zero.*
|
2023-08-31 10:25:17 +00:00
|
|
|
|
2021-07-26 16:50:39 +00:00
|
|
|
%changelog
|