Blob Blame History Raw
Name:           LaTeXML
Version:        0.8.3
Release:        1%{?dist}
Summary:        Converts TeX and LaTeX to XML/HTML/ePub/MathML

License:        Public Domain
URL:            http://dlmf.nist.gov/LaTeXML/
Source0:        http://search.cpan.org/CPAN/authors/id/B/BR/BRMILLER/%{name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  perl >= 0:5.010001
BuildRequires:  perl(Archive::Zip)
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(charnames)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(DB_File)
BuildRequires:  perl(DB_File)
BuildRequires:  perl(Encode)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Copy)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(File::Which)
BuildRequires:  perl(FindBin)
BuildRequires:  perl(Getopt::Long) >= 2.37
BuildRequires:  perl(HTTP::Request)
BuildRequires:  perl(HTTP::Response)
BuildRequires:  perl(Image::Size)
BuildRequires:  perl(IO::Socket)
BuildRequires:  perl(IO::String)
BuildRequires:  perl(JSON::XS)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(LWP)
BuildRequires:  perl(Math::Trig)
BuildRequires:  perl(MIME::Base64)
BuildRequires:  perl(Parse::RecDescent)
BuildRequires:  perl(Pod::Find)
BuildRequires:  perl(Pod::Parser)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(strict)
BuildRequires:  perl(Term::ANSIColor)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Text::Balanced)
BuildRequires:  perl(Text::Unidecode)
BuildRequires:  perl(Text::Wrap)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(Unicode::Normalize)
BuildRequires:  perl(URI)
BuildRequires:  perl(version)
BuildRequires:  perl(warnings)
BuildRequires:  perl(XML::LibXML) >= 1.61
BuildRequires:  perl(XML::LibXSLT) >= 1.58
BuildRequires:  tex(tex)
BuildRequires:  tex(latex)

Requires:       perl(Archive::Zip)
Requires:       perl(base)
Requires:       perl(Carp)
Requires:       perl(charnames)
Requires:       perl(Cwd)
Requires:       perl(Data::Dumper)
Requires:       perl(DB_File)
Requires:       perl(DB_File)
Requires:       perl(Encode)
Requires:       perl(File::Copy)
Requires:       perl(File::Path)
Requires:       perl(File::Spec)
Requires:       perl(File::Temp)
Requires:       perl(File::Which)
Requires:       perl(FindBin)
Requires:       perl(Getopt::Long) >= 2.37
Requires:       perl(HTTP::Request)
Requires:       perl(HTTP::Response)
Requires:       perl(Image::Magick)
Requires:       perl(Image::Size)
Requires:       perl(IO::Socket)
Requires:       perl(IO::String)
Requires:       perl(JSON::XS)
Requires:       perl(List::Util)
Requires:       perl(LWP)
Requires:       perl(Math::Trig)
Requires:       perl(MIME::Base64)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires:       perl(Parse::RecDescent)
Requires:       perl(Pod::Find)
Requires:       perl(Pod::Parser)
Requires:       perl(POSIX)
Requires:       perl(strict)
Requires:       perl(Term::ANSIColor)
Requires:       perl(Test::More)
Requires:       perl(Text::Balanced)
Requires:       perl(Text::Unidecode)
Requires:       perl(Text::Wrap)
Requires:       perl(Time::HiRes)
Requires:       perl(Unicode::Normalize)
Requires:       perl(URI)
Requires:       perl(warnings)
Requires:       perl(XML::LibXML) >= 1.61
Requires:       perl(XML::LibXSLT) >= 1.58
Requires:       tex(tex)
Requires:       tex(latex)
Requires(post): tex(tex)
Requires(postun): tex(tex)

%description
LaTeXML is a converter that transforms TeX and LaTeX into XML/HTML/ePub/MathML
and other formats.

%prep
%autosetup

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor TEXMF=%{_texmf_main} NOMKTEXLSR
make %{?_smp_mflags}

%check
make test

%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;

%files
%doc Changes manual.pdf META.json README.pod
%license LICENSE
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_texmf_main}/tex/latex/latexml/*

%post
mktexlsr >/dev/null 2>&1 || :

%postun
mktexlsr >/dev/null 2>&1 || :

%changelog
* Fri Aug 10 2018 W. Michael Petullo <mike@flyn.org> - 0.8.3-1
- New upstream version

* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Fri Jul 06 2018 Petr Pisar <ppisar@redhat.com> - 0.8.2-2
- Perl 5.28 rebuild

* Sun Jun 24 2018 W. Michael Petullo <mike@flyn.org> - 0.8.2-1
- Initial package