latexml-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. %define pkgname LaTeXML
  2. Name: latexml
  3. Version: 0.7.0
  4. Release: 3%{?_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. export CFLAGS="$RPM_OPT_FLAGS"
  28. %__perl Makefile.PL TEXMF=%{_datadir}/texmf INSTALLDIRS=vendor
  29. %__make
  30. %install
  31. %__rm -rf $RPM_BUILD_ROOT
  32. %__make pure_install DESTDIR=$RPM_BUILD_ROOT
  33. find $RPM_BUILD_ROOT -type f -name .packlist | xargs %__rm -f
  34. %check
  35. %__make test ||:
  36. %files
  37. %defattr(-,root,root)
  38. %{_bindir}/latexml
  39. %{_bindir}/latexmlfind
  40. %{_bindir}/latexmlmath
  41. %{_bindir}/latexmlpost
  42. %{_datadir}/texmf/tex/latex/latexml/latexml.sty
  43. %dir %{_datadir}/texmf/tex/latex/latexml
  44. %{_mandir}/man*/*.*
  45. %{perl_vendorlib}/LaTeXML.pm
  46. %{perl_vendorlib}/LaTeXML/*
  47. %dir %{perl_vendorlib}/LaTeXML
  48. %changelog
  49. * Tue Jun 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.7.0-3
  50. - rebuilt on i386
  51. * Tue May 24 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.7.0-2
  52. - rebuilt with perl-5.12.3
  53. * Thu Aug 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.7.0-1
  54. - initial build