diff --git a/README.md b/README.md index 94ff276..dd15cf0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # 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. diff --git a/ghc-texmath.spec b/ghc-texmath.spec index 193c78a..c3d9209 100644 --- a/ghc-texmath.spec +++ b/ghc-texmath.spec @@ -1,9 +1,10 @@ -%define ghc_ver %(ghc --version | sed "s|.*version ||") -%define pkgname %(echo %name | sed "s|^ghc-||") +%define ghc_ver %(ghc --numeric-version) +%define pkgname texmath + Name: ghc-texmath -Version: 0.6.4 +Version: 0.8.1 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 Vendor: openmamba Distribution: openmamba @@ -15,50 +16,54 @@ License: BSD ## AUTOBUILDREQ-END BuildRequires: ghc BuildRequires: ghc-xml +BuildRequires: ghc-pandoc-types Requires: ghc = %{ghc_ver} Requires: ghc-xml +Requires: ghc-pandoc-types BuildRoot: %{_tmppath}/%{name}-%{version}-root %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 %setup -q -n texmath-%{version} %build -runghc Setup.hs configure \ ---prefix=%{_prefix} --libdir=%{_libdir} +runghc Setup.lhs configure -v2 \ + --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 [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -runghc Setup.hs copy --destdir=%{buildroot} -runghc Setup.hs register \ ---gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf" +runghc Setup.lhs copy --destdir=%{buildroot} +runghc Setup.lhs register \ + --gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf" %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %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 -ghc-pkg unregister %{pkgname}-%{version} || true -: +ghc-pkg unregister %{pkgname}-%{version} &>/dev/null || : %files %defattr(-,root,root) -%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} -%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/* -%{_datadir}/doc/%{pkgname}-%{version}/LICENSE -%dir %{_datadir}/%{pkgname}-%{version} -%dir %{_datadir}/%{pkgname}-%{version}/cgi -%{_datadir}/%{pkgname}-%{version}/cgi/texmath.xhtml -%dir %{_datadir}/%{pkgname}-%{version}/tests -%{_datadir}/%{pkgname}-%{version}/tests/* +%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} +%{_docdir}/%{name}-%{version}/LICENSE +%{_docdir}/%{name}-%{version}/html %changelog +* Mon Apr 13 2015 Davide Madrisan 0.8.1-1mamba +- update to 0.8.1 + * Sun Sep 08 2013 Silvan Calarco 0.6.4-1mamba - package created by silvan using the webbuild interface