12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- %define pkgname LaTeXML
- Name: latexml
- Version: 0.7.0
- Release: 1%{?_dist_release}
- Summary: LaTeX to XML Converter
- Group: Development/Libraries
- License: public domain
- Url: http://dlmf.nist.gov/LaTeXML/
- Source0: http://dlmf.nist.gov/LaTeXML/releases/%{pkgname}-%{version}.tar.gz
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildArch: noarch
- BuildRequires: perl(Parse::RecDescent)
- BuildRequires: perl(Image::Magick)
- BuildRequires: perl(XML::LibXML) >= 1.70
- BuildRequires: perl(XML::LibXSLT) >= 1.70
- BuildRequires: perl(DB_File)
- BuildRequires: perl(Test::Simple)
- Distribution: Vine
- Vendor: Project Vine
- Packager: munepi
- %description
- latexml is a program, written in Perl, that attempts to faithfully mimic TeX's behaviour, but produces XML instead of dvi. The document model of the target XML makes explicit the model implied by LaTeX. The processing and model are both extensible; you can define the mapping between TeX constructs and the XML fragments to be created. A postprocessor, latexmlpost converts this XML into other formats such as HTML or XHTML, with options to convert the math into MathML (currently only presentation) or images.
- #'
- %prep
- %setup -q -n %{pkgname}-%{version}
- %build
- %__perl Makefile.PL TEXMF=%{_datadir}/texmf INSTALLDIRS=vendor
- %__make
- %install
- %__rm -rf $RPM_BUILD_ROOT
- %__make pure_install DESTDIR=$RPM_BUILD_ROOT
- find $RPM_BUILD_ROOT -type f -name .packlist | xargs %__rm -f
- %check
- %__make test ||:
- %files
- %defattr(-,root,root)
- %{_bindir}/latexml
- %{_bindir}/latexmlfind
- %{_bindir}/latexmlmath
- %{_bindir}/latexmlpost
- %{_datadir}/texmf/tex/latex/latexml/latexml.sty
- %dir %{_datadir}/texmf/tex/latex/latexml
- %{_mandir}/man*/*.*
- %{perl_vendorlib}/LaTeXML.pm
- %{perl_vendorlib}/LaTeXML/*
- %dir %{perl_vendorlib}/LaTeXML
- %changelog
- * Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.7.0-1
- - initial build
|