%define compactversion 2002-2-1 %global __requires_exclude Win32 %define graphic_format png # use "gif" or "png" %define latex2htmldir %{_prefix}/lib/%{name} Name: latex2html Summary: LaTeX to HTML converter Version: 2017.2 Release: %mkrel 1 License: GPLv2+ Group: Publishing URL: http://www.latex2html.org Source: http://ctan.mirrors.hoobly.com/support/latex2html/%{name}-%{version}.tar.gz Patch0: %{name}-2002-gsfonts.patch Patch1: %{name}-%{compactversion}-path.patch Patch2: %{name}-perlversion.patch Patch3: %{name}-perlcall.patch Patch4: %{name}-htmladdimg.patch BuildArch: noarch BuildRequires: dvips BuildRequires: texlive-texmf BuildRequires: dvipdf BuildRequires: ghostscript Requires: ghostscript >= 6.50 Requires: giftrans Requires: netpbm Requires: latex Requires: dvips %description Elaborate perl program to convert latex documents to html, using LaTeX to process images and equations. %prep %setup -q %patch0 -p1 -b .gsfonts %patch1 -p1 -b .path %patch2 -p1 -b .perlversion %patch3 -p1 -b .perlcall %patch4 -p1 -b .htmladdimg %build TMP=/var/tmp ./configure \ --with-gs=%{_bindir}/gs \ --with-texpath=%{_datadir}/texmf/tex/ \ --without-mktexlsr \ --with-perl=%{__perl} \ --prefix=%{_prefix} \ --shlibdir=%{latex2htmldir} \ --with-initex="%{_bindir}/tex -ini" \ --with-rgb=/usr/share/X11/rgb.txt %make_build %install # custom "make install" so paths are proper in the perl programs mkdir -p %{buildroot}%{_bindir} \ %{buildroot}%{latex2htmldir} install -m 755 latex2html %{buildroot}%{_bindir} install -m 755 pstoimg %{buildroot}%{_bindir} install -m 755 texexpand %{buildroot}%{_bindir} cp -avRf IndicTeX-HTML %{buildroot}%{latex2htmldir}/ cp -avRf L2hos.pm %{buildroot}%{latex2htmldir}/ cp -avRf L2hos %{buildroot}%{latex2htmldir}/ cp -avRf XyMTeX-HTML %{buildroot}%{latex2htmldir}/ cp -avRf cweb2html %{buildroot}%{latex2htmldir}/ cp -avRf docs %{buildroot}%{latex2htmldir}/ cp -avRf example %{buildroot}%{latex2htmldir}/ cp -avRf foilhtml %{buildroot}%{latex2htmldir}/ cp -avRf icons %{buildroot}%{latex2htmldir}/ cp -avRf makeseg %{buildroot}%{latex2htmldir}/ cp -avRf styles %{buildroot}%{latex2htmldir}/ cp -avRf texinputs %{buildroot}%{latex2htmldir}/ cp -avRf versions %{buildroot}%{latex2htmldir}/ cp -avRf cfgcache.pm dot.latex2html-init l2hconf.pm makemap readme.hthtml \ %{buildroot}%{latex2htmldir}/ mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/html cp -avRf texinputs/* %{buildroot}%{_datadir}/texmf/tex/latex/html mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version} cp -avRf Changes FAQ MANIFEST README.md readme.hthtml TODO BUGS \ dot.latex2html-init example \ %{buildroot}%{_defaultdocdir}/%{name}-%{version} # fix perl path in a few places: perl -pi -e 's#/usr/local/bin/perl#%{__perl}#' %{buildroot}%{_prefix}/lib/latex2html/cweb2html/cweb2html perl -pi -e 's#/usr/local/bin/perl#%{__perl}#' %{buildroot}%{_prefix}/lib/latex2html/makeseg/makeseg perl -pi -e 's#/usr/local/bin/perl#%{__perl}#' %{buildroot}%{latex2htmldir}/makemap # fix some installation path perl -pi -e "s#$RPM_BUILD_DIR/%{name}-%{compactversion}#%{latex2htmldir}#" \ %{buildroot}%{latex2htmldir}/cfgcache.pm perl -pi -e "s#%{_datadir}/lib/latex2html#%{latex2htmldir}#" \ %{buildroot}%{latex2htmldir}/cfgcache.pm # these files are already included in tetex (cd %{buildroot}%{_datadir}/texmf/tex/latex/html rm -f floatflt.ins latin9.def url.sty ) (cd docs rm -f changebar.sty url.sty TEXINPUTS=.:../texinputs: export TEXINPUTS latex manual latex manual latex manual dvipdf manual.dvi install -m 644 manual.pdf %{buildroot}%{_defaultdocdir}/%{name}-%{version}) %post [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %postun [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null exit 0 %files %{_bindir}/* %dir %{latex2htmldir} %{latex2htmldir}/* %{_datadir}/texmf/tex/latex/html/ %{_docdir}/%{name}-%{version} %changelog * Mon Feb 06 2017 daviddavid <daviddavid> 2017.2-1.mga6 + Revision: 1085013 - new version: 2017.2 - remove merged upstream patches * Fri Feb 05 2016 umeabot <umeabot> 2012-5.mga6 + Revision: 937460 - Mageia 6 Mass Rebuild * Fri Feb 05 2016 umeabot <umeabot> 2012-4.mga6 + Revision: 937013 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 2012-3.mga5 + Revision: 746684 - Second Mageia 5 Mass Rebuild - Mageia 5 Mass Rebuild + tv <tv> - use %%global for req/prov exclude - autoconvert to new prov/req excludes * Sat Sep 06 2014 spuhler <spuhler> 2012-1.mga5 + Revision: 672847 - upgrade to 2012 - removed match-multiline patch - removed source included patch, latex2html-fix-defined.patch * Tue Oct 22 2013 umeabot <umeabot> 2008-9.mga4 + Revision: 545911 - Mageia 4 Mass Rebuild * Thu Oct 17 2013 luigiwalser <luigiwalser> 2008-8.mga4 + Revision: 501974 - BR texlive-texmf * Mon Mar 04 2013 boklm <boklm> 2008-7.mga3 + Revision: 401401 - Add eurosym.patch from debian: adding support for eurosymbol package - Add latex2html-fix-defined.patch from debian: removing a perl warning * Mon Mar 04 2013 boklm <boklm> 2008-6.mga3 + Revision: 401397 - add match-multiline.patch from debian, fixing incompatibility with perl >= 5.10 * Sat Jan 12 2013 umeabot <umeabot> 2008-5.mga3 + Revision: 356648 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Mar 04 2011 boklm <boklm> 2008-4.mga1 + Revision: 64167 - require latex and dvips instead of tetex-latex and tetex-dvips * Thu Jan 13 2011 ahmad <ahmad> 2008-3.mga1 + Revision: 8871 - imported package latex2html