source: projects/specs/trunk/t/texlive/texlive-vl.spec @ 7148

Revision 7148, 32.8 KB checked in by munepi, 12 years ago (diff)

upgrade to TeX Live 2012

Line 
1## -*- coding: utf-8-unix -*-
2%bcond_with firstbuild
3
4# * texmf/web2c/texmf.cnf
5# use BUILD
6# * texmf/xdvi
7# use BUILD
8
9# * depend libX*
10# inimf
11# mf
12# pdfclose
13# pdfopen
14# pxdvi-motif
15# xdvi-motif
16
17%global _use_internal_dependency_generator 0
18%global __find_provides %{SOURCE99}
19%global __find_requires %{nil}
20
21%define texlivesrcver   20120701
22%define texlivever      20120701
23
24%define aliasttfdir     %{texmfsysvar}/fonts/truetype/vine
25%define texmfsysconfig  %{_sysconfdir}/texmf
26%define texmfsysvar     %{_var}/lib/texmf
27%define vartexfonts     %{texmfsysvar}/fonts
28
29%define tex_destdir     %{_datadir}
30%define texmf           %{tex_destdir}/texmf
31%define texlive_src     %{tex_destdir}/texlive-sources
32%define build_tex_destdir       %{buildroot}%{tex_destdir}
33%define build_texmf     %{buildroot}%{texmf}
34
35## use some macros for %post, %posttrans
36%define touch_run(%1)   %{expand:( %__mkdir_p /var/run/texlive; touch /var/run/texlive/run-%1; )
37}
38%define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && \\\
39    %{_sbindir}/update-defaultfont 2> /dev/null
40%define exec_texhash    [ -e /var/run/texlive/run-texhash ] && ( \\\
41    [ -x %{_bindir}/texhash ] && \\\
42    echo -n "    "; echo -n "Running texhash... "; \\\
43    %{_bindir}/texhash 2> /dev/null; \\\
44    echo "done." ) && %__rm -f /var/run/texlive/run-texhash;
45%define exec_mtxrun     [ -e /var/run/texlive/run-mtxrun ] && ( \\\
46    [ -x %{_bindir}/mtxrun ] && \\\
47    echo -n "    "; echo -n "Running mtxrun... "; \\\
48    export TEXMF=%{texmf}-dist TEXMFCNF=%{texmf}/web2c TEXMFCACHE=%{texmfsysvar}; \\\
49    %{_bindir}/mtxrun --generate &> /dev/null; \\\
50    echo "done." ) && %__rm -f /var/run/texlive/run-mtxrun;
51%define exec_fmtutil    [ -e /var/run/texlive/run-fmtutil ] && ( \\\
52    [ -x %{_bindir}/fmtutil-sys ] && \\\
53    echo -n "    "; echo -n "Running fmtutil-sys... "; \\\
54    %{_bindir}/fmtutil-sys --all &> /dev/null; \\\
55    echo "done." ) && %__rm -f /var/run/texlive/run-fmtutil;
56%define exec_updmap     [ -e /var/run/texlive/run-updmap ] && ( \\\
57    [ -x %{_bindir}/updmap-sys ] && \\\
58    echo -n "    "; echo -n "Running updmap-sys... "; \\\
59    %{_bindir}/updmap-sys --nohash --quiet &> /dev/null; \\\
60    echo "done." ) && %__rm -f /var/run/texlive/run-updmap;
61
62Summary: The TeX text formatting system
63Summary(ja): TeX 文書整形システム
64Name: texlive
65Version: 2012
66Release: 1%{?_dist_release}
67License: distributable
68Group: Applications/Publishing
69URL: http://www.tug.org/texlive/
70
71## original TeX Live source
72Source: ftp://tug.org/historic/systems/texlive/%{version}/%{name}-%{texlivesrcver}-source.tar.xz
73
74## pxdvi pmetapost
75# $ wget -N http://www.logic.at/people/preining/build-tlptexlive-latest.zip
76# $ stat -c %y build-tlptexlive-latest.zip
77# 2012-11-07 09:23:34.000000000 +0900
78# $ sha1sum build-tlptexlive-latest.zip 
79# d863f331ce51257bba2266ddff15c90ad59bef96  build-tlptexlive-latest.zip
80# $ mv build-tlptexlive-latest.zip build-tlptexlive-20121107.zip
81Source1: http://www.logic.at/people/preining/build-tlptexlive-20121107.zip
82Source2: http://www.tug.org/texlive/updmap-kanji.html
83
84## texmf dir.
85Source5: texlive-sources-%{texlivesrcver}-texmf.tar.xz
86#Source6: updmap-hdr.cfg.texlive-%{texlivesrcver}
87Source7: updmap.cfg.texlive-%{texlivesrcver}
88
89## desktop files
90Source10: pxdvi.desktop
91Source11: texdoctk.desktop
92
93## find library sonames for libkpathsea and libptexenc
94Source99: find-provides-texlive.sh
95
96## etc...
97#Source100: texlive.cron
98Source101: http://auemath.aichi-edu.ac.jp/~khotta/ghost/disk1/jtygm.sty
99Source102: http://mirrors.ctan.org/obsolete/support/pdftexenc/cmex.enc
100
101
102######
103# TeX patches
104######
105
106## vine
107Patch0:         reautoconf-parallel.diff
108Patch1:         texlive-%{texlivesrcver}-vine.patch
109Patch2:         texlive-%{texlivesrcver}-texmfcnf-vine.patch
110Patch3:         texlive-%{texlivesrcver}-set-selfautoparent-vine.patch
111Patch10:        texlive-%{texlivesrcver}-pxdvik-vine.patch
112
113## security
114
115Requires:    coreutils
116Requires:    ed mktemp
117Requires:    tmpwatch
118Requires:    zlib
119Requires:    libpng
120Requires:    gd
121Requires:    ncurses
122Requires:    libjpeg
123Requires:    t1lib
124Requires:    freetype2
125Requires:    openMotif
126Requires:    poppler >= 0.18
127Requires:    openssl
128Requires:    libpaper
129Requires:    fontconfig
130Requires:    perl-Tk perl-Tk-TableMatrix
131Requires:    nkf
132Requires:    ghostscript >= 8.71
133Requires:    libkpathsea = %{version}-%{release}
134Requires:    libptexenc = %{version}-%{release}
135%{!?with_firstbuild:Requires: jvf >= 7.1}
136Requires:    fontconfig >= 2.6.0-2
137Requires(post,postun): fontconfig >= 2.6.0-2
138Requires(post): ed mktemp
139Requires(post): vutils >= 7.1
140%{!?with_firstbuild:Requires: texlive-common = %{version}}
141#BuildRequires: texlive-sources = %{version}
142BuildRequires: xz
143BuildRequires: unzip
144BuildRequires: bison flex
145BuildRequires: bzip2-devel
146BuildRequires: zlib-devel
147BuildRequires: libpng-devel
148BuildRequires: gd-devel
149BuildRequires: ncurses-devel
150BuildRequires: libjpeg-devel
151BuildRequires: t1lib-devel
152BuildRequires: XOrg-devel
153BuildRequires: freetype2-devel >= 2.1.10
154BuildRequires: autoconf >= 2.68
155BuildRequires: openMotif-devel
156BuildRequires: poppler-devel >= 0.12
157BuildRequires: openssl-devel
158BuildRequires: libpaper-devel
159BuildRequires: fontconfig-devel
160BuildRequires: nkf
161
162Buildroot:    %{_tmppath}/%{name}-%{version}-root
163
164Vendor:       Project Vine
165Distribution: Vine Linux
166Packager:     munepi
167
168
169%description
170The TeX Live software distribution offers a complete TeX system for a
171variety of Unix, Macintosh, Windows and other platforms. It
172encompasses programs for editing, typesetting, previewing and printing
173of TeX documents in many different languages, and a large collection
174of TeX macros and font libraries.
175
176The distribution includes extensive general documentation about TeX,
177as well as the documentation for the included software packages.
178
179
180%description -l ja
181TeX Live ソフトウェアディストリビューションは、
182さまざまな Unix, Macintosh, Windows、および
183他のプラットホームに対して完全な TeX システムを提供します。
184多くの異なった言語を含む TeX ドキュメントの
185編集、組版、閲覧、印刷するためのプログラム、
186そして、TeX マクロやフォントライブラリの大きなコレクションを
187同梱しています。
188
189このディストリビューションは
190同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
191TeX に関するたくさんの一般的なドキュメントを含んでいます。
192
193
194%package doc
195Summary: TeX Live: Documentation files of %{name}
196Group: Applications/Publishing
197Requires: %{name} = %{version}-%{release}
198BuildArch: noarch
199
200%description doc
201This package contains documentation files of %{name}.
202
203%package -n libkpathsea
204Summary: path search library for the TeX Live
205Summary(ja): TeX Live 用パス検索ライブラリ
206Group: System Environment/Libraries
207
208%description -n libkpathsea
209This package includes runtime part of the Kpathsea library.
210
211
212%package -n libkpathsea-devel
213Summary: path search libary and header files for the TeX Live
214Summary(ja): TeX Live 用パス検索ライブラリとヘッダファイル
215Group: Development/Libraries
216Requires: libkpathsea = %{version}-%{release}
217
218%description -n libkpathsea-devel
219This package includes static library and header files of the Kpathsea library.
220
221
222%package -n libptexenc
223Summary: Kanji code convert library for Japanese pTeX
224Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリ
225Group: System Environment/Libraries
226Requires: libkpathsea = %{version}-%{release}
227
228%description -n libptexenc
229This package includes runtime part of the ptexenc library.
230
231
232%package -n libptexenc-devel
233Summary: Kanji code convert library and header files for Japanese pTeX
234Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリとヘッダファイル
235Group: Development/Libraries
236Requires: libptexenc = %{version}-%{release}
237
238%description -n libptexenc-devel
239This package includes header files of the ptexenc library.
240
241
242%prep
243[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
244
245%setup -q -n %{name}-%{texlivesrcver}-source -a 1
246
247%patch0 -p0 -b .parallel
248%patch1 -p1 -b .vine
249%patch2 -p1 -b .vine
250%patch3 -p1 -b .vine
251
252## Applying tlptexlive that provides pxdvi(k) and pmpost
253sedwrite(){
254  echo "rewriting `basename $1` by \"$2\""
255  if [ ! -f "$1" ]; then
256    echo -e "'$1' does not exist"; exit 1
257  fi
258  perl -pi -e  "$2" "$1" || exit 1
259}
260
261# pxdvi
262echo "preparing pxdvi"
263%__cp -pR texk/xdvik texk/pxdvik
264# echo "patching pxdvi patches"
265# #patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/xdvik-20111212-texlive2011.diff
266echo "patching with xdvik-20120415-texlive2011.diff"
267patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/xdvik-20120415-texlive2011.diff
268echo "patching with pxdvik-20111126-density.diff"
269patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/pxdvik-20111126-density.diff
270echo "patching with pxdvik-20111212-uptex.diff"
271patch -d texk/pxdvik -p1 < $(pwd)/build-tlptexlive/pxdvik-20111212-uptex.diff
272sedwrite libs/freetype2/freetype-2.4.*/modules.cfg 's/# (AUX_MODULES \+= otvalid)/\1/'
273sedwrite m4/kpse-pkgs.m4 "s/xdvik/xdvik\npxdvik/"
274
275# customize pxdvik for Vine Linux
276%patch10 -p1 -b .vine
277
278# # include in svn r26399
279# # make sure that the web version of ovp2ovf is built
280# echo "patching for wovp2ovf"
281# patch -d texk -p0 < $(pwd)/build-tlptexlive/ovp2ovf_web.patch
282
283# pmpost
284echo "patching pmpost"
285patch -d texk -p0 < $(pwd)/build-tlptexlive/pmpost-20121106-tl12.diff
286patch -d texk -p0 < $(pwd)/build-tlptexlive/pmpost-svg-20120119-tl11.diff
287
288echo "running reautoconf"
289./reautoconf || exit 1
290
291
292%build
293set -x
294unset TEXINPUTS || :
295unset HOME || :
296
297export CFLAGS="$RPM_OPT_FLAGS" \
298       CXXFLAGS="$RPM_OPT_FLAGS" \
299       LANG=C
300
301PREFIX=$(pwd)/work
302
303TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=motif
304TL_MAKE_FLAGS=-j$(/usr/bin/getconf _NPROCESSORS_ONLN)
305
306TL_CONFIGURE_ARGS=" \
307    --disable-multiplatform \
308    --disable-native-texlive-build \
309    --with-banner-add=\"/Vine Linux\" \
310    --enable-shared --disable-static \
311    --enable-compiler-warnings=max \
312    --without-cxx-runtime-hack \
313    \
314    --enable-web2c \
315    --enable-web-progs --enable-dvipdfmx --enable-mendexk \
316    --enable-makejvf --enable-pxdvik --enable-dvipsk \
317    --enable-tetex --enable-texlive \
318    \
319    --with-system-xpdf \
320    --with-system-gd \
321    --with-system-t1lib \
322    --with-system-libpng \
323    --with-system-zlib \
324    --with-system-freetype2 \
325    --with-freetype2-include=$(freetype-config --cflags | %__sed -e 's/-I//' -e 's/ .*//') \
326    --with-pic \
327    --with-xdvi-x-toolkit=motif \
328    \
329    --disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
330    --disable-dvi2tty \
331    --disable-t1utils --disable-psutils --disable-detex \
332    --disable-dvipng --disable-lcdf-typetools \
333"
334
335export TL_CONF_XDVI_TOOLKIT TL_MAKE_FLAGS TL_CONFIGURE_ARGS
336
337TL_MAKE=%__make ./Build || exit 1
338
339%install
340## prepare %%install session
341[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
342
343## The following lines are useful for the call of
344## "rpmbuild -ba --short-circuit ~/rpm/SPECS/texlive-vl.spec"
345%__rm -rf inst
346(
347    cd Work
348    %__make world
349)
350
351## copy inst dir. to /usr
352%__mkdir_p %{buildroot}
353%__cp -a inst %{buildroot}%{_prefix} || exit 1
354%ifarch x86_64
355%__mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
356%endif
357## replace texmf with that of texlive-sources
358%__rm -rf %{build_texmf} %{build_texmf}-dist || exit 1
359%__tar -C %{buildroot}%{_datadir} -xpf %{SOURCE5} || exit 1
360## override texmf/web2c/texmf.cnf and texmf/xdvi dir.
361%__cp -a inst/share/texmf/web2c/texmf.cnf %{build_texmf}/web2c/texmf.cnf || exit 1
362%__rm -rf %{build_texmf}/xdvi || exit 1
363%__cp -a inst/share/texmf/xdvi %{build_texmf}/xdvi || exit 1
364
365## make some fundamental texmf trees
366%__mkdir_p %{build_texmf}-{local,dist}
367%__mkdir_p %{buildroot}%{texmfsysconfig}
368%__mkdir_p %{buildroot}%{texmfsysvar}
369%__mkdir_p %{build_texmf}/fonts/{truetype,opentype}
370texmf_local_dirs=(
371  bibtex/bib/local
372  bibtex/bst/local
373  dvips/local
374  fonts/source/local
375  fonts/tfm/local
376  fonts/opentype/local
377  fonts/truetype/local
378  fonts/type1/local
379  fonts/vf/local
380  metapost/local
381  pbibtex/bib/local
382  pbibtex/bst/local
383  tex/latex/local
384  tex/plain/local
385  tex/platex/local
386  web2c
387)
388for x in ${texmf_local_dirs[@]}; do
389    %__mkdir_p %{build_texmf}-local/${x}
390done
391
392
393## if the real file of a symlink on /usr/bin is contained
394## in texlive-collection-*, remove its symlink
395del_symlnks=(
396texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh
397texlive-collection-bibtexextra,/usr/bin/listbib,/usr/share/texmf-dist/scripts/listbib/listbib
398texlive-collection-bibtexextra,/usr/bin/urlbst,/usr/share/texmf-dist/scripts/urlbst/urlbst
399texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex
400texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc
401texlive-collection-binextra,/usr/bin/ctanify,/usr/share/texmf-dist/scripts/ctanify/ctanify
402texlive-collection-binextra,/usr/bin/ctanupload,/usr/share/texmf-dist/scripts/ctanupload/ctanupload.pl
403texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro
404texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py
405texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph
406texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl
407texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl
408texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man
409texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl
410texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl
411texlive-collection-binextra,/usr/bin/latexfileversion,/usr/share/texmf-dist/scripts/latexfileversion/latexfileversion
412texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl
413texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl
414texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh
415texlive-collection-binextra,/usr/bin/match_parens,/usr/share/texmf-dist/scripts/match_parens/match_parens
416texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl
417texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180
418texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270
419texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90
420texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook
421texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl
422texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip
423texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam
424texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
425texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up
426texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up
427texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin
428texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup
429texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun
430texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl
431texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper
432texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps
433texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl
434texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl
435texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl
436texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff
437texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten
438texlive-collection-binextra,/usr/bin/texliveonfly,/usr/share/texmf-dist/scripts/texliveonfly/texliveonfly.py
439texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser
440texlive-collection-binextra,/usr/bin/typeoutfileinfo,/usr/share/texmf-dist/scripts/typeoutfileinfo/typeoutfileinfo.sh
441texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm
442texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst
443texlive-collection-fontutils,/usr/bin/dosepsbin,/usr/share/texmf-dist/scripts/dosepsbin/dosepsbin.pl
444texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl
445texlive-collection-fontutils,/usr/bin/mf2pt1,/usr/share/texmf-dist/scripts/mf2pt1/mf2pt1.pl
446texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font
447texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx
448texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp
449texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl
450texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh
451texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh
452texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh
453texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh
454texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh
455texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh
456texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh
457texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh
458texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl
459texlive-collection-langcjk,/usr/bin/convbkmk,/usr/share/texmf-dist/scripts/uptex/convbkmk.rb
460texlive-collection-langcjk,/usr/bin/updmap-setup-kanji,/usr/share/texmf-dist/scripts/jfontmaps/updmap-setup-kanji.pl
461texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex
462texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py
463texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl
464texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl
465texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex
466texlive-collection-latexextra,/usr/bin/exceltex,/usr/share/texmf-dist/scripts/exceltex/exceltex
467texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries
468texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl
469texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl
470texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf
471texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl
472texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl
473texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl
474texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl
475texlive-collection-luatex,/usr/bin/checkcites,/usr/share/texmf-dist/scripts/checkcites/checkcites.lua
476texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua
477texlive-collection-music,/usr/bin/m-tx,/usr/share/texmf-dist/scripts/m-tx/m-tx.lua
478texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua
479texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua
480texlive-collection-music,/usr/bin/pmx2pdf,/usr/share/texmf-dist/scripts/pmx/pmx2pdf.lua
481texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu
482texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb
483texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl
484texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex
485texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl
486texlive-collection-pstricks,/usr/bin/pedigree,/usr/share/texmf-dist/scripts/pedigree-perl/pedigree.pl
487texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf
488texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl
489)
490for i in ${del_symlnks[@]}; do
491    %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1
492done
493
494## we replace texmf/web2c/updmap{,-hdr}.cfg with our updmap files
495%__cp -a %{SOURCE7} %{build_texmf}/web2c/updmap.cfg || exit 1
496%__mkdir_p %{buildroot}%{texmfsysconfig}/web2c
497%__cp -a %{SOURCE7} %{buildroot}%{texmfsysconfig}/web2c/updmap.cfg || exit 1
498
499## use our map files for dvipdfmx
500%__mkdir_p %{buildroot}%{aliasttfdir}
501%__mkdir_p %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine
502touch %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine/ptex-vine.map
503touch %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine/uptex-vine.map
504touch %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine/otf-vine.map
505touch %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine/otf-up-vine.map
506
507## install updmap-kanji.html
508%__mkdir_p %{build_texmf}/doc/fonts/jfontmaps
509%__install -m0644 %{SOURCE2} %{build_texmf}/doc/fonts/jfontmaps/ || exit 1
510## install jtygm.sty
511%__mkdir_p %{build_texmf}/tex/platex/base
512%__install -m0644 %{SOURCE101} %{build_texmf}/tex/platex/base/ || exit 1
513## install cmex.enc
514%__mkdir_p %{build_texmf}/fonts/enc/pdftex/cmex
515%__install -m0644 %{SOURCE102} %{build_texmf}/fonts/enc/pdftex/cmex/ || exit 1
516
517## desktop things
518%__mkdir_p %{buildroot}%{_datadir}/applications
519%__install -m0644 -c %{SOURCE10} %{SOURCE11} \
520    %{buildroot}%{_datadir}/applications/
521
522# for created fonts
523%__mkdir_p %{buildroot}%{vartexfonts}
524# %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily
525# %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/
526
527## set executable bit for the library
528%__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.*
529%__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.*
530
531# configure ConTeXt
532for x in context ctxtools luatools texexec texmfstart; do
533  %__sed -i -e 's|mtxrun|export TEXMF=%{texmf}-dist TEXMFCNF=%{texmf}/web2c TEXMFCACHE=%{texmfsysvar}; mtxrun|' %{buildroot}%{_bindir}/${x}
534done
535
536# touch ghosts
537touch %{build_texmf}/ls-R
538touch %{build_texmf}-dist/ls-R
539touch %{buildroot}%{texmfsysconfig}/ls-R
540touch %{buildroot}%{texmfsysvar}/ls-R
541
542# ## compress info files
543# %__rm -f %{buildroot}%{_infodir}/dir
544%__rm -f %{buildroot}%{_infodir}/*
545
546## remove tlmgr
547%__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1
548
549## remove asymptote
550find %{buildroot} -type d | grep asymptote | xargs %__rm -rf || exit 1
551
552## remove unpackaging files
553find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f
554find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f
555
556### Files list
557find %{buildroot} -type f -or -type l | \
558    %__sed -e "s|%{buildroot}||g" | \
559    %__grep -v -e ".patch$" -e "\.diff$" -e "\.orig$" | \
560    %__grep -v "%{_includedir}" | \
561    %__grep -v "%{_libdir}" | \
562    %__grep -v "%{_infodir}" | \
563    %__sed -e "s|.*\.\(cnf\|cfg\)$|%config(noreplace) &|" \
564           -e "s|.*ls-R$|%ghost &|" \
565           -e "s|^.*/updmap$|%config &|" \
566           -e "s|%{texmf}*/dvips/config/\(psfonts.*\|ps2pk.*\|pdftex.*\|dvipdfm.*\|.*35\)\.map$|%ghost &|" \
567           -e "s|%{texmf}*/web2c/.*\.\(fmt\|efmt\|log\|base\|mem\|oft\)$|%config &|" \
568           -e "s|%{texmf}*/dvips/config/config\.\(generic\|pdf\|ps\|www\)$|%config &|" \
569           -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \
570           -e "s|%{texmf}*/pdftex/config/pdftex.cfg$|%config &|" \
571           -e "s|%{texmf}*/xdvi/vfontmap$|%config &|" \
572           -e "s|%{texmf}*/xdvi/XDvi|%config &|" \
573           -e "s|%{_mandir}/.*|&*|" \
574        > %{_builddir}/filelist.full
575
576find %{buildroot}%{texmf}* -type d | \
577    %__sed -e "s|^%{buildroot}|%dir |" \
578           -e "s|$|/|" >> %{_builddir}/filelist.full
579
580## subpackages
581%__grep -e "/texmf/doc/" -e "/texdoc" %{_builddir}/filelist.full > %{_builddir}/filelist.doc
582cat %{_builddir}/filelist.doc \
583    %{_builddir}/filelist.full | \
584    sort | uniq -u > %{_builddir}/filelist.tmp
585%__mv -f %{_builddir}/filelist.tmp %{_builddir}/filelist.full
586
587
588%clean
589%__rm -rf %{buildroot}
590
591
592%pretrans
593rpm -q texlive | grep -q -e 2009 -e 2011
594[ $? -eq 1 ] && exit 0
595## upgrade TeX Live to 2012
596_trans_time=$(date +%Y%m%d)
597echo "Running transitional process of your TeX system ... "
598for dir in %{texmf}-var %{texmf}-config; do
599    _trans_dir=${dir}.${_trans_time}.rpmorig
600    [ -d ${_trans_dir}.old ] && \
601        echo -n "  " && \
602        echo "Found ${_trans_dir}.old: " && \
603        echo -n "    " && \
604        %__rm -rvf ${_trans_dir}.old
605    [ -d ${_trans_dir} ] && \
606        echo -n "  " && \
607        echo "Found ${_trans_dir}: " && \
608        echo -n "    " && \
609        %__mv -v ${_trans_dir} ${_trans_dir}.old
610    [ -d ${dir} ] && \
611        echo -n "  " && \
612        echo "Found ${dir}: " && \
613        echo -n "    " && \
614        %__mv -v ${dir} ${_trans_dir}
615done
616echo "done."
617
618%preun
619if [ "$1" = 0 ]; then
620    %__rm -rf %{vartexfonts} %{aliasttfdir}/*
621fi
622exit 0
623
624%post
625%touch_run texhash
626%touch_run updmap
627%touch_run mtxrun
628%touch_run fmtutil
629exit 0
630
631%posttrans
632%__mkdir_p %{vartexfonts}
633%__chmod 1777 %{vartexfonts}
634## create our map files {ptex,uptex,otf,otf-up}-vine.map
635( %{exec_upddeffont} ) ||:
636
637%{exec_texhash}
638%{exec_mtxrun}
639%{exec_updmap}
640%{exec_fmtutil}
641exit 0
642
643%post -n libkpathsea
644/sbin/ldconfig
645# for x in kpathsea tds web2c; do
646#     /sbin/install-info %{_infodir}/${x}.info.* %{_infodir}/dir
647# done
648
649# %preun -n libkpathsea
650# if [ "$1" = 0 ]; then
651#     for x in kpathsea tds web2c; do
652#         /sbin/install-info --delete %{_infodir}/${x}.info.* %{_infodir}/dir
653#     done
654# fi
655
656%postun -n libkpathsea
657/sbin/ldconfig
658
659%post -n libptexenc
660/sbin/ldconfig
661
662%postun -n libptexenc
663/sbin/ldconfig
664
665%triggerin -- ghostscript
666%__rm -f %{texmf}/fonts/cmap/ghostscript
667if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then
668    %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{texmf}/fonts/cmap/ghostscript
669elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then
670    %__ln_s %{_datadir}/ghostscript/Resource/CMap %{texmf}/fonts/cmap/ghostscript
671fi
672%{exec_texhash}
673
674
675%files -f %{_builddir}/filelist.full
676%defattr(-,root,root)
677%dir %{aliasttfdir}
678%attr(1777,root,root) %dir %{vartexfonts}
679# %config %{_sysconfdir}/cron.daily/texlive.cron
680
681%files doc -f %{_builddir}/filelist.doc
682%defattr(-,root,root)
683
684%files -n libkpathsea
685%defattr(-,root,root)
686%{_libdir}/libkpathsea.so.*
687# %{_infodir}/kpathsea.info*
688
689%files -n libkpathsea-devel
690%defattr(-,root,root)
691%{_libdir}/libkpathsea.so
692%dir %{_includedir}/kpathsea
693%{_includedir}/kpathsea/*
694
695%files -n libptexenc
696%defattr(-,root,root)
697%{_libdir}/libptexenc.so.*
698
699%files -n libptexenc-devel
700%defattr(-,root,root)
701%{_libdir}/libptexenc.so
702%dir %{_includedir}/ptexenc
703%{_includedir}/ptexenc/*
704
705
706%changelog
707* Wed Nov 21 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1
708- TeX Live 2012 + tlptexlive 20121107
709
710* Tue Oct 30 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-7
711- drop BR: poppler-devel temporaly
712  - modify tl11supp-120120-vine.patch, texlive-20110705-vine.patch to do that
713
714* Mon May 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-6
715- build with poppler-0.18.4
716- remove tlmgr
717
718* Thu Jan 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-5
719- updated to tl11supp-120120
720- run %%{exec_fmtutil} at %%post when upgrading
721
722* Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-4
723- updated to tl11supp-111214
724
725* Sat Dec  3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-3
726- added BuildRequires: texlive-common
727  - Babel needs docstrip.tex, which is contained in texlive-collection-latex
728  - check japanese.ldf
729- updated tl11supp-111120-vine.patch
730  - added the following options to $$TL_CONFIGURE_ARGS:
731    --disable-detex
732    --disable-dvipng
733    --disable-lcdf-typetools
734- remove some files of asymptote
735- remove a man file of latexmk
736- remove man files of lcdf-typetools
737- remove man files of dvipng
738- remove a man file of detex
739
740* Mon Nov 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
741- added find-provides-texlive.sh and set it to %%__find_provides
742  - use to find library sonames for libkpathsea and libptexenc
743- added cmex.enc (%%{SOURCE110})
744  - do not install cmex.enc in our TDS, yet
745- removed some unused directories in texmf/fonts/map
746- removed man files of lcdf-typetools
747- moved texdoc{,tk} and its related files to texlive-doc
748
749* Wed Nov 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
750- TeX Live 2011 + tl11supp-111120
751
752* Thu Oct 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-22
753- make the directory VARTEXFONTS (%%posttrans)
754  - dropped %%triggerpostun -- texlive < 2009-17vl6
755
756* Tue Jul 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-21
757- fixed ptexlive-20100711-dvipdfmx-vine.patch
758  - for dvipdfmx.cfg, given some ps2pdf's parameters mistaked
759
760* Thu Jun 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-20
761- added %%pre to avoid conflictions of texmf-{config,var}
762
763* Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-19
764- dropped Requires: texlive-common
765- added perl-Tk-TableMatrix
766  - supported texdoctk
767- removed broken symbolic links in /usr/bin
768  - for each these symbolic links, the package of its real file/path
769    should be its owner.
770
771* Thu May 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-18
772- added %%triggerpostun -- texlive < 2009-17vl6
773  - make the directory VARTEXFONTS
774
775* Tue May 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-17
776- fixed %%dir VARTEXFONTS around in %%files
777- dropped BuildRequires: t1utils
778
779* Tue Apr 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-16
780- updated texlive-20091107-texmfcnf-vine.patch, texlive.cron
781  - changed VARTEXFONTS to /var/lib/texmf/fonts
782
783* Mon Apr 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-15
784- fixed updmap.cfg
785
786* Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-14
787- dropped Requires: texlive-macros
788
789* Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-13
790- updated ptexlive-20100711-pxdvik-vine.patch
791  and added texlive-20091107-xdvik-vine.patch
792  - fixed to adjust X resources in texmf/xdvi/XDvi for (p)xdvi
793
794* Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-12
795- supported Vine Linux 5
796  - for vl5, changed a requirement of Japanese VF package
797    - added Requires: texlive-jvf = 2009 (vl5)
798- dropped dependencies of Provides:/Obsoletes: tags
799  - merged these dependencies in texlive-common-vl.spec
800
801* Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 2009-11
802- rebuilt with poppler-0.14.2 (libpoppler has been up to so.7)
803
804* Fri Sep 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-10
805- applied some security patches from Debian
806  - texlive-2009-CVE-2010-0827.patch
807  - texlive-2009-CVE-2010-1440.patch
808- applied texlive-2009-pdftexdir-libpoppler-0.12.patch from Debian
809- applied texlive-2009-luatexdir-libpoppler-0.12.patch
810  based on texlive-2009-pdftexdir-libpoppler-0.12.patch
811- fixed some dependencies
812
813* Mon Aug 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-9
814- added BuildArch: noarch in %%package doc
815- removed some comment-out sentences
816
817* Tue Jul 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-8
818- separeted texmf-dist to texlive-common package
819
820* Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-7
821- unpacked texlive-20091107-source.tar.xz
822- babel is available now
823- applied eptex-100420 and some patches:
824  - eptex-100420-vine.patch
825  - eptex-100420-patch1.diff
826
827* Tue Jul 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6
828- updated ptexlive-20100711
829
830* Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5
831- customized updmap.cfg to correspond installed fonts
832
833* Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
834- fixed insttexfont()
835
836* Mon May 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
837- added jvf of MORISAWA basic 5 fonts
838- added cm-super, mathdesign in fntlst
839
840* Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
841- define insttexfont() in %%install
842  - copy almost compatible tetex-3.0
843
844* Sat May 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
845- ptexlive-20090322 + TeXLive 2009
846- added BuildRequires: openssl-devel
847
848* Sun Dec 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2008-0.20091206
849- ptexlive-20091009 + TeXLive 2008
Note: See TracBrowser for help on using the repository browser.