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

Revision 7154, 33.4 KB checked in by munepi, 11 years ago (diff)

improve many things :)

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: 2%{?_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.20
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.20
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## copy inst dir. to /usr
344%__mkdir_p %{buildroot}
345%__cp -a inst %{buildroot}%{_prefix} || exit 1
346%ifarch x86_64
347%__mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
348%endif
349## replace texmf with that of texlive-sources
350%__rm -rf %{build_texmf} %{build_texmf}-dist || exit 1
351%__tar -C %{buildroot}%{_datadir} -xpf %{SOURCE5} || exit 1
352## override texmf/web2c/texmf.cnf and texmf/xdvi dir.
353%__cp -a inst/share/texmf/web2c/texmf.cnf %{build_texmf}/web2c/texmf.cnf || exit 1
354%__rm -rf %{build_texmf}/xdvi || exit 1
355%__cp -a inst/share/texmf/xdvi %{build_texmf}/xdvi || exit 1
356
357## make some fundamental texmf trees
358%__mkdir_p %{build_texmf}-{local,dist}
359%__mkdir_p %{buildroot}%{texmfsysconfig}
360%__mkdir_p %{buildroot}%{texmfsysvar}
361%__mkdir_p %{build_texmf}/fonts/{truetype,opentype}
362texmf_local_dirs=(
363  bibtex/bib/local
364  bibtex/bst/local
365  dvips/local
366  fonts/source/local
367  fonts/tfm/local
368  fonts/opentype/local
369  fonts/truetype/local
370  fonts/type1/local
371  fonts/vf/local
372  metapost/local
373  pbibtex/bib/local
374  pbibtex/bst/local
375  tex/latex/local
376  tex/plain/local
377  tex/platex/local
378  web2c
379)
380for x in ${texmf_local_dirs[@]}; do
381    %__mkdir_p %{build_texmf}-local/${x}
382done
383
384
385## if the real file of a symlink on /usr/bin is contained
386## in texlive-collection-*, remove its symlink
387del_symlnks=(
388texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh
389texlive-collection-bibtexextra,/usr/bin/listbib,/usr/share/texmf-dist/scripts/listbib/listbib
390texlive-collection-bibtexextra,/usr/bin/urlbst,/usr/share/texmf-dist/scripts/urlbst/urlbst
391texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex
392texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc
393texlive-collection-binextra,/usr/bin/ctanify,/usr/share/texmf-dist/scripts/ctanify/ctanify
394texlive-collection-binextra,/usr/bin/ctanupload,/usr/share/texmf-dist/scripts/ctanupload/ctanupload.pl
395texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro
396texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py
397texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph
398texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl
399texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl
400texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man
401texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl
402texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl
403texlive-collection-binextra,/usr/bin/latexfileversion,/usr/share/texmf-dist/scripts/latexfileversion/latexfileversion
404texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl
405texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl
406texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh
407texlive-collection-binextra,/usr/bin/match_parens,/usr/share/texmf-dist/scripts/match_parens/match_parens
408texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl
409texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180
410texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270
411texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90
412texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook
413texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl
414texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip
415texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam
416texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
417texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up
418texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up
419texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin
420texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup
421texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun
422texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl
423texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper
424texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps
425texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl
426texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl
427texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl
428texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff
429texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten
430texlive-collection-binextra,/usr/bin/texliveonfly,/usr/share/texmf-dist/scripts/texliveonfly/texliveonfly.py
431texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser
432texlive-collection-binextra,/usr/bin/typeoutfileinfo,/usr/share/texmf-dist/scripts/typeoutfileinfo/typeoutfileinfo.sh
433texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm
434texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst
435texlive-collection-fontutils,/usr/bin/dosepsbin,/usr/share/texmf-dist/scripts/dosepsbin/dosepsbin.pl
436texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl
437texlive-collection-fontutils,/usr/bin/mf2pt1,/usr/share/texmf-dist/scripts/mf2pt1/mf2pt1.pl
438texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font
439texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx
440texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp
441texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl
442texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh
443texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh
444texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh
445texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh
446texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh
447texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh
448texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh
449texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh
450texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl
451texlive-collection-langcjk,/usr/bin/convbkmk,/usr/share/texmf-dist/scripts/uptex/convbkmk.rb
452texlive-collection-langcjk,/usr/bin/updmap-setup-kanji,/usr/share/texmf-dist/scripts/jfontmaps/updmap-setup-kanji.pl
453texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex
454texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py
455texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl
456texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl
457texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex
458texlive-collection-latexextra,/usr/bin/exceltex,/usr/share/texmf-dist/scripts/exceltex/exceltex
459texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries
460texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl
461texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl
462texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf
463texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl
464texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl
465texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl
466texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl
467texlive-collection-luatex,/usr/bin/checkcites,/usr/share/texmf-dist/scripts/checkcites/checkcites.lua
468texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua
469texlive-collection-music,/usr/bin/m-tx,/usr/share/texmf-dist/scripts/m-tx/m-tx.lua
470texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua
471texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua
472texlive-collection-music,/usr/bin/pmx2pdf,/usr/share/texmf-dist/scripts/pmx/pmx2pdf.lua
473texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu
474texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb
475texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl
476texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex
477texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl
478texlive-collection-pstricks,/usr/bin/pedigree,/usr/share/texmf-dist/scripts/pedigree-perl/pedigree.pl
479texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf
480texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl
481)
482for i in ${del_symlnks[@]}; do
483    %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1
484done
485
486## we replace texmf/web2c/updmap{,-hdr}.cfg with our updmap files
487%__cp -a %{SOURCE7} %{build_texmf}/web2c/updmap.cfg || exit 1
488%__mkdir_p %{buildroot}%{texmfsysconfig}/web2c
489%__cp -a %{SOURCE7} %{buildroot}%{texmfsysconfig}/web2c/updmap.cfg || exit 1
490
491## use our map files for dvipdfmx
492%__mkdir_p %{buildroot}%{aliasttfdir}
493%__mkdir_p %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine
494for x in ptex uptex otf otf-up; do
495    touch %{buildroot}%{texmfsysvar}/fonts/map/dvipdfmx/vine/${x}-vine.map
496done
497for x in FutoGo-Bold FutoMin-Bold Gothic-Medium MaruGo-Medium Mincho-Medium; do
498    touch %{buildroot}%{aliasttfdir}/${x}.ttf
499done
500
501## install updmap-kanji.html
502%__mkdir_p %{build_texmf}/doc/fonts/jfontmaps
503%__install -m0644 %{SOURCE2} %{build_texmf}/doc/fonts/jfontmaps/ || exit 1
504## install jtygm.sty
505%__mkdir_p %{build_texmf}/tex/platex/base
506%__install -m0644 %{SOURCE101} %{build_texmf}/tex/platex/base/ || exit 1
507## install cmex.enc
508%__mkdir_p %{build_texmf}/fonts/enc/pdftex/cmex
509%__install -m0644 %{SOURCE102} %{build_texmf}/fonts/enc/pdftex/cmex/ || exit 1
510
511## desktop things
512%__mkdir_p %{buildroot}%{_datadir}/applications
513%__install -m0644 -c %{SOURCE10} %{SOURCE11} \
514    %{buildroot}%{_datadir}/applications/
515
516# for created fonts
517%__mkdir_p %{buildroot}%{vartexfonts}
518# %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily
519# %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/
520
521## set executable bit for the library
522%__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.*
523%__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.*
524
525# configure ConTeXt
526for x in context ctxtools luatools texexec texmfstart; do
527  %__sed -i -e 's|mtxrun|export TEXMF=%{texmf}-dist TEXMFCNF=%{texmf}/web2c TEXMFCACHE=%{texmfsysvar}; mtxrun|' %{buildroot}%{_bindir}/${x}
528done
529
530# touch ghosts
531touch %{build_texmf}/ls-R
532touch %{build_texmf}-dist/ls-R
533touch %{buildroot}%{texmfsysconfig}/ls-R
534touch %{buildroot}%{texmfsysvar}/ls-R
535
536## remove unpackaging files
537find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f || exit 1
538find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f || exit 1
539%__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1
540find %{build_texmf}/fonts/map -type d | %__grep "updmap" | xargs %__rm -rf || exit 1
541find %{buildroot} -type d | grep asymptote | xargs %__rm -rf || exit 1
542%__rm -f %{build_texmf}/dvipdfm/config/config-win32 || exit 1
543%__rm -f %{buildroot}%{_infodir}/*
544
545
546### Files list
547find %{buildroot} -type f -or -type l | \
548    %__sed -e "s|%{buildroot}||g" | \
549    %__grep -v -e ".patch$" -e "\.diff$" -e "\.orig$" | \
550    %__grep -v "%{_includedir}" | \
551    %__grep -v "%{_libdir}" | \
552    %__grep -v "%{_infodir}" | \
553    %__sed -e "s|.*ls-R$|%ghost &|" \
554           -e "s|%{texmfsysvar}/fonts/map/dvipdfmx/vine/.*\.map$|%ghost &|" \
555           -e "s|%{aliasttfdir}/.*\.ttf$|%ghost &|" \
556           -e "s|.*/updmap.*\.cfg$|%config(noreplace) &|" \
557           -e "s|.*/dvipdfmx\.cfg$|%config(noreplace) &|" \
558           -e "s|.*xdvi\.cfg$|%config(noreplace) &|" \
559           -e "s|.*\.cnf$|%config(noreplace) &|" \
560           -e "s|%{texmf}*/xdvi/XDvi|%config(noreplace) &|" \
561           -e "s|%{texmf}/web2c/texmfcnf\.lua$|%config(noreplace) &|" \
562           -e "s|^.*/updmap/$|%config &|" \
563           -e "s|%{texmf}*/texconfig/tcfmgr.map$|%config &|" \
564           -e "s|%{texmf}*/dvips/config/.*$|%config &|" \
565           -e "s|%{texmf}*/dvips/tetex/config.*$|%config &|" \
566           -e "s|%{texmf}*/dvipdfm/config/config$|%config &|" \
567           -e "s|%{texmf}*/fonts/map/dvips/tetex/.*.map$|%config &|" \
568           -e "s|%{texmf}*/fonts/map/dvipdfmx/.*.map$|%config &|" \
569           -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \
570           -e "s|%{texmf}*/ttf2pk/ttf2pk\.cfg$|%config &|" \
571           -e "s|%{texmf}*/hbf2gf/.*\.cfg$|%config &|" \
572           -e "s|%{texmf}*/chktex/chktexrc$|%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}
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%touch_run texhash
673exit 0
674
675
676%files -f %{_builddir}/filelist.full
677%defattr(-,root,root)
678%dir %{aliasttfdir}
679%attr(1777,root,root) %dir %{vartexfonts}
680# %config %{_sysconfdir}/cron.daily/texlive.cron
681
682%files doc -f %{_builddir}/filelist.doc
683%defattr(-,root,root)
684
685%files -n libkpathsea
686%defattr(-,root,root)
687%{_libdir}/libkpathsea.so.*
688# %{_infodir}/kpathsea.info*
689
690%files -n libkpathsea-devel
691%defattr(-,root,root)
692%{_libdir}/libkpathsea.so
693%dir %{_includedir}/kpathsea
694%{_includedir}/kpathsea/*
695
696%files -n libptexenc
697%defattr(-,root,root)
698%{_libdir}/libptexenc.so.*
699
700%files -n libptexenc-devel
701%defattr(-,root,root)
702%{_libdir}/libptexenc.so
703%dir %{_includedir}/ptexenc
704%{_includedir}/ptexenc/*
705
706
707%changelog
708* Mon Nov 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-2
709- fixed Source7: updmap.cfg.texlive-20120701
710  (upto /etc/texmf/web2c/updmap.cfg)
711- fixex %%triggerin -- ghostscript
712  - replaced %%exec_texhash with %%touch_run texhash
713
714* Wed Nov 21 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1
715- TeX Live 2012 + tlptexlive 20121107
716
717* Tue Oct 30 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-7
718- drop BR: poppler-devel temporaly
719  - modify tl11supp-120120-vine.patch, texlive-20110705-vine.patch to do that
720
721* Mon May 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-6
722- build with poppler-0.18.4
723- remove tlmgr
724
725* Thu Jan 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-5
726- updated to tl11supp-120120
727- run %%{exec_fmtutil} at %%post when upgrading
728
729* Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-4
730- updated to tl11supp-111214
731
732* Sat Dec  3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-3
733- added BuildRequires: texlive-common
734  - Babel needs docstrip.tex, which is contained in texlive-collection-latex
735  - check japanese.ldf
736- updated tl11supp-111120-vine.patch
737  - added the following options to $$TL_CONFIGURE_ARGS:
738    --disable-detex
739    --disable-dvipng
740    --disable-lcdf-typetools
741- remove some files of asymptote
742- remove a man file of latexmk
743- remove man files of lcdf-typetools
744- remove man files of dvipng
745- remove a man file of detex
746
747* Mon Nov 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
748- added find-provides-texlive.sh and set it to %%__find_provides
749  - use to find library sonames for libkpathsea and libptexenc
750- added cmex.enc (%%{SOURCE110})
751  - do not install cmex.enc in our TDS, yet
752- removed some unused directories in texmf/fonts/map
753- removed man files of lcdf-typetools
754- moved texdoc{,tk} and its related files to texlive-doc
755
756* Wed Nov 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
757- TeX Live 2011 + tl11supp-111120
758
759* Thu Oct 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-22
760- make the directory VARTEXFONTS (%%posttrans)
761  - dropped %%triggerpostun -- texlive < 2009-17vl6
762
763* Tue Jul 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-21
764- fixed ptexlive-20100711-dvipdfmx-vine.patch
765  - for dvipdfmx.cfg, given some ps2pdf's parameters mistaked
766
767* Thu Jun 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-20
768- added %%pre to avoid conflictions of texmf-{config,var}
769
770* Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-19
771- dropped Requires: texlive-common
772- added perl-Tk-TableMatrix
773  - supported texdoctk
774- removed broken symbolic links in /usr/bin
775  - for each these symbolic links, the package of its real file/path
776    should be its owner.
777
778* Thu May 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-18
779- added %%triggerpostun -- texlive < 2009-17vl6
780  - make the directory VARTEXFONTS
781
782* Tue May 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-17
783- fixed %%dir VARTEXFONTS around in %%files
784- dropped BuildRequires: t1utils
785
786* Tue Apr 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-16
787- updated texlive-20091107-texmfcnf-vine.patch, texlive.cron
788  - changed VARTEXFONTS to /var/lib/texmf/fonts
789
790* Mon Apr 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-15
791- fixed updmap.cfg
792
793* Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-14
794- dropped Requires: texlive-macros
795
796* Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-13
797- updated ptexlive-20100711-pxdvik-vine.patch
798  and added texlive-20091107-xdvik-vine.patch
799  - fixed to adjust X resources in texmf/xdvi/XDvi for (p)xdvi
800
801* Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-12
802- supported Vine Linux 5
803  - for vl5, changed a requirement of Japanese VF package
804    - added Requires: texlive-jvf = 2009 (vl5)
805- dropped dependencies of Provides:/Obsoletes: tags
806  - merged these dependencies in texlive-common-vl.spec
807
808* Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 2009-11
809- rebuilt with poppler-0.14.2 (libpoppler has been up to so.7)
810
811* Fri Sep 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-10
812- applied some security patches from Debian
813  - texlive-2009-CVE-2010-0827.patch
814  - texlive-2009-CVE-2010-1440.patch
815- applied texlive-2009-pdftexdir-libpoppler-0.12.patch from Debian
816- applied texlive-2009-luatexdir-libpoppler-0.12.patch
817  based on texlive-2009-pdftexdir-libpoppler-0.12.patch
818- fixed some dependencies
819
820* Mon Aug 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-9
821- added BuildArch: noarch in %%package doc
822- removed some comment-out sentences
823
824* Tue Jul 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-8
825- separeted texmf-dist to texlive-common package
826
827* Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-7
828- unpacked texlive-20091107-source.tar.xz
829- babel is available now
830- applied eptex-100420 and some patches:
831  - eptex-100420-vine.patch
832  - eptex-100420-patch1.diff
833
834* Tue Jul 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6
835- updated ptexlive-20100711
836
837* Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5
838- customized updmap.cfg to correspond installed fonts
839
840* Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
841- fixed insttexfont()
842
843* Mon May 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
844- added jvf of MORISAWA basic 5 fonts
845- added cm-super, mathdesign in fntlst
846
847* Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
848- define insttexfont() in %%install
849  - copy almost compatible tetex-3.0
850
851* Sat May 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
852- ptexlive-20090322 + TeXLive 2009
853- added BuildRequires: openssl-devel
854
855* Sun Dec 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2008-0.20091206
856- ptexlive-20091009 + TeXLive 2008
Note: See TracBrowser for help on using the repository browser.