Group :: Edição
RPM: latex2html
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: latex2html
Version: 2020.2
Release: alt1
Summary: LaTeX to HTML converter
License: GPLv2
Group: Publishing
Url: http://saftsack.fs.uni-bayreuth.de/~latex2ht
BuildArch: noarch
# https://github.com/latex2html/latex2html.git
Source: %name-%version.tar
Patch3: latex2html-2002-path.patch
Patch4: latex2html-2002-alt-perl-path.patch
Patch5: latex2html-2002-alt-perl-syntax.patch
Patch7: latex2html-2020-alt-perlpath.patch
Patch31: latex2html-2017.2-alt-perl-compat.patch
Requires: /usr/bin/latex /usr/bin/dvips
Requires: netpbm
# note that gs is required by tetex-dvips
Requires: %_bindir/gs
BuildRequires: %_bindir/gs %_bindir/dvipdf
BuildRequires(pre): rpm-build-tex
# Automatically added by buildreq on Thu Mar 27 2008
BuildRequires: netpbm perl-DBM texlive-collection-basic texlive-collection-latexrecommended
%description
Elaborate perl program to convert latex documents to html,
using LaTeX to process images and equations.
%prep
%setup -q
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch7 -p1
#patch31 -p1
%build
%define _perl_lib_path %_datadir/%name
%add_findprov_skiplist %_datadir/%name/versions/*.pl
TMP=/tmp ./configure --with-gs=%_bindir/gs \
--with-texpath=%_datadir/texmf/tex/ \
--without-mktexlsr \
--with-perl=%_bindir/perl \
--prefix=%prefix \
--libdir=%_datadir/%name \
--shlibdir=%_datadir/%name \
#
%make_build
cd ./docs
TEXINPUTS=.:../texinputs: latex manual
TEXINPUTS=.:../texinputs: latex manual
make
make manual.ps
bzip2 -9f manual.ps
%install
# custom "make install" so paths are proper in the perl programs
mkdir -p %buildroot%_bindir
install -p -m755 %name pstoimg texexpand %buildroot%_bindir/
mkdir -p %buildroot%_datadir/%name
cp -avRf \
IndicTeX-HTML L2hos.pm L2hos XyMTeX-HTML cweb2html docs example foilhtml icons makeseg styles texinputs versions \
cfgcache.pm dot.latex2html-init l2hconf.pm makemap \
%buildroot%_datadir/%name/
mkdir -p %buildroot%_datadir/texmf/tex/latex/html
cp -avRf texinputs/* %buildroot%_datadir/texmf/tex/latex/html
# this russian style is subject to bNOPNYA
rm %buildroot%_datadir/%name/styles/russian.perl
# fix perl path in a few places:
sed -i '1s|/usr/local/bin/|/usr/bin/|' \
%buildroot%_datadir/%name/cweb2html/cweb2html \
%buildroot%_datadir/%name/cweb2html/makemake.pl \
%buildroot%_datadir/%name/makeseg/makeseg
%files
%_bindir/*
%_datadir/%name/
%_datadir/texmf/tex/latex/html
%doc Changes FAQ LICENSE LICENSE.orig README.md TODO BUGS INSTALL dot.latex2html-init example docs/manual.ps.bz2
%changelog
…
Todas as alterações você pod ver aqui
Version: 2020.2
Release: alt1
Summary: LaTeX to HTML converter
License: GPLv2
Group: Publishing
Url: http://saftsack.fs.uni-bayreuth.de/~latex2ht
BuildArch: noarch
# https://github.com/latex2html/latex2html.git
Source: %name-%version.tar
Patch3: latex2html-2002-path.patch
Patch4: latex2html-2002-alt-perl-path.patch
Patch5: latex2html-2002-alt-perl-syntax.patch
Patch7: latex2html-2020-alt-perlpath.patch
Patch31: latex2html-2017.2-alt-perl-compat.patch
Requires: /usr/bin/latex /usr/bin/dvips
Requires: netpbm
# note that gs is required by tetex-dvips
Requires: %_bindir/gs
BuildRequires: %_bindir/gs %_bindir/dvipdf
BuildRequires(pre): rpm-build-tex
# Automatically added by buildreq on Thu Mar 27 2008
BuildRequires: netpbm perl-DBM texlive-collection-basic texlive-collection-latexrecommended
%description
Elaborate perl program to convert latex documents to html,
using LaTeX to process images and equations.
%prep
%setup -q
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch7 -p1
#patch31 -p1
%build
%define _perl_lib_path %_datadir/%name
%add_findprov_skiplist %_datadir/%name/versions/*.pl
TMP=/tmp ./configure --with-gs=%_bindir/gs \
--with-texpath=%_datadir/texmf/tex/ \
--without-mktexlsr \
--with-perl=%_bindir/perl \
--prefix=%prefix \
--libdir=%_datadir/%name \
--shlibdir=%_datadir/%name \
#
%make_build
cd ./docs
TEXINPUTS=.:../texinputs: latex manual
TEXINPUTS=.:../texinputs: latex manual
make
make manual.ps
bzip2 -9f manual.ps
%install
# custom "make install" so paths are proper in the perl programs
mkdir -p %buildroot%_bindir
install -p -m755 %name pstoimg texexpand %buildroot%_bindir/
mkdir -p %buildroot%_datadir/%name
cp -avRf \
IndicTeX-HTML L2hos.pm L2hos XyMTeX-HTML cweb2html docs example foilhtml icons makeseg styles texinputs versions \
cfgcache.pm dot.latex2html-init l2hconf.pm makemap \
%buildroot%_datadir/%name/
mkdir -p %buildroot%_datadir/texmf/tex/latex/html
cp -avRf texinputs/* %buildroot%_datadir/texmf/tex/latex/html
# this russian style is subject to bNOPNYA
rm %buildroot%_datadir/%name/styles/russian.perl
# fix perl path in a few places:
sed -i '1s|/usr/local/bin/|/usr/bin/|' \
%buildroot%_datadir/%name/cweb2html/cweb2html \
%buildroot%_datadir/%name/cweb2html/makemake.pl \
%buildroot%_datadir/%name/makeseg/makeseg
%files
%_bindir/*
%_datadir/%name/
%_datadir/texmf/tex/latex/html
%doc Changes FAQ LICENSE LICENSE.orig README.md TODO BUGS INSTALL dot.latex2html-init example docs/manual.ps.bz2
%changelog
…
Todas as alterações você pod ver aqui