|
@@ -1,26 +1,13 @@
|
|
|
%define jppatchsrcver jp20110708
|
|
|
%define jppatch l2h-2K8-jp2.1b1.13.patch
|
|
|
|
|
|
-%define tex_destdir %{_datadir}
|
|
|
-%define texmf %{tex_destdir}/texmf
|
|
|
-%define texlive_src %{tex_destdir}/texlive-sources
|
|
|
-%define build_tex_destdir %{buildroot}%{tex_destdir}
|
|
|
-%define build_texmf %{buildroot}%{texmf}
|
|
|
-
|
|
|
-%define exec_mktexlsr [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash
|
|
|
-%define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
|
|
|
-%define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys --nostop
|
|
|
-%define exec_fmtutil [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null
|
|
|
-%define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
|
|
|
-%define vartexfonts %{_var}/lib/texmf
|
|
|
-
|
|
|
%define ownlibdir %{_prefix}/lib/%{name}
|
|
|
|
|
|
Summary: LaTeX to HTML converter
|
|
|
Summary(ja): LaTeX ファイルを HTML 形式に変換するツール
|
|
|
Name: latex2html
|
|
|
Version: 2008
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Release: 3%{?_dist_release}
|
|
|
License: GPL
|
|
|
Group: Applications/Publishing
|
|
|
Url: http://www.latex2html.org/
|
|
@@ -29,21 +16,12 @@ Source1: http://takeno.iee.niit.ac.jp/~shige/TeX/latex2html/current/data/l2h-2K8
|
|
|
|
|
|
Patch0: l2h-vine.patch
|
|
|
|
|
|
-%if %{?_dist_release} == "vl5"
|
|
|
-Requires: tetex
|
|
|
-%endif
|
|
|
-%if %{?_dist_release} >= "vl6"
|
|
|
-Requires: texlive-common
|
|
|
-%endif
|
|
|
+Requires: texlive >= 2013
|
|
|
Requires: ghostscript
|
|
|
Requires: perl
|
|
|
Requires: netpbm-progs
|
|
|
-%if %{?_dist_release} == "vl5"
|
|
|
-BuildRequires: tetex
|
|
|
-%endif
|
|
|
-%if %{?_dist_release} >= "vl6"
|
|
|
-BuildRequires: texlive-common
|
|
|
-%endif
|
|
|
+BuildRequires: texlive-vtlpkg >= 2013
|
|
|
+BuildRequires: texlive >= 2013
|
|
|
BuildRequires: ghostscript
|
|
|
BuildRequires: perl
|
|
|
BuildRequires: netpbm-progs
|
|
@@ -104,9 +82,7 @@ environments from within a LATEX document.
|
|
|
--enable-png \
|
|
|
--enable-gif \
|
|
|
--with-gs=%{_bindir}/gs \
|
|
|
-%if %{?_dist_release} == "vl6"
|
|
|
- --with-dvips=%{_bindir}/pdvips \
|
|
|
-%endif
|
|
|
+ --with-dvips=%{_bindir}/dvips \
|
|
|
--with-latex=%{_bindir}/platex \
|
|
|
--without-mktexlsr \
|
|
|
--with-kanji=utf8 \
|
|
@@ -140,7 +116,7 @@ environments from within a LATEX document.
|
|
|
%__perl -pi -e "s#$RPM_BUILD_DIR/%{pkgname}-%{version}#%{ownlibdir}#" $RPM_BUILD_ROOT%{ownlibdir}/cfgcache.pm || exit 1
|
|
|
|
|
|
## latin9.def url.sty: provided by texlive-collection-latex package
|
|
|
-(cd $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/html
|
|
|
+(cd $RPM_BUILD_ROOT%{_tl_texmfvine}/tex/latex/html
|
|
|
%__rm -f floatflt.ins latin9.def url.sty
|
|
|
)
|
|
|
|
|
@@ -161,12 +137,17 @@ environments from within a LATEX document.
|
|
|
|
|
|
|
|
|
%post
|
|
|
-%{exec_texhash}
|
|
|
+%_tl_touch_run texhash
|
|
|
exit 0
|
|
|
|
|
|
-
|
|
|
%postun
|
|
|
-%{exec_texhash}
|
|
|
+if [ "$1" = 0 ]; then
|
|
|
+ %_tl_touch_run texhash
|
|
|
+fi
|
|
|
+exit 0
|
|
|
+
|
|
|
+%posttrans
|
|
|
+%{_tl_exec_texhash}
|
|
|
exit 0
|
|
|
|
|
|
|
|
@@ -181,9 +162,14 @@ exit 0
|
|
|
%doc dot.latex2html-init
|
|
|
%{_bindir}/*
|
|
|
%{ownlibdir}
|
|
|
-%{_datadir}/texmf/tex/latex/html/
|
|
|
+%{_tl_texmfvine}/tex/latex/html/
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Aug 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2008-3
|
|
|
+- added BuildRequires: texlive-vtlpkg >= 2013
|
|
|
+- added some scriptlets to run mktexlsr
|
|
|
+
|
|
|
* Sat Jan 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2008-2
|
|
|
- l2h-2K8-jp20110708
|
|
|
- Requires, BuildRequires: s/texlive/texlive-common/ (for vl6 or higher)
|