55 lines
1.5 KiB
RPMSpec
55 lines
1.5 KiB
RPMSpec
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
|