1 |
%define _binary_payload w9.gzdio |
2 |
%define _source_payload w9.gzdio |
3 |
|
4 |
%global __requires_exclude ^perl\\((PDF::Reuse.*|Pedigree.*|TeXLive.*|Tk::path_tre|only|pdfTeX|script::MakeSPList)\\)|pear\\(animals.php\\) |
5 |
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir} |
6 |
|
7 |
# need to bootstrap first |
8 |
# - xindy need clisp in main |
9 |
# - let asymptote be packaged separately, as the generated one is known |
10 |
# to not be fully functional |
11 |
%define enable_asymptote 0 |
12 |
%define enable_xindy 0 |
13 |
|
14 |
# in its own package |
15 |
%define enable_xdvik 1 |
16 |
%define enable_dvi2tty 1 |
17 |
|
18 |
%define with_system_poppler 1 |
19 |
%define with_system_dialog 1 |
20 |
%define with_system_icu 1 |
21 |
%define with_system_lcdf 0 |
22 |
%define with_system_psutils 1 |
23 |
%define with_system_t1lib 1 |
24 |
%define with_system_tex4ht 0 |
25 |
%define with_system_teckit 0 |
26 |
|
27 |
%define enable_shared 1 |
28 |
|
29 |
%define texmfbindir %{_bindir} |
30 |
%define texmfdir %{_datadir}/texmf |
31 |
%define texmfdistdir %{_datadir}/texmf-dist |
32 |
%define texmflocaldir %{_datadir}/texmf-local |
33 |
%define texmfextradir %{_datadir}/texmf-extra |
34 |
%define texmffontsdir %{_datadir}/texmf-fonts |
35 |
%define texmfprojectdir %{_datadir}/texmf-project |
36 |
%define texmfvardir %{_localstatedir}/lib/texmf |
37 |
%define texmfconfdir %{_sysconfdir}/texmf |
38 |
|
39 |
#----------------------------------------------------------------------- |
40 |
Name: texlive |
41 |
Version: 20160523 |
42 |
Release: %mkrel 2 |
43 |
Summary: The TeX formatting system |
44 |
Group: Publishing |
45 |
License: http://www.tug.org/texlive/LICENSE.TL |
46 |
URL: http://tug.org/texlive/ |
47 |
Source0: ftp://tug.org/historic/systems/texlive/2016/%{name}-%{version}b-source.tar.xz |
48 |
Source1: ftp://tug.org/historic/systems/texlive/2016/%{name}-%{version}b-source.tar.xz.sha512 |
49 |
|
50 |
Provides: tetex = %{version}-%{release} |
51 |
Provides: context = %{version}-%{release} |
52 |
Provides: dvipdfm = %{version}-%{release} |
53 |
Provides: dvips = %{version}-%{release} |
54 |
Provides: mfwin = %{version}-%{release} |
55 |
Provides: usrlocal = %{version}-%{release} |
56 |
%if %{enable_xdvik} |
57 |
Obsoletes: tetex-xdvi <= 3.1 |
58 |
Provides: xdvi = %{version}-%{release} |
59 |
Obsoletes: xdvi <= 22.86 |
60 |
Obsoletes: xdvik <= 22.84.16 |
61 |
Obsoletes: texlive-xdvi <= 2007 |
62 |
%rename xdvik |
63 |
%endif |
64 |
Provides: afm = %{version}-%{release} |
65 |
Provides: dvilj = %{version}-%{release} |
66 |
Provides: dvipdfm = %{version}-%{release} |
67 |
Provides: tetex-dvips = %{version}-%{release} |
68 |
Provides: dviutils = %{version}-%{release} |
69 |
Provides: tetex-latex = %{version}-%{release} |
70 |
Provides: latex = %{version}-%{release} |
71 |
|
72 |
Obsoletes: kpathsea <= 2007 |
73 |
Obsoletes: pdfjam <= 1.21 |
74 |
Obsoletes: tetex <= 3.1 |
75 |
Obsoletes: tetex-context <= 3.1 |
76 |
Obsoletes: tetex-devel <= 3.1 |
77 |
Obsoletes: tetex-dvipdfm <= 3.1 |
78 |
Obsoletes: tetex-dvips <= 3.1 |
79 |
Obsoletes: tetex-dvips <= 3.1 |
80 |
Obsoletes: tetex-dvilj <= 3.0 |
81 |
Obsoletes: tetex-latex <= 3.1 |
82 |
Obsoletes: tetex-mfwin <= 3.1 |
83 |
Obsoletes: tetex-usrlocal <= 3.1 |
84 |
Obsoletes: texlive-afm <= 2007 |
85 |
Obsoletes: texlive-context <= 2007 |
86 |
Obsoletes: texlive-dvilj <= 2007 |
87 |
Obsoletes: texlive-dvipdfm <= 2007 |
88 |
Obsoletes: texlive-dvips <= 2007 |
89 |
Obsoletes: texlive-dviutils <= 2007 |
90 |
Obsoletes: texlive-latex <= 2007 |
91 |
Obsoletes: texlive-mfwin <= 2007 |
92 |
Obsoletes: texlive-fonts <= 2007 |
93 |
Obsoletes: texlive-mf2pt1 < 2.5.0-4 |
94 |
%rename abntex2 |
95 |
|
96 |
#----------------------------------------------------------------------- |
97 |
%if %{with_system_dialog} |
98 |
Requires: cdialog |
99 |
%endif |
100 |
Requires: ghostscript |
101 |
%if %{enable_asymptote} |
102 |
Requires: gv |
103 |
Requires: tkinter |
104 |
%endif |
105 |
%if %{with_system_lcdf} |
106 |
Requires: lcdf-typetoools |
107 |
%else |
108 |
Provides: lcdf-typetools = %{version} |
109 |
Obsoletes: lcdf-typetools <= 2.59-5 |
110 |
%endif |
111 |
%if %{with_system_psutils} |
112 |
Requires: psutils |
113 |
%endif |
114 |
%if %{with_system_teckit} |
115 |
Requires: teckit |
116 |
%endif |
117 |
%if %{with_system_tex4ht} |
118 |
Requires: tex4ht |
119 |
%else |
120 |
Provides: tex4ht = %{version} |
121 |
Obsoletes: tex4ht <= 1:1.0.2008_02_28_2058 |
122 |
%endif |
123 |
Conflicts: texlive-texmf < %{version} |
124 |
Requires: texlive-collection-basic = %{version} |
125 |
Requires: ruby |
126 |
# Fix upgrade for luatex (mga#12303) |
127 |
Requires(posttrans): zlib >= 1.2.8 |
128 |
Requires(posttrans): kpathsea >= %{version} |
129 |
|
130 |
#----------------------------------------------------------------------- |
131 |
BuildRequires: bison |
132 |
%if %{enable_xindy} |
133 |
BuildRequires: clisp |
134 |
BuildRequires: ffcall-devel |
135 |
%endif |
136 |
%if %{enable_asymptote} |
137 |
BuildRequires: fftw-devel |
138 |
BuildRequires: flex |
139 |
%endif |
140 |
BuildRequires: freetype-devel |
141 |
BuildRequires: fontconfig-devel |
142 |
BuildRequires: gd-devel |
143 |
%if %{enable_asymptote} |
144 |
BuildRequires: libgc-devel |
145 |
BuildRequires: libsigsegv-devel |
146 |
BuildRequires: ghostscript-dvipdf |
147 |
BuildRequires: gsl-devel |
148 |
BuildRequires: GL-devel |
149 |
%endif |
150 |
BuildRequires: libgd-devel |
151 |
%if %{with_system_poppler} |
152 |
BuildRequires: pkgconfig(poppler) |
153 |
%endif |
154 |
BuildRequires: libxaw-devel |
155 |
%if !%{with_system_dialog} |
156 |
BuildRequires: ncurses-devel |
157 |
%endif |
158 |
BuildRequires: png-devel |
159 |
%if %{with_system_t1lib} |
160 |
BuildRequires: t1lib-devel |
161 |
%endif |
162 |
%if %{with_system_teckit} |
163 |
BuildRequires: teckit-devel |
164 |
%endif |
165 |
%if %{with_system_icu} |
166 |
BuildRequires: icu-devel |
167 |
%endif |
168 |
%if %{enable_xindy} |
169 |
BuildRequires: texlive |
170 |
%endif |
171 |
%if %{enable_asymptote} |
172 |
BuildRequires: texinfo |
173 |
%endif |
174 |
BuildRequires: zziplib-devel |
175 |
BuildRequires: cairo-devel |
176 |
|
177 |
#----------------------------------------------------------------------- |
178 |
#Patch0: texlive-20130530-mandriva-underlink.patch |
179 |
Patch1: texlive-20160523-mageia-format.patch |
180 |
Patch2: texlive-20160523-mageia-asymptote.patch |
181 |
#Patch3: texlive-20130530-mandriva-xdvi.patch |
182 |
Patch4: texlive-20160523-texmf-mageia-kpfix.patch |
183 |
#Patch5: texlive-20130530-dvisvgm-libgs.patch |
184 |
Patch6: texlive-bz979176.patch |
185 |
|
186 |
#----------------------------------------------------------------------- |
187 |
%description |
188 |
TeX Live is an easy way to get up and running with the TeX document |
189 |
production system. It provides a comprehensive TeX system. It includes |
190 |
all the major TeX-related programs, macro packages, and fonts that are |
191 |
free software, including support for many languages around the world. |
192 |
|
193 |
%files |
194 |
%{texmfbindir}/* |
195 |
%dir %{texmfvardir} |
196 |
%dir %{texmfconfdir} |
197 |
%ghost %config(noreplace) %{texmfconfdir}/web2c/updmap.cfg |
198 |
|
199 |
|
200 |
#----------------------------------------------------------------------- |
201 |
%if %{enable_shared} |
202 |
######################################################################## |
203 |
%define kpathsea_major 6 |
204 |
%define kpathsea %{mklibname kpathsea %{kpathsea_major}} |
205 |
|
206 |
%package -n %{kpathsea} |
207 |
Summary: Path searching library for TeX-related files |
208 |
Group: System/Libraries |
209 |
Provides: kpathsea = %{version}-%{release} |
210 |
|
211 |
%description -n %{kpathsea} |
212 |
Kpathsea implements generic path searching, configuration, |
213 |
and TeX-specific file searching. |
214 |
|
215 |
%files -n %{kpathsea} |
216 |
%{_libdir}/libkpathsea.so.%{kpathsea_major} |
217 |
%{_libdir}/libkpathsea.so.%{kpathsea_major}.* |
218 |
|
219 |
#----------------------------------------------------------------------- |
220 |
%define kpathsea_devel %{mklibname -d kpathsea} |
221 |
|
222 |
%package -n %{kpathsea_devel} |
223 |
Summary: Kpathsea development files |
224 |
Group: Development/C |
225 |
Requires: kpathsea = %{version}-%{release} |
226 |
Provides: kpathsea-devel = %{version}-%{release} |
227 |
|
228 |
%description -n %{kpathsea_devel} |
229 |
Kpathsea implements generic path searching, configuration, |
230 |
and TeX-specific file searching. |
231 |
This package includes the kpathsea development files. |
232 |
|
233 |
%files -n %{kpathsea_devel} |
234 |
%{_includedir}/kpathsea |
235 |
%{_libdir}/libkpathsea.la |
236 |
%{_libdir}/libkpathsea.so |
237 |
%{_libdir}/pkgconfig/kpathsea.pc |
238 |
%{_libdir}/kpathsea/*.h |
239 |
|
240 |
#----------------------------------------------------------------------- |
241 |
%define kpathsea_static_devel %{mklibname -d -s kpathsea} |
242 |
|
243 |
%package -n %{kpathsea_static_devel} |
244 |
Summary: Kpathsea development files |
245 |
Group: Development/C |
246 |
Requires: kpathsea-devel = %{version}-%{release} |
247 |
Provides: kpathsea-devel-static = %{version}-%{release} |
248 |
|
249 |
%description -n %{kpathsea_static_devel} |
250 |
Kpathsea implements generic path searching, configuration, |
251 |
and TeX-specific file searching. |
252 |
This package includes the static kpathsea library. |
253 |
|
254 |
%files -n %{kpathsea_static_devel} |
255 |
%{_libdir}/libkpathsea.a |
256 |
|
257 |
#----------------------------------------------------------------------- |
258 |
%define texlua_major 5 |
259 |
%define texluajit_major 2 |
260 |
%define texlua %{mklibname texlua %{texlua_major}} |
261 |
|
262 |
%package -n %{texlua} |
263 |
Summary: Library for TeXlua |
264 |
Group: System/Libraries |
265 |
Provides: texlua = %{version}-%{release} |
266 |
|
267 |
%description -n %{texlua} |
268 |
TeXlua library |
269 |
|
270 |
%files -n %{texlua} |
271 |
%{_libdir}/libtexlua52.so.%{texlua_major} |
272 |
%{_libdir}/libtexlua52.so.%{texlua_major}.* |
273 |
%{_libdir}/libtexluajit.so.%{texluajit_major} |
274 |
%{_libdir}/libtexluajit.so.%{texluajit_major}.* |
275 |
|
276 |
#----------------------------------------------------------------------- |
277 |
%define texlua_devel %{mklibname -d texlua} |
278 |
|
279 |
%package -n %{texlua_devel} |
280 |
Summary: Library for TeXlua |
281 |
Group: Development/C |
282 |
Requires: texlua = %{version}-%{release} |
283 |
Provides: texlua-devel = %{version}-%{release} |
284 |
|
285 |
%description -n %{texlua_devel} |
286 |
TeXlua library |
287 |
This package includes the TeXlua development files. |
288 |
|
289 |
%files -n %{texlua_devel} |
290 |
%{_includedir}/texlua52 |
291 |
%{_includedir}/texluajit |
292 |
%{_libdir}/libtexlua52.la |
293 |
%{_libdir}/libtexlua52.so |
294 |
%{_libdir}/pkgconfig/texlua52.pc |
295 |
%{_libdir}/libtexluajit.la |
296 |
%{_libdir}/libtexluajit.so |
297 |
%{_libdir}/pkgconfig/texluajit.pc |
298 |
|
299 |
#----------------------------------------------------------------------- |
300 |
%define texlua_static_devel %{mklibname -d -s texlua} |
301 |
|
302 |
%package -n %{texlua_static_devel} |
303 |
Summary: Library for TeXlua |
304 |
Group: Development/C |
305 |
Requires: texlua-devel = %{version}-%{release} |
306 |
Provides: texlua-devel-static = %{version}-%{release} |
307 |
|
308 |
%description -n %{texlua_static_devel} |
309 |
TeXlua library |
310 |
This package includes the static TeXlua library. |
311 |
|
312 |
%files -n %{texlua_static_devel} |
313 |
%{_libdir}/libtexlua52.a |
314 |
%{_libdir}/libtexluajit.a |
315 |
|
316 |
#----------------------------------------------------------------------- |
317 |
%define synctex_major 1 |
318 |
%define synctex %{mklibname synctex %{synctex_major}} |
319 |
|
320 |
%package -n %{synctex} |
321 |
Summary: Library for SyncTeX |
322 |
Group: System/Libraries |
323 |
Provides: synctex = %{version}-%{release} |
324 |
|
325 |
%description -n %{synctex} |
326 |
synctex library |
327 |
|
328 |
%files -n %{synctex} |
329 |
%{_libdir}/libsynctex.so.%{synctex_major} |
330 |
%{_libdir}/libsynctex.so.%{synctex_major}.* |
331 |
|
332 |
#----------------------------------------------------------------------- |
333 |
%define synctex_devel %{mklibname -d synctex} |
334 |
|
335 |
%package -n %{synctex_devel} |
336 |
Summary: Library for SyncTeX |
337 |
Group: Development/C |
338 |
Requires: synctex = %{version}-%{release} |
339 |
Provides: synctex-devel = %{version}-%{release} |
340 |
|
341 |
%description -n %{synctex_devel} |
342 |
synctex library |
343 |
This package includes the synctex development files. |
344 |
|
345 |
%files -n %{synctex_devel} |
346 |
%{_includedir}/synctex |
347 |
%{_libdir}/libsynctex.la |
348 |
%{_libdir}/libsynctex.so |
349 |
%{_libdir}/pkgconfig/synctex.pc |
350 |
|
351 |
#----------------------------------------------------------------------- |
352 |
%define synctex_static_devel %{mklibname -d -s synctex} |
353 |
|
354 |
%package -n %{synctex_static_devel} |
355 |
Summary: Library for SyncTeX |
356 |
Group: Development/C |
357 |
Requires: synctex-devel = %{version}-%{release} |
358 |
Provides: synctex-devel-static = %{version}-%{release} |
359 |
|
360 |
%description -n %{synctex_static_devel} |
361 |
synctex library |
362 |
This package includes the static synctex library. |
363 |
|
364 |
%files -n %{synctex_static_devel} |
365 |
%{_libdir}/libsynctex.a |
366 |
|
367 |
#----------------------------------------------------------------------- |
368 |
%define ptexenc_major 1 |
369 |
%define ptexenc %{mklibname ptexenc %{ptexenc_major}} |
370 |
|
371 |
%package -n %{ptexenc} |
372 |
Summary: Library for Japanese pTeX |
373 |
Group: System/Libraries |
374 |
Provides: ptexenc = %{version}-%{release} |
375 |
|
376 |
%description -n %{ptexenc} |
377 |
ptexenc is a useful library for Japanese pTeX |
378 |
(which stands for publishing TeX, and is an extension of |
379 |
TeX by ASCII Co.) and its surrounding tools. |
380 |
|
381 |
%files -n %{ptexenc} |
382 |
%{_libdir}/libptexenc.so.%{ptexenc_major} |
383 |
%{_libdir}/libptexenc.so.%{ptexenc_major}.* |
384 |
|
385 |
#----------------------------------------------------------------------- |
386 |
%define ptexenc_devel %{mklibname -d ptexenc} |
387 |
|
388 |
%package -n %{ptexenc_devel} |
389 |
Summary: Library for Japanese pTeX |
390 |
Group: Development/C |
391 |
Requires: ptexenc = %{version}-%{release} |
392 |
Provides: ptexenc-devel = %{version}-%{release} |
393 |
|
394 |
%description -n %{ptexenc_devel} |
395 |
ptexenc is a useful library for Japanese pTeX |
396 |
(which stands for publishing TeX, and is an extension of |
397 |
TeX by ASCII Co.) and its surrounding tools. |
398 |
This package includes the ptexenc development files. |
399 |
|
400 |
%files -n %{ptexenc_devel} |
401 |
%{_includedir}/ptexenc |
402 |
%{_libdir}/libptexenc.la |
403 |
%{_libdir}/libptexenc.so |
404 |
%{_libdir}/pkgconfig/ptexenc.pc |
405 |
|
406 |
#----------------------------------------------------------------------- |
407 |
%define ptexenc_static_devel %{mklibname -d -s ptexenc} |
408 |
|
409 |
%package -n %{ptexenc_static_devel} |
410 |
Summary: Library for Japanese pTeX |
411 |
Group: Development/C |
412 |
Requires: ptexenc-devel = %{version}-%{release} |
413 |
Provides: ptexenc-devel-static = %{version}-%{release} |
414 |
|
415 |
%description -n %{ptexenc_static_devel} |
416 |
ptexenc is a useful library for Japanese pTeX |
417 |
(which stands for publishing TeX, and is an extension of |
418 |
TeX by ASCII Co.) and its surrounding tools. |
419 |
This package includes the static ptexenc library. |
420 |
|
421 |
%files -n %{ptexenc_static_devel} |
422 |
%{_libdir}/libptexenc.a |
423 |
|
424 |
######################################################################## |
425 |
# enable_shared |
426 |
%endif |
427 |
|
428 |
#----------------------------------------------------------------------- |
429 |
%prep |
430 |
%setup -q -n %{name}-%{version}-source |
431 |
|
432 |
#%patch0 -p1 |
433 |
%patch1 -p1 |
434 |
%if %{enable_asymptote} |
435 |
%patch2 -p1 |
436 |
%endif |
437 |
#%patch3 -p1 |
438 |
%patch4 -p1 |
439 |
#%patch5 -p1 |
440 |
%patch6 -p1 |
441 |
|
442 |
# setup default builtin values, added to paths.h from texmf.cnf |
443 |
perl -pi -e 's%^(TEXMFMAIN\s+= ).*%$1%{texmfdistdir}%;' \ |
444 |
-e 's%^(TEXMFDIST\s+= ).*%$1%{texmfdistdir}%;' \ |
445 |
-e 's%^(TEXMFLOCAL\s+= ).*%$1%{texmflocaldir}%;' \ |
446 |
-e 's%^(TEXMFSYSVAR\s+= ).*%$1%{texmfvardir}%;' \ |
447 |
-e 's%^(TEXMFSYSCONFIG\s+= ).*%$1%{texmfconfdir}%;' \ |
448 |
-e 's%^(TEXMFHOME\s+= ).*%$1\$HOME/texmf%;' \ |
449 |
-e 's%^(TEXMFVAR\s+= ).*%$1\$HOME/.texlive2016/texmf-var%;' \ |
450 |
-e 's%^(TEXMFCONFIG\s+= ).*%$1\$HOME/.texlive2016/texmf-config%;'\ |
451 |
-e 's%^(OSFONTDIR\s+= ).*%$1%{_datadir}/fonts%;' \ |
452 |
texk/kpathsea/texmf.cnf |
453 |
|
454 |
#----------------------------------------------------------------------- |
455 |
%build |
456 |
|
457 |
[ -d Work ] || mkdir Work |
458 |
pushd Work |
459 |
ln -sf ../configure . |
460 |
|
461 |
%configure2_5x \ |
462 |
--with-banner-add="/Mageia" \ |
463 |
--disable-native-texlive-build \ |
464 |
--enable-missing \ |
465 |
%if %{enable_shared} |
466 |
--enable-shared \ |
467 |
%else |
468 |
--disable-shared \ |
469 |
%endif |
470 |
%if %{enable_xindy} |
471 |
--enable-xindy-rules \ |
472 |
%else |
473 |
--disable-xindy \ |
474 |
%endif |
475 |
%if %{enable_xdvik} |
476 |
--enable-xdvik \ |
477 |
%else |
478 |
--disable-xdvik \ |
479 |
%endif |
480 |
%if %{enable_dvi2tty} |
481 |
--enable-dvi2tty \ |
482 |
%else |
483 |
--disable-dvi2tty \ |
484 |
%endif |
485 |
--with-system-freetype \ |
486 |
--with-freetype-includes=%{_includedir}/freetype \ |
487 |
--with-system-freetype2 \ |
488 |
--with-freetype2-includes=%{_includedir}/freetype2 \ |
489 |
%if %{with_system_dialog} |
490 |
--disable-dialog \ |
491 |
%else |
492 |
--enable-dialog \ |
493 |
%endif |
494 |
%if %{with_system_psutils} |
495 |
--disable-psutils \ |
496 |
%else |
497 |
--enable-psutils \ |
498 |
%endif |
499 |
--with-system-gd \ |
500 |
%if %{with_system_lcdf} |
501 |
--disable-lcdf-typetools \ |
502 |
%endif |
503 |
--with-system-png \ |
504 |
%if %{with_system_t1lib} |
505 |
--with-system-t1lib \ |
506 |
--disable-t1utils \ |
507 |
%endif |
508 |
%if %{with_system_teckit} |
509 |
--disable-teckit \ |
510 |
--with-teckit-includes=%{_includedir}/teckit \ |
511 |
%endif |
512 |
%if %{with_system_tex4ht} |
513 |
--disable-tex4htk \ |
514 |
%endif |
515 |
%if %{with_system_icu} |
516 |
--with-system-icu \ |
517 |
%else |
518 |
--without-system-icu \ |
519 |
%endif |
520 |
%if %{with_system_poppler} |
521 |
--with-system-xpdf \ |
522 |
%else |
523 |
--without-system-xpdf \ |
524 |
%endif |
525 |
--with-system-zziplib \ |
526 |
--with-system-cairo \ |
527 |
--with-system-pixman |
528 |
%make |
529 |
|
530 |
popd |
531 |
|
532 |
%if %{enable_asymptote} |
533 |
pushd utils/asymptote |
534 |
%configure2_5x \ |
535 |
--enable-gc=system \ |
536 |
--enable-texlive-build \ |
537 |
--datadir=%{texmfdir} |
538 |
%make |
539 |
popd |
540 |
%endif |
541 |
|
542 |
#----------------------------------------------------------------------- |
543 |
%install |
544 |
pushd Work |
545 |
%makeinstall_std |
546 |
popd |
547 |
|
548 |
%if %{enable_asymptote} |
549 |
pushd utils/asymptote |
550 |
%makeinstall_std |
551 |
popd |
552 |
%endif |
553 |
|
554 |
mkdir -p %{buildroot}%{_datadir} |
555 |
for dir in texmf texmf-dist; do |
556 |
if [ -d %{buildroot}%{_prefix}/$dir ]; then |
557 |
rm -fr %{buildroot}%{_datadir}/$dir |
558 |
mv %{buildroot}%{_prefix}/$dir %{buildroot}%{_datadir} |
559 |
fi |
560 |
done |
561 |
|
562 |
mkdir -p %{buildroot}%{texmfvardir} |
563 |
mkdir -p %{buildroot}%{texmfconfdir} |
564 |
|
565 |
%if %{with_system_lcdf} |
566 |
# stray directory left |
567 |
rm -fr %{buildroot}%{_datadir}/lcdf-typetools-for-tex-live |
568 |
%else |
569 |
# openmpi has a program with the same name |
570 |
if [ -f %{buildroot}%{texmfbindir}/otfinfo ]; then |
571 |
mv -f %{buildroot}%{texmfbindir}/otfinfo{,-texlive} |
572 |
fi |
573 |
%endif |
574 |
|
575 |
pushd %{buildroot}%{texmfbindir} |
576 |
# missing symbolic links |
577 |
ln -sf aleph lamed |
578 |
ln -sf luatex dvilualatex |
579 |
ln -sf luatex lualatex |
580 |
ln -sf luatex dviluatex |
581 |
ln -sf pdftex amstex |
582 |
ln -sf pdftex cslatex |
583 |
ln -sf pdftex csplain |
584 |
ln -sf pdftex eplain |
585 |
ln -sf pdftex etex |
586 |
ln -sf pdftex latex |
587 |
ln -sf pdftex mex |
588 |
ln -sf pdftex mltex |
589 |
ln -sf pdftex mllatex |
590 |
ln -sf pdftex pdfcslatex |
591 |
ln -sf pdftex pdfcsplain |
592 |
ln -sf pdftex pdfetex |
593 |
ln -sf pdftex pdflatex |
594 |
ln -sf pdftex pdfmex |
595 |
ln -sf pdftex physe |
596 |
ln -sf pdftex phyzzx |
597 |
ln -sf pdftex utf8mex |
598 |
ln -sf pdftex texsis |
599 |
ln -sf ptex platex |
600 |
ln -sf mpost metafun |
601 |
ln -sf mpost mfplain |
602 |
ln -sf xetex xelatex |
603 |
# correct symlinks |
604 |
for file in *; do |
605 |
link=`readlink $file` || : |
606 |
if [ "x$link" != "x" ]; then |
607 |
ln -sf `echo $link | \ |
608 |
sed -e 's|\.\./.*texmf-dist/|%{texmfdistdir}/|' \ |
609 |
-e 's|\.\./.*texmf/|%{texmfdir}/|'` \ |
610 |
$file |
611 |
fi |
612 |
done |
613 |
%if %{with_system_dialog} |
614 |
ln -sf %{_bindir}/dialog tcdialog |
615 |
%endif |
616 |
%if %{enable_asymptote} |
617 |
ln -sf %{texmfdir}/asymptote/GUI/xasy.py xasy |
618 |
%endif |
619 |
# install scripts from texlive-texmf |
620 |
rm -f a2ping afm2afm arlatex authorindex autoinst bibexport \ |
621 |
bundledoc cachepic cmap2enc de-macro dviasm ebong e2pall \ |
622 |
epspdf epspdftk epstopdf fig4latex findhyph font2afm \ |
623 |
fragmaster ht htcontext htlatex htmex httex httexi htxelatex \ |
624 |
htxetex latex2man latexdiff latexdiff-vc latexmk latexrevise \ |
625 |
listings-ext.sh makeglossaries mathspic mk4ht mkgrkindex \ |
626 |
mkjobtexmf mkluatexfontdb mkt1font mptopdf ot2kpx pdf180 \ |
627 |
pdf270 pdf90 pdfannotextractor pdfatfi pdfbook pdfcrop \ |
628 |
pdfflip pdfjam pdfjam-pocketmod pdfjam-slides3up \ |
629 |
pdfjam-slides6up pdfjoin pdfnup pdfpun pdfthumb perltex \ |
630 |
pfm2kpx pkfix pkfix-helper ppower4 ps4pdf pst2pdf purifyeps \ |
631 |
repstopdf rpdfcrop rungs showglyphs simpdftex splitindex \ |
632 |
svn-multi texcount texdiff texdirflatten texdoc texdoctk \ |
633 |
texloganalyser thumbpdf tlmgr ulqda updmap vpe vpl2ovp \ |
634 |
vpl2vpl |
635 |
popd |
636 |
|
637 |
# use texmf data |
638 |
rm -fr %{buildroot}%{texmfdir} %{buildroot}%{texmfdistdir} |
639 |
|
640 |
# install manual pages and info files from texlive-texmf tarball |
641 |
rm -fr %{buildroot}%{_mandir} %{buildroot}%{_infodir} |
642 |
|
643 |
%if !%{enable_shared} |
644 |
# do not generate dynamic libraries and do not install static ones |
645 |
rm -fr %{buildroot}%{_libdir} |
646 |
rm -fr %{buildroot}%{_includedir} |
647 |
%endif |
648 |
|
649 |
#----------------------------------------------------------------------- |
650 |
%posttrans |
651 |
rm -f %{texmfdir}/ls-R %{texmfdistdir}/ls-R %{texmfconfdir}/ls-R |
652 |
%{_bindir}/texhash > /tmp/texlive-texhash.log 2>&1 |
653 |
%{_bindir}/updmap-sys --syncwithtrees > /tmp/texlive-updmap-sys.log 2>&1 |
654 |
export TEXMF=/usr/share/texmf-dist |
655 |
export TEXMFCNF=/usr/share/texmf-dist/web2c |
656 |
export TEXMFCACHE=/var/lib/texmf |
657 |
%{_bindir}/mtxrun --generate > /tmp/texlive-mtxrun.log 2>&1 |
658 |
%{_bindir}/fmtutil-sys --all &> /tmp/texlive-fmtutil-sys.log 2>&1 |