diff --git a/README.md b/README.md index 8c4ada6..d1f775d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # latex2html +LATEX2HTML is a convertor written in Perl that converts LATEX documents to HTML. +This way e.g. scientific papers - primarily typeset for printing - can be put on the Web for online viewing. + +LATEX2HTML does also a good job in rapid web site deployment. + +It is designed to run on UNIX-like systems (e.g. Linux, Solaris, IRIX, Dec Unix, HP-UX, AIX) as well as Windows (95, 98, NT) systems. + diff --git a/latex2html.spec b/latex2html.spec new file mode 100644 index 0000000..819e0d6 --- /dev/null +++ b/latex2html.spec @@ -0,0 +1,94 @@ +%define pkgver %(echo %version | tr . -) +Name: latex2html +Version: 2008 +Release: 2mamba +Summary: LATEX2HTML converts LATEX documents to HTML +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.latex2html.org +Source: http://www.latex2html.org/~latex2ht/current/%{name}-%{pkgver}.tar.gz +License: GPL +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: netpbm +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRequires: tetex +BuildRequires: tetex-dvips +BuildRequires: ghostscript +Requires: netpbm + +%description +LATEX2HTML is a convertor written in Perl that converts LATEX documents to HTML. +This way e.g. scientific papers - primarily typeset for printing - can be put on the Web for online viewing. + +LATEX2HTML does also a good job in rapid web site deployment. + +It is designed to run on UNIX-like systems (e.g. Linux, Solaris, IRIX, Dec Unix, HP-UX, AIX) as well as Windows (95, 98, NT) systems. + +%prep +%setup -q + +# Win32.pm just need for Windows installations +rm -f L2hos/Win32.pm + +%build +PERL=%{_bindir}/perl \ +./configure \ + --prefix=%{_prefix} \ + --libdir=%{_libdir}/%{name} \ + --shlibdir=%{_libdir}/%{name} \ + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +## install LaTeX2HTML style files in TeX directory tree +#install -d %{buildroot}%{_datadir}/texmf-dist/tex/latex/html +#cp texinputs/* %{buildroot}%{_datadir}/texmf-dist/tex/latex/html/ + +# dirty hack +sed -i "s,%{_bindir}/perl[0-9\.]*,%{_bindir}/perl," %{buildroot}%{_bindir}/* + +%clean +#[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/%{name} +%{_bindir}/pstoimg +%{_bindir}/texexpand +%dir %{_libdir}/%{name}/ +%{_libdir}/%{name}/* +%dir %{_datadir}/texmf*/tex/latex/html/ +%{_datadir}/texmf*/tex/latex/html/* +%doc LICENSE +# BUGS Changes FAQ README + +%changelog +* Tue Aug 20 2013 Silvan Calarco 2008-2mamba +- migrated from %{_datadir}/texmf to %{_datadir}/texmf-dist + +* Fri Mar 06 2009 Silvan Calarco 2008-1mamba +- update to 2008 + +* Fri Dec 12 2008 Silvan Calarco 2002.2.1-1mamba +- update to 2002.2.1 + +* Sat Jun 21 2008 Tiziana Ferro 2002-5mamba +- update Vendor, Distribution, Packager + +* Wed Apr 12 2006 Davide Madrisan 2002-3qilnx +- do not require perl- + +* Mon Feb 27 2006 Stefano Cotta Ramusino 2002-2qilnx +- specfile fixed and updated +- architecture changed to noarch + +* Thu May 27 2004 Davide Madrisan 2002-1qilnx +- first build