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