diff --git a/README.md b/README.md index 7107729..c424207 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # mathjax2 +Beautiful and accessible math in all browsers. diff --git a/mathjax2.spec b/mathjax2.spec new file mode 100644 index 0000000..7ef1b97 --- /dev/null +++ b/mathjax2.spec @@ -0,0 +1,54 @@ +Name: mathjax2 +Version: 2.7.9 +Release: 1mamba +Summary: Beautiful and accessible math in all browsers +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.mathjax.org/ +Source: https://github.com/mathjax/MathJax.git/%{version}/MathJax-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END + +%description +Beautiful and accessible math in all browsers. + +#% debug_package + +%prep +%setup -q -n MathJax-%{version} + + +# Remove unneeded stuff, see https://github.com/mathjax/MathJax-docs/wiki/Guide%3A-reducing-size-of-a-mathjax-installation +rm -r docs test unpacked +rm -r fonts/HTML-CSS/TeX/png +for _format in eot otf svg ; do + find . -type d -name "$_format" -prune -exec rm -rf {} \; +done + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_datadir}/{fonts,mathjax2} +cp -a * %{buildroot}%{_datadir}/mathjax2 + +mv %{buildroot}%{_datadir}/mathjax2/fonts %{buildroot}%{_datadir}/fonts/mathjax2 +ln -s ../fonts/mathjax2 %{buildroot}%{_datadir}/mathjax2/fonts + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_datadir}/mathjax2 +%{_datadir}/mathjax2/* +%dir %{_datadir}/fonts/mathjax2 +%{_datadir}/fonts/mathjax2/* +%doc LICENSE + +%changelog +* Tue Aug 23 2022 Silvan Calarco 2.7.9-1mamba +- package created using the webbuild interface