update to 0.8.1 [release 0.8.1-1mamba;Mon Apr 13 2015]

This commit is contained in:
Davide Madrisan 2024-01-05 22:56:13 +01:00
parent d477d8817e
commit fdfc57dfa0
2 changed files with 31 additions and 24 deletions

View File

@ -1,4 +1,6 @@
# ghc-texmath # ghc-texmath
The texmathml library provides functions to convert LaTeX math formulas to presentation MathML (which can be used in HTML) or OMML (Office Math Markup Language, used in Microsoft Office). It supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros. The texmath library provides functions to read and write TeX math, presentation MathML, and OMML (Office Math Markup Language, used in Microsoft Office).
Support is also included for converting math formats to pandoc's native format (allowing conversion, via pandoc, to a variety of different markup formats).
The TeX reader supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros.

View File

@ -1,9 +1,10 @@
%define ghc_ver %(ghc --version | sed "s|.*version ||") %define ghc_ver %(ghc --numeric-version)
%define pkgname %(echo %name | sed "s|^ghc-||") %define pkgname texmath
Name: ghc-texmath Name: ghc-texmath
Version: 0.6.4 Version: 0.8.1
Release: 1mamba Release: 1mamba
Summary: A GHC library which provides functions to convert LaTeX math formulas to presentation MathML Summary: GHC library: Conversion between formats used to represent mathematics
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
@ -15,50 +16,54 @@ License: BSD
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: ghc BuildRequires: ghc
BuildRequires: ghc-xml BuildRequires: ghc-xml
BuildRequires: ghc-pandoc-types
Requires: ghc = %{ghc_ver} Requires: ghc = %{ghc_ver}
Requires: ghc-xml Requires: ghc-xml
Requires: ghc-pandoc-types
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
The texmathml library provides functions to convert LaTeX math formulas to presentation MathML (which can be used in HTML) or OMML (Office Math Markup Language, used in Microsoft Office). It supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros. The texmath library provides functions to read and write TeX math, presentation MathML, and OMML (Office Math Markup Language, used in Microsoft Office).
Support is also included for converting math formats to pandoc's native format (allowing conversion, via pandoc, to a variety of different markup formats).
The TeX reader supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros.
%prep %prep
%setup -q -n texmath-%{version} %setup -q -n texmath-%{version}
%build %build
runghc Setup.hs configure \ runghc Setup.lhs configure -v2 \
--prefix=%{_prefix} --libdir=%{_libdir} --prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--docdir=%{_docdir}/%{name}-%{version}
runghc Setup.hs build runghc Setup.lhs build
runghc Setup.lhs haddock --executable --html-location=URL --hyperlink-source
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
runghc Setup.hs copy --destdir=%{buildroot} runghc Setup.lhs copy --destdir=%{buildroot}
runghc Setup.hs register \ runghc Setup.lhs register \
--gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf" --gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf"
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post %post
ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || :
:
%preun %preun
ghc-pkg unregister %{pkgname}-%{version} || true ghc-pkg unregister %{pkgname}-%{version} &>/dev/null || :
:
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}
%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/* %{_docdir}/%{name}-%{version}/LICENSE
%{_datadir}/doc/%{pkgname}-%{version}/LICENSE %{_docdir}/%{name}-%{version}/html
%dir %{_datadir}/%{pkgname}-%{version}
%dir %{_datadir}/%{pkgname}-%{version}/cgi
%{_datadir}/%{pkgname}-%{version}/cgi/texmath.xhtml
%dir %{_datadir}/%{pkgname}-%{version}/tests
%{_datadir}/%{pkgname}-%{version}/tests/*
%changelog %changelog
* Mon Apr 13 2015 Davide Madrisan <davide.madrisan@gmail.com> 0.8.1-1mamba
- update to 0.8.1
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.4-1mamba * Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.4-1mamba
- package created by silvan using the webbuild interface - package created by silvan using the webbuild interface