source: projects/specs/trunk/l/latexml/latexml-vl.spec @ 1566

Revision 1566, 1.9 KB checked in by munepi, 14 years ago (diff)

NEW: latexml, perl-Parse-RecDescent?, perl-XML-LibXSLT; update: perl-XML-LibXML

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