1 | # -*- coding: utf-8-unix -*- |
---|
2 | %bcond_with firstbuild |
---|
3 | |
---|
4 | %global _use_internal_dependency_generator 0 |
---|
5 | %global __find_provides %{SOURCE99} |
---|
6 | %global __find_requires %{SOURCE98} |
---|
7 | |
---|
8 | %global texlivesrcver 20131101 |
---|
9 | |
---|
10 | Summary: The TeX text formatting system |
---|
11 | Summary(ja): TeX 文書整形システム |
---|
12 | Name: texlive |
---|
13 | Version: 2013 |
---|
14 | Release: 7%{?_dist_release} |
---|
15 | License: distributable |
---|
16 | Group: Applications/Publishing |
---|
17 | URL: http://www.tug.org/texlive/ |
---|
18 | |
---|
19 | ## original TeX Live source |
---|
20 | #Source: ftp://tug.org/historic/systems/texlive/%{version}/%{name}-%{texlivesrcver}-source.tar.xz |
---|
21 | ## snapshot |
---|
22 | # $ rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source/ texlive-source-YYYYMMDD |
---|
23 | # $ tar -cf - texlive-source-YYYYMMDD | pxz -9 > texlive-source-YYYYMMDD.tar.xz |
---|
24 | Source: %{name}-source-%{texlivesrcver}.tar.xz |
---|
25 | |
---|
26 | ## tlptexlive: pmetapost |
---|
27 | Source1: http://www.preining.info/software/build-tlptexlive-20130815.zip |
---|
28 | Source2: http://www.tug.org/texlive/updmap-kanji.html |
---|
29 | |
---|
30 | ## our updmap{,-hdr}.cfg from collection-basic 20130823 |
---|
31 | # NOTE: |
---|
32 | # * texmf.cnf: we use the conf file texmf.cnf generated from Source0 |
---|
33 | Source6: updmap-hdr.cfg.texlive-%{texlivesrcver} |
---|
34 | Source7: updmap.cfg.texlive-%{texlivesrcver} |
---|
35 | |
---|
36 | ## desktop files |
---|
37 | # Source10: pxdvi.desktop |
---|
38 | Source11: texdoctk.desktop |
---|
39 | |
---|
40 | # ## pxdvi from tlptexlive 2012 |
---|
41 | # Source50: texlive-source-xdvik-20130106.tar.xz |
---|
42 | # Source51: http://www.preining.info/software/build-tlptexlive-20130106.zip |
---|
43 | |
---|
44 | Source98: find-requires-texlive.sh |
---|
45 | ## find library sonames for libkpathsea and libptexenc |
---|
46 | Source99: find-provides-texlive.sh |
---|
47 | |
---|
48 | ## etc... |
---|
49 | #Source100: texlive.cron |
---|
50 | |
---|
51 | |
---|
52 | ###### |
---|
53 | # TeX patches |
---|
54 | ###### |
---|
55 | |
---|
56 | ## vine |
---|
57 | Patch0: reautoconf-parallel.diff |
---|
58 | Patch1: texlive-%{texlivesrcver}-vine.patch |
---|
59 | Patch2: texlive-%{texlivesrcver}-texmfcnf-vine.patch |
---|
60 | Patch3: texlive-%{texlivesrcver}-set-selfautoparent-vine.patch |
---|
61 | #Patch10: texlive-%{texlivesrcver}-pxdvik-vine.patch |
---|
62 | |
---|
63 | ## security |
---|
64 | |
---|
65 | Requires: perl-Tk perl-Tk-TableMatrix |
---|
66 | Requires: ghostscript >= 8.71 |
---|
67 | Requires: nkf |
---|
68 | Requires(post,postun): fontconfig |
---|
69 | Requires(post): ed mktemp |
---|
70 | Requires(post): vutils >= 7.1 |
---|
71 | %{!?with_firstbuild:Requires: texlive-common = %{version}} |
---|
72 | BuildRequires: bison flex |
---|
73 | BuildRequires: bzip2-devel |
---|
74 | BuildRequires: zlib-devel |
---|
75 | BuildRequires: libpng-devel |
---|
76 | BuildRequires: gd-devel |
---|
77 | BuildRequires: ncurses-devel |
---|
78 | BuildRequires: libjpeg-devel |
---|
79 | BuildRequires: XOrg-devel |
---|
80 | BuildRequires: freetype2-devel >= 2.1.10 |
---|
81 | BuildRequires: autoconf >= 2.68 |
---|
82 | BuildRequires: openMotif-devel |
---|
83 | BuildRequires: poppler-devel >= 0.20 |
---|
84 | BuildRequires: openssl-devel |
---|
85 | BuildRequires: fontconfig-devel |
---|
86 | BuildRequires: libpaper-devel >= 1.1.24-2 |
---|
87 | BuildRequires: nkf |
---|
88 | ## needs to build pxdvi |
---|
89 | #BuildRequires: t1lib-devel |
---|
90 | |
---|
91 | BuildRequires: texlive-vtlpkg = %{version} |
---|
92 | |
---|
93 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
94 | |
---|
95 | Vendor: Project Vine |
---|
96 | Distribution: Vine Linux |
---|
97 | Packager: munepi |
---|
98 | |
---|
99 | |
---|
100 | %description |
---|
101 | The TeX Live software distribution offers a complete TeX system for a |
---|
102 | variety of Unix, Macintosh, Windows and other platforms. It |
---|
103 | encompasses programs for editing, typesetting, previewing and printing |
---|
104 | of TeX documents in many different languages, and a large collection |
---|
105 | of TeX macros and font libraries. |
---|
106 | |
---|
107 | The distribution includes extensive general documentation about TeX, |
---|
108 | as well as the documentation for the included software packages. |
---|
109 | |
---|
110 | |
---|
111 | %description -l ja |
---|
112 | TeX Live ソフトウェアディストリビューションは、 |
---|
113 | さまざまな Unix, Macintosh, Windows、および |
---|
114 | 他のプラットホームに対して完全な TeX システムを提供します。 |
---|
115 | 多くの異なった言語を含む TeX ドキュメントの |
---|
116 | 編集、組版、閲覧、印刷するためのプログラム、 |
---|
117 | そして、TeX マクロやフォントライブラリの大きなコレクションを |
---|
118 | 同梱しています。 |
---|
119 | |
---|
120 | このディストリビューションは |
---|
121 | 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、 |
---|
122 | TeX に関するたくさんの一般的なドキュメントを含んでいます。 |
---|
123 | |
---|
124 | |
---|
125 | %package doc |
---|
126 | Summary: TeX Live: Documentation files of %{name} |
---|
127 | Group: Applications/Publishing |
---|
128 | Requires: %{name} = %{version}-%{release} |
---|
129 | BuildArch: noarch |
---|
130 | |
---|
131 | %description doc |
---|
132 | This package contains documentation files of %{name}. |
---|
133 | |
---|
134 | %package -n libkpathsea |
---|
135 | Summary: path search library for the TeX Live |
---|
136 | Summary(ja): TeX Live 用パス検索ライブラリ |
---|
137 | Group: System Environment/Libraries |
---|
138 | |
---|
139 | %description -n libkpathsea |
---|
140 | This package includes runtime part of the Kpathsea library. |
---|
141 | |
---|
142 | |
---|
143 | %package -n libkpathsea-devel |
---|
144 | Summary: path search libary and header files for the TeX Live |
---|
145 | Summary(ja): TeX Live 用パス検索ライブラリとヘッダファイル |
---|
146 | Group: Development/Libraries |
---|
147 | Requires: libkpathsea = %{version}-%{release} |
---|
148 | |
---|
149 | %description -n libkpathsea-devel |
---|
150 | This package includes static library and header files of the Kpathsea library. |
---|
151 | |
---|
152 | |
---|
153 | %package -n libptexenc |
---|
154 | Summary: Kanji code convert library for Japanese pTeX |
---|
155 | Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリ |
---|
156 | Group: System Environment/Libraries |
---|
157 | Requires: libkpathsea = %{version}-%{release} |
---|
158 | |
---|
159 | %description -n libptexenc |
---|
160 | This package includes runtime part of the ptexenc library. |
---|
161 | |
---|
162 | |
---|
163 | %package -n libptexenc-devel |
---|
164 | Summary: Kanji code convert library and header files for Japanese pTeX |
---|
165 | Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリとヘッダファイル |
---|
166 | Group: Development/Libraries |
---|
167 | Requires: libptexenc = %{version}-%{release} |
---|
168 | |
---|
169 | %description -n libptexenc-devel |
---|
170 | This package includes header files of the ptexenc library. |
---|
171 | |
---|
172 | |
---|
173 | %prep |
---|
174 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
175 | |
---|
176 | #%setup -q -n %{name}-%{texlivesrcver}-source |
---|
177 | %setup -q -n %{name}-source-%{texlivesrcver} -a 1 |
---|
178 | |
---|
179 | %patch0 -p0 -b .parallel |
---|
180 | %patch1 -p1 -b .vine |
---|
181 | %patch2 -p1 -b .vine |
---|
182 | %patch3 -p1 -b .vine |
---|
183 | |
---|
184 | ## Applying tlptexlive that provides pxdvi(k) and pmpost |
---|
185 | echo "applying patches" |
---|
186 | cat "$(pwd)/build-tlptexlive-20130815/patches/series" | while read p r ; do |
---|
187 | echo $p | grep '^#' >/dev/null || \ |
---|
188 | patch -p1 $r < "$(pwd)/build-tlptexlive-20130815/patches/$p" || exit 1 |
---|
189 | done |
---|
190 | |
---|
191 | # ## pxdvi from tlptexlive 2012 |
---|
192 | # echo "creating pxdvi folder" |
---|
193 | # [ -d texk/pxdvik ] && exit 1 |
---|
194 | # %__cp -pR texlive-source-20130106/texk/xdvik texk/pxdvik |
---|
195 | # echo "applying patches" |
---|
196 | # cat "$(pwd)/build-tlptexlive-20130106/patches/series" | \ |
---|
197 | # grep -v -e freetype-modules -e pmpost -e reautoconf | while read p r ; do |
---|
198 | # echo $p | grep '^#' >/dev/null || \ |
---|
199 | # patch -p1 $r < "$(pwd)/build-tlptexlive-20130106/patches/$p" || exit 1 |
---|
200 | # done |
---|
201 | # |
---|
202 | # # customize pxdvik for Vine Linux |
---|
203 | # %patch10 -p1 -b .vine |
---|
204 | |
---|
205 | |
---|
206 | ## Avoid pollution from internal libraries. |
---|
207 | %__rm -rf ./libs/{cairo,expat,freetype,freetype2,gd,jpeg,libpng,libttf,ncurses,paper,pixman,poppler,t1lib,unzip,xpdf,zlib} || exit 1 |
---|
208 | # ./reautoconf || exit 1 |
---|
209 | |
---|
210 | |
---|
211 | %build |
---|
212 | set -x |
---|
213 | unset TEXINPUTS || : |
---|
214 | unset HOME || : |
---|
215 | |
---|
216 | export CFLAGS="$RPM_OPT_FLAGS" \ |
---|
217 | CXXFLAGS="$RPM_OPT_FLAGS" \ |
---|
218 | LANG=C |
---|
219 | |
---|
220 | PREFIX=$(pwd)/work |
---|
221 | |
---|
222 | TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=motif |
---|
223 | TL_MAKE_FLAGS=-j$(/usr/bin/getconf _NPROCESSORS_ONLN) |
---|
224 | |
---|
225 | TL_CONFIGURE_ARGS=" \ |
---|
226 | --disable-multiplatform \ |
---|
227 | --disable-native-texlive-build \ |
---|
228 | --with-banner-add=\"/Vine Linux\" \ |
---|
229 | --enable-shared --disable-static \ |
---|
230 | --enable-compiler-warnings=max \ |
---|
231 | --without-cxx-runtime-hack \ |
---|
232 | \ |
---|
233 | --enable-web2c \ |
---|
234 | --enable-web-progs --enable-dvipdfmx --enable-mendexk \ |
---|
235 | --enable-makejvf --enable-pxdvik --enable-dvipsk \ |
---|
236 | --enable-tetex --enable-texlive \ |
---|
237 | \ |
---|
238 | --with-system-xpdf \ |
---|
239 | --with-system-gd \ |
---|
240 | --with-system-t1lib \ |
---|
241 | --with-system-libpng \ |
---|
242 | --with-system-zlib \ |
---|
243 | --with-system-freetype2 \ |
---|
244 | --with-system-paper \ |
---|
245 | --with-system-pixman \ |
---|
246 | --with-system-poppler \ |
---|
247 | --with-system-cairo \ |
---|
248 | --with-freetype2-include=$(freetype-config --cflags | %__sed -e 's/-I//' -e 's/ .*//') \ |
---|
249 | --with-pic \ |
---|
250 | \ |
---|
251 | --disable-xindy --disable-xindy-docs --disable-xindy-make-rules \ |
---|
252 | --disable-dvi2tty \ |
---|
253 | --disable-t1utils --disable-psutils --disable-detex \ |
---|
254 | --disable-dvipng --disable-lcdf-typetools \ |
---|
255 | " |
---|
256 | |
---|
257 | export TL_CONF_XDVI_TOOLKIT TL_MAKE_FLAGS TL_CONFIGURE_ARGS |
---|
258 | TL_MAKE=%__make ./Build || exit 1 |
---|
259 | |
---|
260 | |
---|
261 | %install |
---|
262 | ## prepare %%install session |
---|
263 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
264 | |
---|
265 | ## copy inst directory to /usr |
---|
266 | %__mkdir_p %{buildroot} |
---|
267 | %__cp -a inst %{buildroot}%{_prefix} || exit 1 |
---|
268 | %ifarch x86_64 |
---|
269 | %__mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir} || exit 1 |
---|
270 | %endif |
---|
271 | |
---|
272 | ## make some fundamental texmf trees |
---|
273 | %__mkdir_p %{buildroot}%{_tl_texmfvine} |
---|
274 | %__mkdir_p %{buildroot}%{_tl_texmfdist} |
---|
275 | %__mkdir_p %{buildroot}%{_tl_texmflocal} |
---|
276 | %__mkdir_p %{buildroot}%{_tl_texmfsysconfig} |
---|
277 | %__mkdir_p %{buildroot}%{_tl_texmfsysvar} |
---|
278 | %__mkdir_p %{buildroot}%{_tl_vartexfonts} |
---|
279 | %__mkdir_p %{buildroot}%{_tl_texmfvine}/fonts/{truetype,opentype} |
---|
280 | %__mkdir_p %{buildroot}%{_tl_texmfvine}/fonts/cmap |
---|
281 | |
---|
282 | cat<<EOF>%{buildroot}%{_tl_texmfdist}/README.vine || exit 1 |
---|
283 | The directory %{_tl_texmfdist} is the texmf tree of the TeX Live |
---|
284 | distribution wide. |
---|
285 | You must not do any changes in this directory. |
---|
286 | EOF |
---|
287 | |
---|
288 | cat<<EOF>%{buildroot}%{_tl_texmfvine}/README.vine || exit 1 |
---|
289 | The directory %{_tl_texmfvine} is the texmf tree of our distribution wide. |
---|
290 | You should not use this directory to manage any other packages because |
---|
291 | we Project Vine use this directory to manage non-CTAN packages, some |
---|
292 | enhancement packages and so on. |
---|
293 | EOF |
---|
294 | |
---|
295 | cat<<EOF>%{buildroot}%{_tl_texmflocal}/README.vine || exit 1 |
---|
296 | The directory %{_tl_texmflocal} is the texmf tree of the system wide. |
---|
297 | If you are a privileged user of this system, |
---|
298 | you can use this directory to manage your local packages. |
---|
299 | EOF |
---|
300 | |
---|
301 | ## our texmf-dist/web2c/updmap{,-hdr}.cfg |
---|
302 | %__mkdir_p %{buildroot}%{_tl_texmfdist}/web2c |
---|
303 | %__cp -a %{SOURCE6} %{buildroot}%{_tl_texmfdist}/web2c/updmap-hdr.cfg || exit 1 |
---|
304 | %__cp -a %{SOURCE7} %{buildroot}%{_tl_texmfdist}/web2c/updmap.cfg || exit 1 |
---|
305 | |
---|
306 | ## our map files for dvipdfmx |
---|
307 | %__mkdir_p %{buildroot}%{_tl_aliasttfdir} |
---|
308 | %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine |
---|
309 | for x in ptex uptex otf otf-up; do |
---|
310 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine/${x}-vine.map |
---|
311 | done |
---|
312 | for x in FutoGo-Bold FutoMin-Bold Gothic-Medium MaruGo-Medium Mincho-Medium; do |
---|
313 | touch %{buildroot}%{_tl_aliasttfdir}/${x}.ttf |
---|
314 | done |
---|
315 | |
---|
316 | ## desktop things |
---|
317 | %__mkdir_p %{buildroot}%{_datadir}/applications |
---|
318 | # %__install -m0644 -c %{SOURCE10} %{buildroot}%{_datadir}/applications/ |
---|
319 | %__install -m0644 -c %{SOURCE11} %{buildroot}%{_datadir}/applications/ |
---|
320 | |
---|
321 | # for created fonts |
---|
322 | %__mkdir_p %{buildroot}%{_tl_vartexfonts} |
---|
323 | # %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily |
---|
324 | # %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/ |
---|
325 | |
---|
326 | ## set executable bit for the library |
---|
327 | %__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.* |
---|
328 | %__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.* |
---|
329 | |
---|
330 | # configure ConTeXt |
---|
331 | for x in context ctxtools luatools texexec texmfstart; do |
---|
332 | %__sed -i -e 's|mtxrun|export TEXMF=%{_tl_texmfconfig}:%{_tl_texmfvar}:%{_tl_texmfhome}:%{_tl_texmfsysconfig}:%{_tl_texmfsysvar}:%{_tl_texmflocal}:%{_tl_texmfvine}:%{_tl_texmfdist} TEXMFCNF=%{_tl_texmfsysvar}/web2c:%{_tl_texmflocal}/web2c:%{_tl_texmfvine}/web2c:%{_tl_texmfdist}/web2c TEXMFCACHE=%{_tl_texmfsysvar}:%{_tl_texmfvar}; mtxrun|' %{buildroot}%{_bindir}/${x} || exit 1 |
---|
333 | done |
---|
334 | |
---|
335 | # touch ghosts |
---|
336 | touch %{buildroot}%{_tl_texmfvine}/ls-R |
---|
337 | touch %{buildroot}%{_tl_texmfdist}/ls-R |
---|
338 | touch %{buildroot}%{_tl_texmfsysconfig}/ls-R |
---|
339 | touch %{buildroot}%{_tl_texmfsysvar}/ls-R |
---|
340 | |
---|
341 | %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/ |
---|
342 | %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/updmap/ |
---|
343 | %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/pxdvi/updmap/ |
---|
344 | %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/ |
---|
345 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/builtin35.map |
---|
346 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts_t1.map |
---|
347 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts_pk.map |
---|
348 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/download35.map |
---|
349 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/ps2pk.map |
---|
350 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts.map |
---|
351 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/updmap/kanjix.map |
---|
352 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pxdvi/updmap/xdvi-ptex.map |
---|
353 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex_dl14.map |
---|
354 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex.map |
---|
355 | touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex_ndl14.map |
---|
356 | |
---|
357 | |
---|
358 | ## remove unpackaging files |
---|
359 | find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f || exit 1 |
---|
360 | find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f || exit 1 |
---|
361 | %__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1 |
---|
362 | find %{buildroot}%{_tl_texmfvine}/fonts/map -type d | %__grep "updmap" | xargs %__rm -rf || exit 1 |
---|
363 | find %{buildroot} -type d | grep asymptote | xargs %__rm -rf || exit 1 |
---|
364 | %__rm -f %{buildroot}%{_tl_texmfvine}/dvipdfm/config/config-win32 || exit 1 |
---|
365 | %__rm -f %{buildroot}%{_infodir}/* |
---|
366 | |
---|
367 | ## use external packages |
---|
368 | %__rm %{buildroot}/usr/bin/latexmk || exit 1 |
---|
369 | |
---|
370 | |
---|
371 | ### Files list |
---|
372 | find %{buildroot} -type f -or -type l | \ |
---|
373 | %__sed -e "s|%{buildroot}||g" | \ |
---|
374 | %__grep -v -e ".patch$" -e "\.diff$" -e "\.orig$" | \ |
---|
375 | %__grep -v "%{_includedir}" | \ |
---|
376 | %__grep -v "%{_libdir}" | \ |
---|
377 | %__grep -v "%{_infodir}" | \ |
---|
378 | %__sed -e "s|.*ls-R$|%ghost &|" \ |
---|
379 | -e "s|%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine/.*\.map$|%ghost &|" \ |
---|
380 | -e "s|%{_tl_aliasttfdir}/.*\.ttf$|%ghost &|" \ |
---|
381 | -e "s|.*/updmap.*\.cfg$|%config(noreplace) &|" \ |
---|
382 | -e "s|.*/dvipdfmx\.cfg$|%config(noreplace) &|" \ |
---|
383 | -e "s|.*xdvi\.cfg$|%config(noreplace) &|" \ |
---|
384 | -e "s|.*\.cnf$|%config(noreplace) &|" \ |
---|
385 | -e "s|%{_tl_texmfvine}*/xdvi/XDvi|%config(noreplace) &|" \ |
---|
386 | -e "s|%{_tl_texmfvine}*/web2c/texmfcnf\.lua$|%config(noreplace) &|" \ |
---|
387 | -e "s|^.*/updmap/$|%config &|" \ |
---|
388 | -e "s|%{_tl_texmfvine}*/texconfig/tcfmgr.map$|%config &|" \ |
---|
389 | -e "s|%{_tl_texmfvine}*/dvips/config/.*$|%config &|" \ |
---|
390 | -e "s|%{_tl_texmfvine}*/dvips/tetex/config.*$|%config &|" \ |
---|
391 | -e "s|%{_tl_texmfvine}*/dvipdfm/config/config$|%config &|" \ |
---|
392 | -e "s|%{_tl_texmfvine}*/fonts/map/dvips/tetex/.*.map$|%config &|" \ |
---|
393 | -e "s|%{_tl_texmfvine}*/fonts/map/dvipdfmx/.*.map$|%config &|" \ |
---|
394 | -e "s|%{_tl_texmfvine}*/tex/generic/config/.*|%config &|" \ |
---|
395 | -e "s|%{_tl_texmfvine}*/ttf2pk/ttf2pk\.cfg$|%config &|" \ |
---|
396 | -e "s|%{_tl_texmfvine}*/hbf2gf/.*\.cfg$|%config &|" \ |
---|
397 | -e "s|%{_tl_texmfvine}*/chktex/chktexrc$|%config &|" \ |
---|
398 | -e "s|%{_mandir}/.*|&*|" \ |
---|
399 | > %{_builddir}/filelist.full |
---|
400 | |
---|
401 | find %{buildroot}%{_tl_texmfvine}* -type d | \ |
---|
402 | %__sed -e "s|^%{buildroot}|%dir |" \ |
---|
403 | -e "s|$|/|" >> %{_builddir}/filelist.full |
---|
404 | |
---|
405 | ## subpackages |
---|
406 | %__grep -e "/texmf/doc/" -e "/texmf-dist/doc/" -e "/texdoc" %{_builddir}/filelist.full > %{_builddir}/filelist.doc |
---|
407 | cat %{_builddir}/filelist.doc \ |
---|
408 | %{_builddir}/filelist.full | \ |
---|
409 | sort | uniq -u > %{_builddir}/filelist.tmp |
---|
410 | %__mv -f %{_builddir}/filelist.tmp %{_builddir}/filelist.full |
---|
411 | |
---|
412 | |
---|
413 | %clean |
---|
414 | %__rm -rf %{buildroot} |
---|
415 | |
---|
416 | |
---|
417 | %pretrans |
---|
418 | rpm -q texlive | grep -q -e 2009 -e 2011 -e 2012 |
---|
419 | [ $? -eq 1 ] && exit 0 |
---|
420 | _trans_time=$(date +%Y%m%d) |
---|
421 | echo "Running some transitional processes on your TeX system ... " |
---|
422 | x=( |
---|
423 | /usr/share/texmf-local |
---|
424 | /usr/share/texmf-var |
---|
425 | /usr/share/texmf-config |
---|
426 | ) |
---|
427 | for dir in ${x[@]}; do |
---|
428 | _trans_dir=${dir}.${_trans_time}.rpmorig |
---|
429 | [ -d ${_trans_dir}.old ] && \ |
---|
430 | echo -n " " && \ |
---|
431 | echo "Found ${_trans_dir}.old: " && \ |
---|
432 | echo -n " " && \ |
---|
433 | %__rm -rvf ${_trans_dir}.old |
---|
434 | [ -d ${_trans_dir} ] && \ |
---|
435 | echo -n " " && \ |
---|
436 | echo "Found ${_trans_dir}: " && \ |
---|
437 | echo -n " " && \ |
---|
438 | %__mv -v ${_trans_dir} ${_trans_dir}.old |
---|
439 | [ -d ${dir} ] && \ |
---|
440 | echo -n " " && \ |
---|
441 | echo "Found ${dir}: " && \ |
---|
442 | echo -n " " && \ |
---|
443 | %__mv -v ${dir} ${_trans_dir} |
---|
444 | done |
---|
445 | echo "done." |
---|
446 | |
---|
447 | %postun |
---|
448 | if [ "$1" = 0 ]; then |
---|
449 | %__rm -rf %{_tl_vartexfonts} |
---|
450 | fi |
---|
451 | exit 0 |
---|
452 | |
---|
453 | %post |
---|
454 | %_tl_touch_run texhash |
---|
455 | %_tl_touch_run updmap |
---|
456 | %_tl_touch_run mtxrun |
---|
457 | %_tl_touch_run fmtutil |
---|
458 | exit 0 |
---|
459 | |
---|
460 | %posttrans |
---|
461 | %__mkdir_p %{_tl_vartexfonts} |
---|
462 | %__chmod 1777 %{_tl_vartexfonts} |
---|
463 | |
---|
464 | ## create our map files {ptex,uptex,otf,otf-up}-vine.map |
---|
465 | ( %{_tl_exec_upddeffont} ) ||: |
---|
466 | |
---|
467 | %{_tl_exec_texhash} |
---|
468 | %{_tl_exec_mtxrun} |
---|
469 | %{_tl_exec_updmap} |
---|
470 | %{_tl_exec_fmtutil} |
---|
471 | exit 0 |
---|
472 | |
---|
473 | %post -n libkpathsea |
---|
474 | /sbin/ldconfig |
---|
475 | # for x in kpathsea tds web2c; do |
---|
476 | # /sbin/install-info %{_infodir}/${x}.info.* %{_infodir}/dir |
---|
477 | # done |
---|
478 | |
---|
479 | # %preun -n libkpathsea |
---|
480 | # if [ "$1" = 0 ]; then |
---|
481 | # for x in kpathsea tds web2c; do |
---|
482 | # /sbin/install-info --delete %{_infodir}/${x}.info.* %{_infodir}/dir |
---|
483 | # done |
---|
484 | # fi |
---|
485 | |
---|
486 | %postun -n libkpathsea |
---|
487 | /sbin/ldconfig |
---|
488 | |
---|
489 | %post -n libptexenc |
---|
490 | /sbin/ldconfig |
---|
491 | |
---|
492 | %postun -n libptexenc |
---|
493 | /sbin/ldconfig |
---|
494 | |
---|
495 | %triggerin -- ghostscript |
---|
496 | %__rm -f %{_tl_texmfvine}/fonts/cmap/ghostscript |
---|
497 | if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then |
---|
498 | %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{_tl_texmfvine}/fonts/cmap/ghostscript |
---|
499 | elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then |
---|
500 | %__ln_s %{_datadir}/ghostscript/Resource/CMap %{_tl_texmfvine}/fonts/cmap/ghostscript |
---|
501 | fi |
---|
502 | %_tl_touch_run texhash |
---|
503 | exit 0 |
---|
504 | |
---|
505 | |
---|
506 | %files -f %{_builddir}/filelist.full |
---|
507 | %defattr(-,root,root) |
---|
508 | %dir %{_tl_aliasttfdir} |
---|
509 | %attr(1777,root,root) %dir %{_tl_vartexfonts} |
---|
510 | # %config %{_sysconfdir}/cron.daily/texlive.cron |
---|
511 | |
---|
512 | %files doc -f %{_builddir}/filelist.doc |
---|
513 | %defattr(-,root,root) |
---|
514 | |
---|
515 | %files -n libkpathsea |
---|
516 | %defattr(-,root,root) |
---|
517 | %{_libdir}/libkpathsea.so.* |
---|
518 | # %{_infodir}/kpathsea.info* |
---|
519 | |
---|
520 | %files -n libkpathsea-devel |
---|
521 | %defattr(-,root,root) |
---|
522 | %{_libdir}/libkpathsea.so |
---|
523 | %dir %{_includedir}/kpathsea |
---|
524 | %{_includedir}/kpathsea/* |
---|
525 | |
---|
526 | %files -n libptexenc |
---|
527 | %defattr(-,root,root) |
---|
528 | %{_libdir}/libptexenc.so.* |
---|
529 | |
---|
530 | %files -n libptexenc-devel |
---|
531 | %defattr(-,root,root) |
---|
532 | %{_libdir}/libptexenc.so |
---|
533 | %dir %{_includedir}/ptexenc |
---|
534 | %{_includedir}/ptexenc/* |
---|
535 | |
---|
536 | |
---|
537 | %changelog |
---|
538 | * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2013-7 |
---|
539 | - rebuild with poppler-0.24.5 |
---|
540 | |
---|
541 | * Mon Jan 13 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2013-6 |
---|
542 | - rebuilt |
---|
543 | |
---|
544 | * Fri Nov 1 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-5 |
---|
545 | - texlive-source-20131101 2014/dev + tlptexlive 20130815 |
---|
546 | - added BuildRequires: libpaper-devel >= 1.1.24-2 :-( |
---|
547 | |
---|
548 | * Mon Oct 7 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-4 |
---|
549 | - updated texlive-20131002-texmfcnf-vine.patch: |
---|
550 | texmf.cnf (shell_escape_commands): added some programs |
---|
551 | |
---|
552 | * Wed Oct 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-3 |
---|
553 | - texlive-source-20131002 2014/dev + tlptexlive 20130815 |
---|
554 | - defined %%global __find_requires find-requires-texlive.sh |
---|
555 | - dropped unused dependencies of Requires |
---|
556 | |
---|
557 | * Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-2 |
---|
558 | - texlive-source-20130919 2014/dev + tlptexlive 20130815 |
---|
559 | - correct some scripts of README.vine for each texmf trees |
---|
560 | |
---|
561 | * Fri Aug 23 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-1 |
---|
562 | - upgrade to TeX Live 2013 |
---|
563 | - texlive-source-20130823 2014/dev + tlptexlive 20130815 |
---|
564 | - dropped Requires: jvf |
---|
565 | |
---|
566 | * Thu May 16 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2012-4 |
---|
567 | - update enhancement binaries TeX Live 2013/dev 20130106 snapshot (tlptexlive-20130106) |
---|
568 | - fixed duplicated lw35 for updmap.pl |
---|
569 | - updated updmap.cfg.texlive-20120701: use ipaex as kanjiEmbed |
---|
570 | |
---|
571 | * Sat Mar 9 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2012-3 |
---|
572 | - touch the map files generated by updmap-sys |
---|
573 | |
---|
574 | * Mon Nov 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-2 |
---|
575 | - fixed Source7: updmap.cfg.texlive-20120701 |
---|
576 | (upto /etc/texmf/web2c/updmap.cfg) |
---|
577 | - fixex %%triggerin -- ghostscript |
---|
578 | - replaced %%exec_texhash with %%touch_run texhash |
---|
579 | |
---|
580 | * Wed Nov 21 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1 |
---|
581 | - TeX Live 2012 + tlptexlive 20121107 |
---|
582 | |
---|
583 | * Tue Oct 30 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-7 |
---|
584 | - drop BR: poppler-devel temporaly |
---|
585 | - modify tl11supp-120120-vine.patch, texlive-20110705-vine.patch to do that |
---|
586 | |
---|
587 | * Mon May 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-6 |
---|
588 | - build with poppler-0.18.4 |
---|
589 | - remove tlmgr |
---|
590 | |
---|
591 | * Thu Jan 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-5 |
---|
592 | - updated to tl11supp-120120 |
---|
593 | - run %%{exec_fmtutil} at %%post when upgrading |
---|
594 | |
---|
595 | * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-4 |
---|
596 | - updated to tl11supp-111214 |
---|
597 | |
---|
598 | * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-3 |
---|
599 | - added BuildRequires: texlive-common |
---|
600 | - Babel needs docstrip.tex, which is contained in texlive-collection-latex |
---|
601 | - check japanese.ldf |
---|
602 | - updated tl11supp-111120-vine.patch |
---|
603 | - added the following options to $$TL_CONFIGURE_ARGS: |
---|
604 | --disable-detex |
---|
605 | --disable-dvipng |
---|
606 | --disable-lcdf-typetools |
---|
607 | - remove some files of asymptote |
---|
608 | - remove a man file of latexmk |
---|
609 | - remove man files of lcdf-typetools |
---|
610 | - remove man files of dvipng |
---|
611 | - remove a man file of detex |
---|
612 | |
---|
613 | * Mon Nov 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2 |
---|
614 | - added find-provides-texlive.sh and set it to %%__find_provides |
---|
615 | - use to find library sonames for libkpathsea and libptexenc |
---|
616 | - added cmex.enc (%%{SOURCE110}) |
---|
617 | - do not install cmex.enc in our TDS, yet |
---|
618 | - removed some unused directories in texmf/fonts/map |
---|
619 | - removed man files of lcdf-typetools |
---|
620 | - moved texdoc{,tk} and its related files to texlive-doc |
---|
621 | |
---|
622 | * Wed Nov 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1 |
---|
623 | - TeX Live 2011 + tl11supp-111120 |
---|
624 | |
---|
625 | * Thu Oct 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-22 |
---|
626 | - make the directory VARTEXFONTS (%%posttrans) |
---|
627 | - dropped %%triggerpostun -- texlive < 2009-17vl6 |
---|
628 | |
---|
629 | * Tue Jul 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-21 |
---|
630 | - fixed ptexlive-20100711-dvipdfmx-vine.patch |
---|
631 | - for dvipdfmx.cfg, given some ps2pdf's parameters mistaked |
---|
632 | |
---|
633 | * Thu Jun 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-20 |
---|
634 | - added %%pre to avoid conflictions of texmf-{config,var} |
---|
635 | |
---|
636 | * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-19 |
---|
637 | - dropped Requires: texlive-common |
---|
638 | - added perl-Tk-TableMatrix |
---|
639 | - supported texdoctk |
---|
640 | - removed broken symbolic links in /usr/bin |
---|
641 | - for each these symbolic links, the package of its real file/path |
---|
642 | should be its owner. |
---|
643 | |
---|
644 | * Thu May 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-18 |
---|
645 | - added %%triggerpostun -- texlive < 2009-17vl6 |
---|
646 | - make the directory VARTEXFONTS |
---|
647 | |
---|
648 | * Tue May 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-17 |
---|
649 | - fixed %%dir VARTEXFONTS around in %%files |
---|
650 | - dropped BuildRequires: t1utils |
---|
651 | |
---|
652 | * Tue Apr 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-16 |
---|
653 | - updated texlive-20091107-texmfcnf-vine.patch, texlive.cron |
---|
654 | - changed VARTEXFONTS to /var/lib/texmf/fonts |
---|
655 | |
---|
656 | * Mon Apr 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-15 |
---|
657 | - fixed updmap.cfg |
---|
658 | |
---|
659 | * Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-14 |
---|
660 | - dropped Requires: texlive-macros |
---|
661 | |
---|
662 | * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-13 |
---|
663 | - updated ptexlive-20100711-pxdvik-vine.patch |
---|
664 | and added texlive-20091107-xdvik-vine.patch |
---|
665 | - fixed to adjust X resources in texmf/xdvi/XDvi for (p)xdvi |
---|
666 | |
---|
667 | * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-12 |
---|
668 | - supported Vine Linux 5 |
---|
669 | - for vl5, changed a requirement of Japanese VF package |
---|
670 | - added Requires: texlive-jvf = 2009 (vl5) |
---|
671 | - dropped dependencies of Provides:/Obsoletes: tags |
---|
672 | - merged these dependencies in texlive-common-vl.spec |
---|
673 | |
---|
674 | * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 2009-11 |
---|
675 | - rebuilt with poppler-0.14.2 (libpoppler has been up to so.7) |
---|
676 | |
---|
677 | * Fri Sep 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-10 |
---|
678 | - applied some security patches from Debian |
---|
679 | - texlive-2009-CVE-2010-0827.patch |
---|
680 | - texlive-2009-CVE-2010-1440.patch |
---|
681 | - applied texlive-2009-pdftexdir-libpoppler-0.12.patch from Debian |
---|
682 | - applied texlive-2009-luatexdir-libpoppler-0.12.patch |
---|
683 | based on texlive-2009-pdftexdir-libpoppler-0.12.patch |
---|
684 | - fixed some dependencies |
---|
685 | |
---|
686 | * Mon Aug 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-9 |
---|
687 | - added BuildArch: noarch in %%package doc |
---|
688 | - removed some comment-out sentences |
---|
689 | |
---|
690 | * Tue Jul 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-8 |
---|
691 | - separeted texmf-dist to texlive-common package |
---|
692 | |
---|
693 | * Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-7 |
---|
694 | - unpacked texlive-20091107-source.tar.xz |
---|
695 | - babel is available now |
---|
696 | - applied eptex-100420 and some patches: |
---|
697 | - eptex-100420-vine.patch |
---|
698 | - eptex-100420-patch1.diff |
---|
699 | |
---|
700 | * Tue Jul 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6 |
---|
701 | - updated ptexlive-20100711 |
---|
702 | |
---|
703 | * Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5 |
---|
704 | - customized updmap.cfg to correspond installed fonts |
---|
705 | |
---|
706 | * Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4 |
---|
707 | - fixed insttexfont() |
---|
708 | |
---|
709 | * Mon May 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3 |
---|
710 | - added jvf of MORISAWA basic 5 fonts |
---|
711 | - added cm-super, mathdesign in fntlst |
---|
712 | |
---|
713 | * Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2 |
---|
714 | - define insttexfont() in %%install |
---|
715 | - copy almost compatible tetex-3.0 |
---|
716 | |
---|
717 | * Sat May 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1 |
---|
718 | - ptexlive-20090322 + TeXLive 2009 |
---|
719 | - added BuildRequires: openssl-devel |
---|
720 | |
---|
721 | * Sun Dec 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2008-0.20091206 |
---|
722 | - ptexlive-20091009 + TeXLive 2008 |
---|