package created using the webbuild interface [release 2.7.9-1mamba;Tue Aug 23 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 06:59:10 +01:00
parent 95191725f4
commit bfe7c60513
2 changed files with 55 additions and 0 deletions

View File

@ -1,2 +1,3 @@
# mathjax2
Beautiful and accessible math in all browsers.

54
mathjax2.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 2.7.9-1mamba
- package created using the webbuild interface