Browse Source

updated texlive-vl.spec: added BuildRequires: texlive-common; updated tl11supp-111120-vine.patch; remove some files and man files for asymptote, latexmk, lcdf-typetools, dvipng, detex

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5248 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
29ff6ba669
2 changed files with 67 additions and 5 deletions
  1. 65 3
      t/texlive/texlive-vl.spec
  2. 2 2
      t/texlive/tl11supp-111120-vine.patch

+ 65 - 3
t/texlive/texlive-vl.spec

@@ -34,7 +34,7 @@ Summary: The TeX text formatting system
 Summary(ja): TeX 文書整形システム
 Name: texlive
 Version: 2011
-Release: 2%{?_dist_release}
+Release: 3%{?_dist_release}
 License: distributable
 Group: Applications/Publishing
 URL: http://www.tug.org/texlive/
@@ -109,7 +109,7 @@ Requires:    fontconfig >= 2.6.0-2
 Requires(post,postun): fontconfig >= 2.6.0-2
 Requires(post): ed mktemp
 Requires(post): vutils >= 2.0.5
-#%{!?with_firstbuild:BuildRequires: texlive-common = %{version}}
+%{!?with_firstbuild:BuildRequires: texlive-common = %{version}}
 BuildRequires: texlive-sources = %{version}
 BuildRequires: xz
 BuildRequires: unzip
@@ -299,11 +299,16 @@ yes N | scripts/font.sh %{tl11supp_all_opts} || exit 1
 (cd $SRCDIR/inst && tar cf - *) \
     | (cd %{build_tex_destdir} && tar xf -) || exit  1
 
+## check japanese.ldf (Babel for Japanese)
+[ -f %{build_texmf}/tex/platex/japanese/japanese.ldf ] || exit 1
+[ -f %{build_texmf}/tex/platex/japanese/ptex.log ] || exit 1
+[ -f %{build_texmf}/tex/platex/japanese/texput.log ] && exit 1
+
 ## remove the symbolic link texmf-dist@
 [ -L %{build_tex_destdir}/texmf-dist ] && \
   %__rm -f %{build_tex_destdir}/texmf-dist || exit 1
 ## remove lcdf-typetools-for-tex-live directory
-%__rm -r %{build_tex_destdir}/lcdf-typetools-for-tex-live || exit 1
+#%__rm -r %{build_tex_destdir}/lcdf-typetools-for-tex-live || exit 1
 ## remove unused directories in texmf/fonts/map
 %__rm -rf %{build_texmf}/fonts/map/dvips/updmap || exit 1
 %__rm -rf %{build_texmf}/fonts/map/pdftex/updmap || exit 1
@@ -324,6 +329,28 @@ yes N | scripts/font.sh %{tl11supp_all_opts} || exit 1
 %__mkdir_p %{build_texmf}-{config,var,local,dist}
 %__mkdir_p %{build_texmf}/fonts/{truetype,opentype}
 
+texmf_local_dirs=(
+  bibtex/bib/local
+  bibtex/bst/local
+  dvips/local
+  fonts/source/local
+  fonts/tfm/local
+  fonts/opentype/local
+  fonts/truetype/local
+  fonts/type1/local
+  fonts/vf/local
+  metapost/local
+  pbibtex/bib/local
+  pbibtex/bst/local
+  tex/latex/local
+  tex/plain/local
+  tex/platex/local
+  web2c
+)
+for i in ${texmf_local_dirs[@]}; do
+    %__mkdir_p %{build_texmf}-local/${i}
+done
+
 ## copy texmf-dist/README
 %__cp -a %{texlive_src}/texmf-dist/README %{build_texmf}-dist/ || exit 1
 
@@ -473,6 +500,26 @@ done
   %{buildroot}%{_mandir}/man1/t1testpage.1 \
   %{buildroot}%{_mandir}/man1/ttftotype42.1 \
   || exit 1
+## remove man files of dvipng
+%__rm \
+  %{buildroot}%{_mandir}/man1/dvigif.1 \
+  %{buildroot}%{_mandir}/man1/dvipng.1 \
+  || exit 1
+## remove some files of asymptote
+%__rm \
+  %{buildroot}%{_mandir}/man1/asy.1 \
+  %{buildroot}%{_mandir}/man1/xasy.1 \
+  %{build_texmf}/tex/latex/asymptote/asymptote.sty \
+  %{build_texmf}/tex/latex/asymptote/ocg.sty \
+  || exit 1
+## remove a man file of latexmk
+%__rm \
+  %{buildroot}%{_mandir}/man1/latexmk.1 \
+  || exit 1
+## remove a man file of detex
+%__rm \
+  %{buildroot}%{_mandir}/man1/detex.1 \
+  || exit 1
 
 # remove unpackaged files
 find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \;
@@ -658,6 +705,21 @@ fi
 
 
 %changelog
+* Sat Dec  3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-3
+- added BuildRequires: texlive-common
+  - Babel needs docstrip.tex, which is contained in texlive-collection-latex
+  - check japanese.ldf
+- updated tl11supp-111120-vine.patch
+  - added the following options to $$TL_CONFIGURE_ARGS: 
+    --disable-detex 
+    --disable-dvipng
+    --disable-lcdf-typetools
+- remove some files of asymptote
+- remove a man file of latexmk
+- remove man files of lcdf-typetools
+- remove man files of dvipng
+- remove a man file of detex
+
 * Mon Nov 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
 - added find-provides-texlive.sh and set it to %%__find_provides
   - use to find library sonames for libkpathsea and libptexenc

+ 2 - 2
t/texlive/tl11supp-111120-vine.patch

@@ -56,8 +56,8 @@ diff -up texlive-2011/tl11/common.sh.vine texlive-2011/tl11/common.sh
 +  \
 +  --disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
 +  --disable-dvi2tty \
-+  --disable-t1utils \
-+  --disable-psutils \
++  --disable-t1utils --disable-psutils --disable-detex \
++  --disable-dvipng --disable-lcdf-typetools \
 +"
  
  # for Ubuntu?