Browse Source

supported TeX Live 2013

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7779 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 10 years ago
parent
commit
a13ddc2fa2
3 changed files with 70 additions and 48 deletions
  1. 26 10
      d/dblatex/dblatex-vl.spec
  2. 20 34
      l/latex2html/latex2html-vl.spec
  3. 24 4
      l/latexml/latexml-vl.spec

+ 26 - 10
d/dblatex/dblatex-vl.spec

@@ -2,7 +2,7 @@
 
 Name:		dblatex
 Version:	0.3.2
-Release:	3%{?_dist_release}
+Release:	4%{?_dist_release}
 Summary:	DocBook to LaTeX/ConTeXt Publishing
 BuildArch:	noarch
 Group:		Applications/Publishing
@@ -20,9 +20,10 @@ BuildRequires:  libxslt docbook-dtds ImageMagick
 ## Need epstopdf, fig2dev
 BuildRequires:	texlive-collection-fontutils
 BuildRequires:	transfig
+BuildRequires:  texlive-vtlpkg >= 2013
 ##BuildRequires:  tex(latex)
 ##BuildRequires:  tex(xetex)
-BuildRequires:  texlive-common >= 2009
+BuildRequires:  texlive >= 2013
 ## appendix.sty, changebar.sty, footmisc.sty, multirow.sty, 
 ## overpic.sty, subfigure.sty, titlesec.sty
 BuildRequires:  texlive-collection-latexextra
@@ -31,7 +32,7 @@ BuildRequires:  texlive-collection-mathextra
 BuildRequires:	texlive-collection-htmlxml
 Requires:	libxslt docbook-dtds ImageMagick
 ##Requires:       tex(xetex)
-Requires:	texlive-common >= 2009
+Requires:	texlive >= 2013
 Requires:	texlive-collection-latexextra
 Requires:	transfig
 BuildRequires:  texlive-collection-mathextra
@@ -71,14 +72,14 @@ for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
   %__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
 done
 
-%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex
+%__mkdir_p $RPM_BUILD_ROOT%{_tl_texmfvine}/tex/latex/dblatex
 for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do 
-  %__mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1;
+  %__mv $file $RPM_BUILD_ROOT%{_tl_texmfvine}/tex/latex/dblatex/`basename $file` || exit 1;
 done
 
 ## also move .xetex files
 for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do 
-  %__mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1;
+  %__mv $file $RPM_BUILD_ROOT%{_tl_texmfvine}/tex/latex/dblatex/`basename $file` || exit 1;
 done
 
 %__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
@@ -96,6 +97,21 @@ touch -r xsl/mathml2/README README-xsltml
 %__rm -rf $RPM_BUILD_ROOT
 
 
+%post
+%_tl_touch_run texhash
+exit 0
+
+%postun
+if [ "$1" = 0 ]; then
+   %_tl_touch_run texhash
+fi
+exit 0
+
+%posttrans
+%{_tl_exec_texhash}
+exit 0
+
+
 %files
 %defattr(-,root,root,-)
 %{_mandir}/man1/dblatex.1*
@@ -104,14 +120,14 @@ touch -r xsl/mathml2/README README-xsltml
 %{python_sitelib}/dblatex-*.egg-info
 %{_bindir}/dblatex
 %{_datadir}/dblatex/
-%{_datadir}/texmf/tex/latex/dblatex/
+%{_tl_texmfvine}/tex/latex/dblatex/
 %dir %{_sysconfdir}/dblatex
 
-%post -p /usr/bin/texhash
-
-%postun -p /usr/bin/texhash
 
 %changelog
+* Thu Aug 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-4
+- added BuildRequires: texlive-vtlpkg
+
 * Fri Dec 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-3
 - added R: texlive-collection-langcjk texlive-collection-bibtexextra [Vine Linux 0002511]
 

+ 20 - 34
l/latex2html/latex2html-vl.spec

@@ -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)

+ 24 - 4
l/latexml/latexml-vl.spec

@@ -2,7 +2,7 @@
 
 Name:           latexml
 Version:        0.7.0
-Release:        3%{?_dist_release}
+Release:        4%{?_dist_release}
 Summary:        LaTeX to XML Converter
 
 Group:          Development/Libraries
@@ -12,6 +12,7 @@ Source0:        http://dlmf.nist.gov/LaTeXML/releases/%{pkgname}-%{version}.tar.
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 BuildArch:	noarch
 
+BuildRequires:  texlive-vtlpkg >= 2013
 BuildRequires:	perl(Parse::RecDescent)
 BuildRequires:	perl(Image::Magick)
 BuildRequires:	perl(XML::LibXML) >= 1.70
@@ -32,7 +33,7 @@ latexml is a program, written in Perl, that attempts to faithfully mimic TeX's b
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS"
-%__perl Makefile.PL TEXMF=%{_datadir}/texmf INSTALLDIRS=vendor
+%__perl Makefile.PL TEXMF=%{_tl_texmfvine} INSTALLDIRS=vendor
 %__make
 
 %install
@@ -44,20 +45,39 @@ find $RPM_BUILD_ROOT -type f -name .packlist | xargs %__rm -f
 %check
 %__make test ||:
 
+%post
+%_tl_touch_run texhash
+exit 0
+
+%postun
+if [ "$1" = 0 ]; then
+   %_tl_touch_run texhash
+fi
+exit 0
+
+%posttrans
+%{_tl_exec_texhash}
+exit 0
+
+
 %files
 %defattr(-,root,root)
 %{_bindir}/latexml
 %{_bindir}/latexmlfind
 %{_bindir}/latexmlmath
 %{_bindir}/latexmlpost
-%{_datadir}/texmf/tex/latex/latexml/latexml.sty
-%dir %{_datadir}/texmf/tex/latex/latexml
+%{_tl_texmfvine}/tex/latex/latexml/latexml.sty
+%dir %{_tl_texmfvine}/tex/latex/latexml
 %{_mandir}/man*/*.*
 %{perl_vendorlib}/LaTeXML.pm
 %{perl_vendorlib}/LaTeXML/*
 %dir %{perl_vendorlib}/LaTeXML
 
 %changelog
+* Thu Aug 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> - 0.7.0-4
+- added BuildRequires: texlive-vtlpkg >= 2013
+- added some scriptlets to run mktexlsr
+
 * Tue Jun 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.7.0-3
 - rebuilt on i386