Parcourir la source

latex2html: update to 2018.2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12280 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t il y a 4 ans
Parent
commit
6c4210abb5
1 fichiers modifiés avec 61 ajouts et 44 suppressions
  1. 61 44
      l/latex2html/latex2html-vl.spec

+ 61 - 44
l/latex2html/latex2html-vl.spec

@@ -1,39 +1,48 @@
-%define jppatchsrcver	jp20110708
-%define jppatch		l2h-2K8-jp2.1b1.13.patch
-
-%define ownlibdir	%{_prefix}/lib/%{name}
-
-Summary:	LaTeX to HTML converter
-Summary(ja):	LaTeX ファイルを HTML 形式に変換するツール
-Name:		latex2html
-Version:	2008
-Release:	3%{?_dist_release}
-License:	GPL
-Group:		Applications/Publishing
-Url:		http://www.latex2html.org/
-Source0:	http://saftsack.fs.uni-bayreuth.de/~latex2ht/current/%{name}-%{version}.tar.gz
-Source1:	http://takeno.iee.niit.ac.jp/~shige/TeX/latex2html/current/data/l2h-2K8-%{jppatchsrcver}.tar.gz
-
-Patch0:		l2h-vine.patch
-
-Requires:	texlive >= 2013
-Requires:	ghostscript
-Requires:	perl
-Requires:	netpbm-progs
+%define jppatchsrcver 2018.2-jp20190902
+%define jppatch       l2h-2018.2-jp3.2b1.22.patch
+
+%define ownlibdir %{_prefix}/lib/%{name}
+%define _tl_texmfvine %{_datadir}/texmf-dist
+
+Summary: LaTeX to HTML converter
+Summary(ja): LaTeX ファイルを HTML 形式に変換するツール
+Name:  latex2html
+Version: 2018.2
+Release: 1%{?_dist_release}
+
+License: GPL
+Group:  Applications/Publishing
+Url:  http://www.latex2html.org/
+
+Source0: https://github.com/latex2html/latex2html/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source1: http://takeno.iee.niit.ac.jp/~shige/TeX/latex2html/data2/l2h-%{jppatchsrcver}.tar.gz
+
+# Patch0:  l2h-vine.patch
+
+# https://github.com/latex2html/latex2html/issues/48
+# https://github.com/latex2html/latex2html/commit/ead9c5ade86d90b07f778b2fcb972f273d52c3c2
+Patch1: latex2html-2018.2-escape_var_in_regexp.patch
+
+Requires: texlive >= 2013
+Requires: ghostscript
+Requires: perl
+Requires: netpbm-progs
 BuildRequires:  texlive-vtlpkg >= 2013
-BuildRequires:	texlive >= 2013
-BuildRequires:	ghostscript
-BuildRequires:	perl
-BuildRequires:	netpbm-progs
-BuildRequires:	netpbm >= 9.12
+BuildRequires: texlive >= 2013
+BuildRequires: ghostscript
+BuildRequires: perl
+BuildRequires: netpbm-progs
+BuildRequires: netpbm >= 9.12
+
+Conflicts: latex2html2002
 
-Conflicts:	latex2html2002
+BuildArch: noarch
+Buildroot: %{_tmppath}/%{name}-%{version}-root
+
+Vendor:  Project Vine
+Distribution: Vine Linux
+Packager: munepi
 
-BuildArch:	noarch
-Buildroot:	%{_tmppath}/%{name}-%{version}-root
-Vendor:		Project Vine
-Distribution:	Vine Linux
-Packager:	munepi
 
 %description
 LATEX2HTML is a conversion tool that allows documents written in LATEX to 
@@ -64,7 +73,8 @@ environments from within a LATEX document.
 %__tar zxvf %{SOURCE1} -C $RPM_BUILD_DIR || exit 1
 %__patch -p1 < %{jppatch}
 
-%patch0 -p0 -b .vine
+# %%patch0 -p0 -b .vine
+%patch1 -b .escape
 
 # fix perl path in a few places:
 %__sed -i -e "s|^#!/perl|#!%{__perl}|" l2hconf.pin || exit 1
@@ -86,7 +96,7 @@ environments from within a LATEX document.
     --with-latex=%{_bindir}/platex \
     --without-mktexlsr \
     --with-kanji=utf8 \
-	;
+ ;
 %__make
 
 
@@ -95,25 +105,25 @@ environments from within a LATEX document.
 
 ## fake root directory
 %__sed -e 's|/usr|'"${RPM_BUILD_ROOT}"'/usr|' \
-	-e 's|bin/latex|bin/platex|' cfgcache.pm > cfgcache.pm.new || exit 1
+ -e 's|bin/latex|bin/platex|' cfgcache.pm > cfgcache.pm.new || exit 1
 %__mv cfgcache.pm.new cfgcache.pm || exit 1
 
 %__make install
 
 (cd %{buildroot}
     for i in `grep -ir -l %{buildroot} *`; do
-	%__perl -pi -e "s@%{buildroot}@@g" $i || exit 1
-	%__chmod 755 $i
+ %__perl -pi -e "s@%{buildroot}@@g" $i || exit 1
+ %__chmod 755 $i
     done
     for i in `grep -ir -l %{_builddir} *`;
     do
-	%__perl -pi -e "s@%{_builddir}@@g" $i || exit 1
-	%__chmod 755 $i
+        %__perl -pi -e "s@%{_builddir}@@g" $i || exit 1
+        %__chmod 755 $i
     done
 )
 
 ## fix perl path in a few places:
-%__perl -pi -e "s#$RPM_BUILD_DIR/%{pkgname}-%{version}#%{ownlibdir}#" $RPM_BUILD_ROOT%{ownlibdir}/cfgcache.pm || exit 1
+%__perl -pi -e "s#$RPM_BUILD_DIR/%{name}-%{version}#%{ownlibdir}#" $RPM_BUILD_ROOT%{ownlibdir}/cfgcache.pm || exit 1
 
 ## latin9.def url.sty: provided by texlive-collection-latex package
 (cd $RPM_BUILD_ROOT%{_tl_texmfvine}/tex/latex/html
@@ -126,7 +136,8 @@ environments from within a LATEX document.
     export TEXINPUTS=:.:../texinputs
 
     ## article.cls don't provide \address.
-    %__sed -i -e 's/\\author{\(.*\)}/\\author{\1/' -e 's!\\address{!\\\\hoge!' manual.tex || exit 1
+    %__sed -i -e 's/\\author{\(.*\)}/\\author{\1}/' -e 's!\\address{!\\\\hoge!' \
+           manual.tex || exit 1
     %__make clean
     %__make LATEX=platex manual.dvi
     %{_bindir}/dvipdfm manual.dvi || exit 1
@@ -156,8 +167,8 @@ exit 0
 
 %files
 %defattr(-,root,root)
-%doc BUGS Changes FAQ INSTALL LICENSE MANIFEST README TODO
-%doc README.notice.jp README.patch-99.1jp README.patch-jp-pre README.tech.jp
+%doc BUGS Changes FAQ INSTALL LICENSE MANIFEST README.md TODO
+%doc README.notice.jp README.patch-99.1jp README.patch-jp README.tech.jp
 %doc docs/ example/ tests/
 %doc dot.latex2html-init
 %{_bindir}/*
@@ -166,6 +177,12 @@ exit 0
 
 
 %changelog
+* Tue Oct 22 2019 Toshiaki Ara <ara_t@384.jp> 2018.2-1
+- update to 2018.2
+- drop Patch0
+- add Patch1 for Perl 5.26
+- add several changes to build manual.pdf
+
 * Thu Aug 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2008-3
 - added BuildRequires: texlive-vtlpkg >= 2013
 - added some scriptlets to run mktexlsr