latexml-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %define pkgname LaTeXML
  2. Name: latexml
  3. Version: 0.7.0
  4. Release: 1%{?_dist_release}
  5. Summary: LaTeX to XML Converter
  6. Group: Development/Libraries
  7. License: public domain
  8. Url: http://dlmf.nist.gov/LaTeXML/
  9. Source0: http://dlmf.nist.gov/LaTeXML/releases/%{pkgname}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Parse::RecDescent)
  13. BuildRequires: perl(Image::Magick)
  14. BuildRequires: perl(XML::LibXML) >= 1.70
  15. BuildRequires: perl(XML::LibXSLT) >= 1.70
  16. BuildRequires: perl(DB_File)
  17. BuildRequires: perl(Test::Simple)
  18. Distribution: Vine
  19. Vendor: Project Vine
  20. Packager: munepi
  21. %description
  22. 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.
  23. #'
  24. %prep
  25. %setup -q -n %{pkgname}-%{version}
  26. %build
  27. %__perl Makefile.PL TEXMF=%{_datadir}/texmf INSTALLDIRS=vendor
  28. %__make
  29. %install
  30. %__rm -rf $RPM_BUILD_ROOT
  31. %__make pure_install DESTDIR=$RPM_BUILD_ROOT
  32. find $RPM_BUILD_ROOT -type f -name .packlist | xargs %__rm -f
  33. %check
  34. %__make test ||:
  35. %files
  36. %defattr(-,root,root)
  37. %{_bindir}/latexml
  38. %{_bindir}/latexmlfind
  39. %{_bindir}/latexmlmath
  40. %{_bindir}/latexmlpost
  41. %{_datadir}/texmf/tex/latex/latexml/latexml.sty
  42. %dir %{_datadir}/texmf/tex/latex/latexml
  43. %{_mandir}/man*/*.*
  44. %{perl_vendorlib}/LaTeXML.pm
  45. %{perl_vendorlib}/LaTeXML/*
  46. %dir %{perl_vendorlib}/LaTeXML
  47. %changelog
  48. * Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.7.0-1
  49. - initial build