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

Revision 7042, 31.9 KB checked in by munepi, 12 years ago (diff)

drop BR: poppler-devel temporaly; modify tl11supp-120120-vine.patch, texlive-20110705-vine.patch to do that

Line 
1## -*- coding: utf-8-unix -*-
2%bcond_with firstbuild
3%bcond_with sources
4
5%define enable_sharedlib 1
6%if %{?_dist_release} == "vl6"
7%define enable_sharedlib 0
8%endif
9
10%global _use_internal_dependency_generator 0
11%global __find_provides %{SOURCE99}
12%global __find_requires %{nil}
13
14%define tl11suppver     120120
15%define texlivesrcver   20110705
16%define texlivever      20110705
17
18%define tl11supp_all_opts               -m -r
19%define tl11supp_source_common_sh       cd ${RPM_BUILD_DIR}/%{name}-%{version}/tl11; . ./common.sh %{tl11supp_all_opts}; set -x;
20
21%define tex_destdir     %{_datadir}
22%define texmf           %{tex_destdir}/texmf
23%define texlive_src     %{tex_destdir}/texlive-sources
24%define build_tex_destdir       %{buildroot}%{tex_destdir}
25%define build_texmf     %{buildroot}%{texmf}
26
27%define exec_mktexlsr  [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash
28%define exec_texhash  [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
29%define exec_updmap   [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys
30%define exec_fmtutil  [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null
31%define exec_upddeffont    [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
32%define vartexfonts %{_var}/lib/texmf/fonts
33
34Summary: The TeX text formatting system
35Summary(ja): TeX 文書整形システム
36Name: texlive
37Version: 2011
38Release: 7%{?_dist_release}
39License: distributable
40Group: Applications/Publishing
41URL: http://www.tug.org/texlive/
42
43Source: http://sourceforge.jp/projects/eptex/wiki/TeX_Live_2011/attach/tl11supp-%{tl11suppver}.tar.xz
44
45Source5: updmap-hdr.cfg.texlive-%{texlivesrcver}
46Source6: updmap.cfg.texlive-%{texlivesrcver}
47Source9: __usr_bin_symlink.sh
48
49## desktop files
50Source10: pxdvi.desktop
51Source11: texdoctk.desktop
52
53## find library sonames for libkpathsea and libptexenc
54Source99: find-provides-texlive.sh
55
56## etc...
57Source100: texlive.cron
58Source102: http://auemath.aichi-edu.ac.jp/~khotta/ghost/disk1/jtygm.sty
59Source110: http://mirrors.ctan.org/obsolete/support/pdftexenc/cmex.enc
60
61
62######
63# TeX patches
64######
65
66## vine
67Patch0:         tl11supp-%{tl11suppver}-vine.patch
68Patch1:         texlive-%{texlivesrcver}-vine.patch
69Patch2:         texlive-%{texlivesrcver}-texmfcnf-vine.patch
70Patch3:         texlive-%{texlivesrcver}-set-selfautoparent-vine.patch
71## pxdvi(k) for Vine Linux
72Patch10:        tl11supp-%{tl11suppver}-pxdvik-vine.patch
73
74## dvipdfmx
75# Patch20:      ptexlive-%{ptexlivever}-dvipdfmx-vine.patch
76
77## others
78
79## security
80
81Requires:    coreutils
82Requires:    ed mktemp
83Requires:    tmpwatch
84Requires:    zlib
85Requires:    libpng
86Requires:    gd
87Requires:    ncurses
88Requires:    libjpeg
89Requires:    t1lib
90Requires:    freetype2
91Requires:    openMotif
92Requires:    poppler >= 0.12
93Requires:    openssl
94Requires:    libpaper
95Requires:    fontconfig
96Requires:    perl-Tk perl-Tk-TableMatrix
97Requires:    nkf
98Requires:    ghostscript >= 8.63
99%if %{?_dist_release} == "vl7"
100Requires:    libkpathsea = %{version}-%{release}
101Requires:    libptexenc = %{version}-%{release}
102%endif
103%if %{?_dist_release} == "vl7"
104%{!?with_firstbuild:Requires: jvf >= 7.0}
105%endif
106%if %{?_dist_release} == "vl6"
107%{!?with_firstbuild:Requires: texlive-jvf >= 7.0}
108%endif
109Requires:    fontconfig >= 2.6.0-2
110Requires(post,postun): fontconfig >= 2.6.0-2
111Requires(post): ed mktemp
112Requires(post): vutils >= 2.0.5
113%{!?with_firstbuild:BuildRequires: texlive-common = %{version}}
114%{!?with_sources:BuildRequires: texlive-sources = %{version}}
115BuildRequires: xz
116BuildRequires: unzip
117BuildRequires: bison flex
118BuildRequires: bzip2-devel
119BuildRequires: zlib-devel
120BuildRequires: libpng-devel
121BuildRequires: gd-devel
122BuildRequires: ncurses-devel
123BuildRequires: libjpeg-devel
124BuildRequires: t1lib-devel
125BuildRequires: XOrg-devel
126BuildRequires: freetype2-devel >= 2.1.10
127BuildRequires: autoconf >= 2.68
128BuildRequires: openMotif-devel
129#BuildRequires: poppler-devel >= 0.12
130BuildRequires: openssl-devel
131BuildRequires: libpaper-devel
132BuildRequires: fontconfig-devel
133BuildRequires: nkf
134
135Buildroot:    %{_tmppath}/%{name}-%{version}-root
136
137Vendor:       Project Vine
138Distribution: Vine Linux
139Packager:     munepi
140
141
142%description
143The TeX Live software distribution offers a complete TeX system for a
144variety of Unix, Macintosh, Windows and other platforms. It
145encompasses programs for editing, typesetting, previewing and printing
146of TeX documents in many different languages, and a large collection
147of TeX macros and font libraries.
148
149The distribution includes extensive general documentation about TeX,
150as well as the documentation for the included software packages.
151
152
153%description -l ja
154TeX Live ソフトウェアディストリビューションは、
155さまざまな Unix, Macintosh, Windows、および
156他のプラットホームに対して完全な TeX システムを提供します。
157多くの異なった言語を含む TeX ドキュメントの
158編集、組版、閲覧、印刷するためのプログラム、
159そして、TeX マクロやフォントライブラリの大きなコレクションを
160同梱しています。
161
162このディストリビューションは
163同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
164TeX に関するたくさんの一般的なドキュメントを含んでいます。
165
166
167%package doc
168Summary: TeX Live: Documentation files of %{name}
169Group: Applications/Publishing
170Requires: %{name} = %{version}-%{release}
171BuildArch: noarch
172
173%description doc
174This package contains documentation files of %{name}.
175
176%if %{enable_sharedlib}
177%package -n libkpathsea
178Summary: path search library for the TeX Live
179Summary(ja): TeX Live 用パス検索ライブラリ
180Group: System Environment/Libraries
181
182%description -n libkpathsea
183This package includes runtime part of the Kpathsea library.
184
185
186%package -n libkpathsea-devel
187Summary: path search libary and header files for the TeX Live
188Summary(ja): TeX Live 用パス検索ライブラリとヘッダファイル
189Group: Development/Libraries
190Requires: libkpathsea = %{version}-%{release}
191
192%description -n libkpathsea-devel
193This package includes static library and header files of the Kpathsea library.
194
195
196%package -n libptexenc
197Summary: Kanji code convert library for Japanese pTeX
198Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリ
199Group: System Environment/Libraries
200Requires: libkpathsea = %{version}-%{release}
201
202%description -n libptexenc
203This package includes runtime part of the ptexenc library.
204
205
206%package -n libptexenc-devel
207Summary: Kanji code convert library and header files for Japanese pTeX
208Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリとヘッダファイル
209Group: Development/Libraries
210Requires: libptexenc = %{version}-%{release}
211
212%description -n libptexenc-devel
213This package includes header files of the ptexenc library.
214%endif
215
216
217%prep
218[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
219
220%setup -q -c %{name}-%{version}
221
222##
223[ -f %{texlive_src}/source/texlive-%{texlivesrcver}-source.tar.xz ] && \
224  %__ln_s -f %{texlive_src}/source/texlive-%{texlivesrcver}-source.tar.xz tl11/
225
226## apply tl11supp
227%patch0 -p1 -b .vine
228%__chmod +x tl11/scripts/build-post.sh || exit 1
229
230## fix $TLSRCDIR
231%__sed -i -e "s,TLSRCDIR=/opt/home-supp/tl11,TLSRCDIR=%{_builddir}/%{name}-%{version}/tl11," %{_builddir}/%{name}-%{version}/tl11/common.sh || exit 1
232
233## exec scripts/unpack.sh
234%{tl11supp_source_common_sh}
235
236scripts/unpack.sh %{tl11supp_all_opts} || exit 1
237
238## some hacks for Vine Linux
239(cd ../
240## vine
241%patch1 -p1 -b .vine
242%patch2 -p1 -b .vine
243%patch3 -p1 -b .vine
244%patch10 -p1 -b .vine
245)
246
247# ## dvipdfmx for Vine Linux
248# %patch20 -p1 -b .orig
249# )
250
251## apply security patches
252
253
254%build
255set -x
256unset TEXINPUTS || :
257unset HOME || :
258%{tl11supp_source_common_sh}
259
260## exec scripts/build.sh
261export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
262       CXXFLAGS="$RPM_OPT_FLAGS" \
263       LANG=C
264
265scripts/build.sh %{tl11supp_all_opts} || exit 1
266
267
268%install
269## prepare %%install session
270[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
271
272set -x
273unset TEXINPUTS || :
274unset HOME || :
275%{tl11supp_source_common_sh}
276
277## The following lines are useful for the call of
278## "rpmbuild -ba --short-circuit ~/rpm/SPECS/texlive-vl.spec"
279%__rm -rf ${SRCDIR}/inst
280(cd ${SRCDIR}/Work
281%__make world
282)
283
284## exec scripts/build-post.sh (Vine Linux only)
285scripts/build-post.sh %{tl11supp_all_opts} || exit 1
286[ -d $SRCDIR/inst/texmf.orig ] && %__rm -rf $SRCDIR/inst/texmf.orig || exit 1
287
288## almostly exec scripts/texmf.sh
289scripts/texmf.sh %{tl11supp_all_opts} || exit 1
290
291## almostly exec scripts/font.sh
292yes N | scripts/font.sh %{tl11supp_all_opts} || exit 1
293
294## replace updmap{,-hdr}.cfg with our updmap{,-hdr}.cfg respectively
295%__cp -af %{SOURCE5} $SRCDIR/inst/texmf/web2c/updmap-hdr.cfg || exit 1
296%__cp -af %{SOURCE6} $SRCDIR/inst/texmf/web2c/updmap.cfg || exit 1
297
298## almostly exec scripts/install.sh
299%__mkdir_p %{build_tex_destdir}
300(cd $SRCDIR/inst && tar cf - *) \
301    | (cd %{build_tex_destdir} && tar xf -) || exit  1
302
303## check japanese.ldf (Babel for Japanese)
304%if %{without firstbuild}
305[ -f %{build_texmf}/tex/platex/japanese/japanese.ldf ] || exit 1
306[ -f %{build_texmf}/tex/platex/japanese/ptex.log ] || exit 1
307[ -f %{build_texmf}/tex/platex/japanese/texput.log ] && exit 1
308%endif
309
310## remove the symbolic link texmf-dist@
311[ -L %{build_tex_destdir}/texmf-dist ] && \
312  %__rm -f %{build_tex_destdir}/texmf-dist || exit 1
313## remove lcdf-typetools-for-tex-live directory
314#%__rm -r %{build_tex_destdir}/lcdf-typetools-for-tex-live || exit 1
315## remove unused directories in texmf/fonts/map
316%__rm -rf %{build_texmf}/fonts/map/dvips/updmap || exit 1
317%__rm -rf %{build_texmf}/fonts/map/pdftex/updmap || exit 1
318
319## move bin, lib include, man, info to /usr, resp.
320%__rm -f %{build_tex_destdir}/bin/man || exit 1
321%__mv %{build_tex_destdir}/bin %{buildroot}%{_bindir} || exit 1
322%__mv %{build_tex_destdir}/lib %{buildroot}%{_libdir} || exit 1
323%__mv %{build_tex_destdir}/include %{buildroot}%{_includedir} || exit 1
324%__cp -ar %{build_texmf}/doc/man %{buildroot}%{_mandir} || exit 1
325#%__mv %{build_texmf}/doc/info %{buildroot}%{_infodir} || exit 1
326
327## move dvipdfmx/newmap/{ptex,otf} to dvipdfmx/{ptex,otf}, resp.
328%__mv %{build_texmf}/fonts/map/dvipdfmx/newmap/* %{build_texmf}/fonts/map/dvipdfmx/ || exit 1
329%__rm -rf %{build_texmf}/fonts/map/dvipdfmx/newmap
330
331## make some fundamental texmf trees
332%__mkdir_p %{build_texmf}-{config,var,local,dist}
333%__mkdir_p %{build_texmf}/fonts/{truetype,opentype}
334
335texmf_local_dirs=(
336  bibtex/bib/local
337  bibtex/bst/local
338  dvips/local
339  fonts/source/local
340  fonts/tfm/local
341  fonts/opentype/local
342  fonts/truetype/local
343  fonts/type1/local
344  fonts/vf/local
345  metapost/local
346  pbibtex/bib/local
347  pbibtex/bst/local
348  tex/latex/local
349  tex/plain/local
350  tex/platex/local
351  web2c
352)
353for i in ${texmf_local_dirs[@]}; do
354    %__mkdir_p %{build_texmf}-local/${i}
355done
356
357## remove tlmgr
358%__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1
359
360## copy texmf-dist/README
361%__cp -a %{texlive_src}/texmf-dist/README %{build_texmf}-dist/ || exit 1
362
363## customize updmap.cfg
364%__sed -i -e "s,^\(Map\|MixedMap\),#! \1,g" %{build_texmf}/web2c/updmap.cfg
365
366## dvipdfmx: our map file
367%__mkdir_p %{build_texmf}/fonts/map/dvipdfmx
368touch %{build_texmf}/fonts/map/dvipdfmx/vine.map
369
370## install jtygm.sty
371%__mkdir_p %{build_texmf}/tex/platex/base/
372%__install -m0644 %{SOURCE102} %{build_texmf}/tex/platex/base/ || exit 1
373
374## relocate binaries to %{_bindir} and fix relative symlinks
375pushd %{buildroot}%{_bindir}
376for i in `find . -type l`; do
377if [ "`readlink $i | grep '..' | wc -l`" == "1" ]; then
378l=`readlink $i | sed s,../,../share/,`
379%__ln_s -f $l $i
380fi
381done
382## if the real file of a symlink on /usr/bin is contained
383## in texlive-collection-*, remove its symlink
384## See __usr_bin_symlink.sh
385del_symlnks=(
386texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh
387texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex
388texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc
389texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro
390texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py
391texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph
392texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl
393texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl
394texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man
395texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl
396texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl
397texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl
398texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl
399texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh
400texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl
401texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180
402texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270
403texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90
404texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook
405texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl
406texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip
407texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam
408texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
409texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up
410texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up
411texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin
412texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup
413texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun
414texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl
415texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper
416texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps
417texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl
418texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl
419texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl
420texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff
421texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten
422texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser
423texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm
424texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst
425texlive-collection-fontutils,/usr/bin/cmap2enc,/usr/share/texmf-dist/scripts/fontools/cmap2enc
426texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl
427texlive-collection-fontutils,/usr/bin/font2afm,/usr/share/texmf-dist/scripts/fontools/font2afm
428texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font
429texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx
430texlive-collection-fontutils,/usr/bin/pfm2kpx,/usr/share/texmf-dist/scripts/fontools/pfm2kpx
431texlive-collection-fontutils,/usr/bin/showglyphs,/usr/share/texmf-dist/scripts/fontools/showglyphs
432texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp
433texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl
434texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh
435texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh
436texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh
437texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh
438texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh
439texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh
440texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh
441texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh
442texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl
443texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex
444texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py
445texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl
446texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl
447texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex
448texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries
449texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl
450texlive-collection-latexextra,/usr/bin/pdfthumb,/usr/share/texmf-dist/scripts/ppower4/pdfthumb.tlu
451texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl
452texlive-collection-latexextra,/usr/bin/ppower4,/usr/share/texmf-dist/scripts/ppower4/ppower4.tlu
453texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf
454texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl
455texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl
456texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl
457texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl
458texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua
459texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua
460texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua
461texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu
462texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb
463texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl
464texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex
465texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl
466texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf
467texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl
468)
469for i in ${del_symlnks[@]}; do
470    %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1
471done
472
473## remove man files of psutils
474%__rm \
475  %{buildroot}%{_mandir}/man1/epsffit.1 \
476  %{buildroot}%{_mandir}/man1/extractres.1 \
477  %{buildroot}%{_mandir}/man1/fixdlsrps.1 \
478  %{buildroot}%{_mandir}/man1/fixfmps.1 \
479  %{buildroot}%{_mandir}/man1/fixpsditps.1 \
480  %{buildroot}%{_mandir}/man1/fixpspps.1 \
481  %{buildroot}%{_mandir}/man1/fixscribeps.1 \
482  %{buildroot}%{_mandir}/man1/fixtpps.1 \
483  %{buildroot}%{_mandir}/man1/fixwfwps.1 \
484  %{buildroot}%{_mandir}/man1/fixwpps.1 \
485  %{buildroot}%{_mandir}/man1/fixwwps.1 \
486  %{buildroot}%{_mandir}/man1/getafm.1 \
487  %{buildroot}%{_mandir}/man1/includeres.1 \
488  %{buildroot}%{_mandir}/man1/psbook.1 \
489  %{buildroot}%{_mandir}/man1/psmerge.1 \
490  %{buildroot}%{_mandir}/man1/psnup.1 \
491  %{buildroot}%{_mandir}/man1/psresize.1 \
492  %{buildroot}%{_mandir}/man1/psselect.1 \
493  %{buildroot}%{_mandir}/man1/pstops.1 \
494  || exit 1
495## remove man files of lcdf-typetools
496%__rm \
497  %{buildroot}%{_mandir}/man1/cfftot1.1 \
498  %{buildroot}%{_mandir}/man1/mmafm.1 \
499  %{buildroot}%{_mandir}/man1/mmpfb.1 \
500  %{buildroot}%{_mandir}/man1/otfinfo.1 \
501  %{buildroot}%{_mandir}/man1/otftotfm.1 \
502  %{buildroot}%{_mandir}/man1/t1dotlessj.1 \
503  %{buildroot}%{_mandir}/man1/t1lint.1 \
504  %{buildroot}%{_mandir}/man1/t1rawafm.1 \
505  %{buildroot}%{_mandir}/man1/t1reencode.1 \
506  %{buildroot}%{_mandir}/man1/t1testpage.1 \
507  %{buildroot}%{_mandir}/man1/ttftotype42.1 \
508  || exit 1
509## remove man files of dvipng
510%__rm \
511  %{buildroot}%{_mandir}/man1/dvigif.1 \
512  %{buildroot}%{_mandir}/man1/dvipng.1 \
513  || exit 1
514## remove some files of asymptote
515%__rm \
516  %{buildroot}%{_mandir}/man1/asy.1 \
517  %{buildroot}%{_mandir}/man1/xasy.1 \
518  %{build_texmf}/tex/latex/asymptote/asymptote.sty \
519  %{build_texmf}/tex/latex/asymptote/ocg.sty \
520  || exit 1
521## remove a man file of latexmk
522%__rm \
523  %{buildroot}%{_mandir}/man1/latexmk.1 \
524  || exit 1
525## remove a man file of detex
526%__rm \
527  %{buildroot}%{_mandir}/man1/detex.1 \
528  || exit 1
529
530# remove unpackaged files
531find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \;
532find %{buildroot}%{_datadir} -name ls-R -exec %__rm -f {} \;
533find %{buildroot}%{_mandir} -name Makefile -exec %__rm -f {} \;
534find %{buildroot}%{_mandir} -name *.pdf -exec %__rm -f {} \;
535
536
537# ## compress info files
538# %__rm -f %{buildroot}%{_infodir}/dir
539# %__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
540
541## desktop things
542%__mkdir_p %{buildroot}%{_datadir}/applications
543%__install -m0644 -c %{SOURCE10} %{SOURCE11} \
544    %{buildroot}%{_datadir}/applications/
545
546# for created fonts
547%__mkdir_p %{buildroot}%{vartexfonts}
548%__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily
549%__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/
550
551## set executable bit for the library
552%if %{enable_sharedlib}
553%__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.*
554%__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.*
555%endif
556
557## remove unpackaging files
558find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f
559find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f
560
561### Files list
562find %{buildroot} -type f -or -type l | \
563    %__sed -e "s|%{buildroot}||g" | \
564    %__grep -v -e "^%{_sysconfdir}" -e ".patch$" -e "\.diff$" -e "\.orig$" | \
565    %__grep -v "%{_includedir}" | \
566    %__grep -v "%{_libdir}" | \
567    %__grep -v "%{_infodir}" | \
568    %__sed -e "s|.*\.\(cnf\|cfg\)$|%config(noreplace) &|" \
569           -e "s|.*ls-R$|%ghost &|" \
570           -e "s|^.*/updmap$|%config &|" \
571           -e "s|%{texmf}*/dvips/config/\(psfonts.*\|ps2pk.*\|pdftex.*\|dvipdfm.*\|.*35\)\.map$|%ghost &|" \
572           -e "s|%{texmf}*/web2c/.*\.\(fmt\|efmt\|log\|base\|mem\|oft\)$|%config &|" \
573           -e "s|%{texmf}*/dvips/config/config\.\(generic\|pdf\|ps\|www\)$|%config &|" \
574           -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \
575           -e "s|%{texmf}*/pdftex/config/pdftex.cfg$|%config &|" \
576           -e "s|%{texmf}*/xdvi/vfontmap$|%config &|" \
577           -e "s|%{texmf}*/xdvi/XDvi|%config &|" \
578           -e "s|%{_mandir}/.*|&*|" \
579        > %{_builddir}/%{name}-%{version}/filelist.full
580
581find %{buildroot}%{texmf}* -type d | \
582    %__sed -e "s|^%{buildroot}|%dir |" \
583           -e "s|$|/|" >> %{_builddir}/%{name}-%{version}/filelist.full
584
585## subpackages
586%__grep -e "/texmf/doc/" -e "/texdoc" %{_builddir}/%{name}-%{version}/filelist.full > %{_builddir}/%{name}-%{version}/filelist.doc
587cat %{_builddir}/%{name}-%{version}/filelist.doc \
588    %{_builddir}/%{name}-%{version}/filelist.full | \
589    sort | uniq -u > %{_builddir}/%{name}-%{version}/filelist.tmp
590%__mv -f %{_builddir}/%{name}-%{version}/filelist.tmp %{_builddir}/%{name}-%{version}/filelist.full
591
592
593%clean
594%__rm -rf %{buildroot}
595
596
597%pretrans
598rpm -q texlive | grep -q 2009
599[ $? -eq 1 ] && exit 0
600## upgrade TeX Live from 2009 to 2011
601_trans_time=$(date +%Y%m%d)
602echo "Running transitional process of your TeX system ... "
603for dir in %{texmf}-var %{texmf}-config; do
604    _trans_dir=${dir}.${_trans_time}.rpmorig
605    [ -d ${_trans_dir}.old ] && \
606        echo -n "  " && \
607        echo "Found ${_trans_dir}.old: " && \
608        echo -n "    " && \
609        %__rm -rvf ${_trans_dir}.old
610    [ -d ${_trans_dir} ] && \
611        echo -n "  " && \
612        echo "Found ${_trans_dir}: " && \
613        echo -n "    " && \
614        %__mv -v ${_trans_dir} ${_trans_dir}.old
615    [ -d ${dir} ] && \
616        echo -n "  " && \
617        echo "Found ${dir}: " && \
618        echo -n "    " && \
619        %__mv -v ${dir} ${_trans_dir}
620done
621echo "done."
622
623
624%post
625## create our own vine.map (cid-x.map) to use dvipdfmx
626( %{exec_upddeffont} ) ||:
627
628%{exec_texhash}
629%{exec_updmap} --syncwithtrees --nomkmap &>/dev/null
630%{exec_updmap} --enable KanjiMap vine.map >/dev/null 2>&1
631if [ "$1" = 2 ]; then
632   %{exec_fmtutil} 2>&1
633fi
634exit 0
635
636%preun
637if [ "$1" = 0 ]; then
638    %__rm -rf %{vartexfonts}
639
640    ## dvipdfmx
641    for i in %{texmf}/fonts/truetype/*; do
642        if [ -L "$i" ]; then
643            %__rm -f "$i"
644        fi
645    done
646fi
647
648
649%if %{enable_sharedlib}
650%post -n libkpathsea
651/sbin/ldconfig
652# /sbin/install-info %{_infodir}/kpathsea.info.* %{_infodir}/dir
653
654%preun -n libkpathsea
655# if [ "$1" = 0 ]; then
656#     /sbin/install-info --delete %{_infodir}/kpathsea.info.* %{_infodir}/dir
657# fi
658
659%postun -n libkpathsea
660/sbin/ldconfig
661
662%post -n libptexenc
663/sbin/ldconfig
664
665%postun -n libptexenc
666/sbin/ldconfig
667%endif
668
669%posttrans
670%__mkdir_p %{vartexfonts}
671%__chmod 1777 %{vartexfonts}
672
673
674%triggerin -- ghostscript
675%__rm -f %{texmf}/fonts/cmap/ghostscript
676if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then
677    %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{texmf}/fonts/cmap/ghostscript
678elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then
679    %__ln_s %{_datadir}/ghostscript/Resource/CMap %{texmf}/fonts/cmap/ghostscript
680fi
681%{exec_texhash}
682
683
684%files -f %{_builddir}/%{name}-%{version}/filelist.full
685%defattr(-,root,root)
686%attr(1777,root,root) %dir %{vartexfonts}
687%config %{_sysconfdir}/cron.daily/texlive.cron
688
689%files doc -f %{_builddir}/%{name}-%{version}/filelist.doc
690%defattr(-,root,root)
691
692%if %{enable_sharedlib}
693%files -n libkpathsea
694%defattr(-,root,root)
695%{_libdir}/libkpathsea.so.*
696# %{_infodir}/kpathsea.info*
697
698%files -n libkpathsea-devel
699%defattr(-,root,root)
700%{_libdir}/libkpathsea.so
701%dir %{_includedir}/kpathsea
702%{_includedir}/kpathsea/*
703
704%files -n libptexenc
705%defattr(-,root,root)
706%{_libdir}/libptexenc.so.*
707
708%files -n libptexenc-devel
709%defattr(-,root,root)
710%{_libdir}/libptexenc.so
711%dir %{_includedir}/ptexenc
712%{_includedir}/ptexenc/*
713%endif
714
715
716%changelog
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.