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 16 |
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 |
|
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: pkgconfig(fontconfig) |
142 |
BuildRequires: pkgconfig(gdlib) |
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: pkgconfig(gdlib) |
151 |
%if %{with_system_poppler} |
152 |
BuildRequires: pkgconfig(poppler) |
153 |
%endif |
154 |
BuildRequires: pkgconfig(xaw7) |
155 |
%if !%{with_system_dialog} |
156 |
BuildRequires: ncurses-devel |
157 |
%endif |
158 |
BuildRequires: pkgconfig(libpng) |
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: pkgconfig(zziplib) |
175 |
BuildRequires: pkgconfig(cairo) |
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 |
Patch7: texlive-20160523b-CVE-2016-10243.patch |
186 |
Patch107: 0001-try-to-adapt-to-poppler-0.58.patch |
187 |
#----------------------------------------------------------------------- |
188 |
%description |
189 |
TeX Live is an easy way to get up and running with the TeX document |
190 |
production system. It provides a comprehensive TeX system. It includes |
191 |
all the major TeX-related programs, macro packages, and fonts that are |
192 |
free software, including support for many languages around the world. |
193 |
|
194 |
%files |
195 |
%{texmfbindir}/* |
196 |
%dir %{texmfvardir} |
197 |
%dir %{texmfconfdir} |
198 |
%ghost %config(noreplace) %{texmfconfdir}/web2c/updmap.cfg |
199 |
|
200 |
|
201 |
#----------------------------------------------------------------------- |
202 |
%if %{enable_shared} |
203 |
######################################################################## |
204 |
%define kpathsea_major 6 |
205 |
%define kpathsea %{mklibname kpathsea %{kpathsea_major}} |
206 |
|
207 |
%package -n %{kpathsea} |
208 |
Summary: Path searching library for TeX-related files |
209 |
Group: System/Libraries |
210 |
Provides: kpathsea = %{version}-%{release} |
211 |
|
212 |
%description -n %{kpathsea} |
213 |
Kpathsea implements generic path searching, configuration, |
214 |
and TeX-specific file searching. |
215 |
|
216 |
%files -n %{kpathsea} |
217 |
%{_libdir}/libkpathsea.so.%{kpathsea_major} |
218 |
%{_libdir}/libkpathsea.so.%{kpathsea_major}.* |
219 |
|
220 |
#----------------------------------------------------------------------- |
221 |
%define kpathsea_devel %{mklibname -d kpathsea} |
222 |
|
223 |
%package -n %{kpathsea_devel} |
224 |
Summary: Kpathsea development files |
225 |
Group: Development/C |
226 |
Requires: kpathsea = %{version}-%{release} |
227 |
Provides: kpathsea-devel = %{version}-%{release} |
228 |
|
229 |
%description -n %{kpathsea_devel} |
230 |
Kpathsea implements generic path searching, configuration, |
231 |
and TeX-specific file searching. |
232 |
This package includes the kpathsea development files. |
233 |
|
234 |
%files -n %{kpathsea_devel} |
235 |
%{_includedir}/kpathsea |
236 |
%{_libdir}/libkpathsea.la |
237 |
%{_libdir}/libkpathsea.so |
238 |
%{_libdir}/pkgconfig/kpathsea.pc |
239 |
%{_libdir}/kpathsea/*.h |
240 |
|
241 |
#----------------------------------------------------------------------- |
242 |
%define kpathsea_static_devel %{mklibname -d -s kpathsea} |
243 |
|
244 |
%package -n %{kpathsea_static_devel} |
245 |
Summary: Kpathsea development files |
246 |
Group: Development/C |
247 |
Requires: kpathsea-devel = %{version}-%{release} |
248 |
Provides: kpathsea-devel-static = %{version}-%{release} |
249 |
|
250 |
%description -n %{kpathsea_static_devel} |
251 |
Kpathsea implements generic path searching, configuration, |
252 |
and TeX-specific file searching. |
253 |
This package includes the static kpathsea library. |
254 |
|
255 |
%files -n %{kpathsea_static_devel} |
256 |
%{_libdir}/libkpathsea.a |
257 |
|
258 |
#----------------------------------------------------------------------- |
259 |
%define texlua_major 5 |
260 |
%define texluajit_major 2 |
261 |
%define texlua %{mklibname texlua %{texlua_major}} |
262 |
|
263 |
%package -n %{texlua} |
264 |
Summary: Library for TeXlua |
265 |
Group: System/Libraries |
266 |
Provides: texlua = %{version}-%{release} |
267 |
|
268 |
%description -n %{texlua} |
269 |
TeXlua library |
270 |
|
271 |
%files -n %{texlua} |
272 |
%{_libdir}/libtexlua52.so.%{texlua_major} |
273 |
%{_libdir}/libtexlua52.so.%{texlua_major}.* |
274 |
%{_libdir}/libtexluajit.so.%{texluajit_major} |
275 |
%{_libdir}/libtexluajit.so.%{texluajit_major}.* |
276 |
|
277 |
#----------------------------------------------------------------------- |
278 |
%define texlua_devel %{mklibname -d texlua} |
279 |
|
280 |
%package -n %{texlua_devel} |
281 |
Summary: Library for TeXlua |
282 |
Group: Development/C |
283 |
Requires: texlua = %{version}-%{release} |
284 |
Provides: texlua-devel = %{version}-%{release} |
285 |
|
286 |
%description -n %{texlua_devel} |
287 |
TeXlua library |
288 |
This package includes the TeXlua development files. |
289 |
|
290 |
%files -n %{texlua_devel} |
291 |
%{_includedir}/texlua52 |
292 |
%{_includedir}/texluajit |
293 |
%{_libdir}/libtexlua52.la |
294 |
%{_libdir}/libtexlua52.so |
295 |
%{_libdir}/pkgconfig/texlua52.pc |
296 |
%{_libdir}/libtexluajit.la |
297 |
%{_libdir}/libtexluajit.so |
298 |
%{_libdir}/pkgconfig/texluajit.pc |
299 |
|
300 |
#----------------------------------------------------------------------- |
301 |
%define texlua_static_devel %{mklibname -d -s texlua} |
302 |
|
303 |
%package -n %{texlua_static_devel} |
304 |
Summary: Library for TeXlua |
305 |
Group: Development/C |
306 |
Requires: texlua-devel = %{version}-%{release} |
307 |
Provides: texlua-devel-static = %{version}-%{release} |
308 |
|
309 |
%description -n %{texlua_static_devel} |
310 |
TeXlua library |
311 |
This package includes the static TeXlua library. |
312 |
|
313 |
%files -n %{texlua_static_devel} |
314 |
%{_libdir}/libtexlua52.a |
315 |
%{_libdir}/libtexluajit.a |
316 |
|
317 |
#----------------------------------------------------------------------- |
318 |
%define synctex_major 1 |
319 |
%define synctex %{mklibname synctex %{synctex_major}} |
320 |
|
321 |
%package -n %{synctex} |
322 |
Summary: Library for SyncTeX |
323 |
Group: System/Libraries |
324 |
Provides: synctex = %{version}-%{release} |
325 |
|
326 |
%description -n %{synctex} |
327 |
synctex library |
328 |
|
329 |
%files -n %{synctex} |
330 |
%{_libdir}/libsynctex.so.%{synctex_major} |
331 |
%{_libdir}/libsynctex.so.%{synctex_major}.* |
332 |
|
333 |
#----------------------------------------------------------------------- |
334 |
%define synctex_devel %{mklibname -d synctex} |
335 |
|
336 |
%package -n %{synctex_devel} |
337 |
Summary: Library for SyncTeX |
338 |
Group: Development/C |
339 |
Requires: synctex = %{version}-%{release} |
340 |
Provides: synctex-devel = %{version}-%{release} |
341 |
|
342 |
%description -n %{synctex_devel} |
343 |
synctex library |
344 |
This package includes the synctex development files. |
345 |
|
346 |
%files -n %{synctex_devel} |
347 |
%{_includedir}/synctex |
348 |
%{_libdir}/libsynctex.la |
349 |
%{_libdir}/libsynctex.so |
350 |
%{_libdir}/pkgconfig/synctex.pc |
351 |
|
352 |
#----------------------------------------------------------------------- |
353 |
%define synctex_static_devel %{mklibname -d -s synctex} |
354 |
|
355 |
%package -n %{synctex_static_devel} |
356 |
Summary: Library for SyncTeX |
357 |
Group: Development/C |
358 |
Requires: synctex-devel = %{version}-%{release} |
359 |
Provides: synctex-devel-static = %{version}-%{release} |
360 |
|
361 |
%description -n %{synctex_static_devel} |
362 |
synctex library |
363 |
This package includes the static synctex library. |
364 |
|
365 |
%files -n %{synctex_static_devel} |
366 |
%{_libdir}/libsynctex.a |
367 |
|
368 |
#----------------------------------------------------------------------- |
369 |
%define ptexenc_major 1 |
370 |
%define ptexenc %{mklibname ptexenc %{ptexenc_major}} |
371 |
|
372 |
%package -n %{ptexenc} |
373 |
Summary: Library for Japanese pTeX |
374 |
Group: System/Libraries |
375 |
Provides: ptexenc = %{version}-%{release} |
376 |
|
377 |
%description -n %{ptexenc} |
378 |
ptexenc is a useful library for Japanese pTeX |
379 |
(which stands for publishing TeX, and is an extension of |
380 |
TeX by ASCII Co.) and its surrounding tools. |
381 |
|
382 |
%files -n %{ptexenc} |
383 |
%{_libdir}/libptexenc.so.%{ptexenc_major} |
384 |
%{_libdir}/libptexenc.so.%{ptexenc_major}.* |
385 |
|
386 |
#----------------------------------------------------------------------- |
387 |
%define ptexenc_devel %{mklibname -d ptexenc} |
388 |
|
389 |
%package -n %{ptexenc_devel} |
390 |
Summary: Library for Japanese pTeX |
391 |
Group: Development/C |
392 |
Requires: ptexenc = %{version}-%{release} |
393 |
Provides: ptexenc-devel = %{version}-%{release} |
394 |
|
395 |
%description -n %{ptexenc_devel} |
396 |
ptexenc is a useful library for Japanese pTeX |
397 |
(which stands for publishing TeX, and is an extension of |
398 |
TeX by ASCII Co.) and its surrounding tools. |
399 |
This package includes the ptexenc development files. |
400 |
|
401 |
%files -n %{ptexenc_devel} |
402 |
%{_includedir}/ptexenc |
403 |
%{_libdir}/libptexenc.la |
404 |
%{_libdir}/libptexenc.so |
405 |
%{_libdir}/pkgconfig/ptexenc.pc |
406 |
|
407 |
#----------------------------------------------------------------------- |
408 |
%define ptexenc_static_devel %{mklibname -d -s ptexenc} |
409 |
|
410 |
%package -n %{ptexenc_static_devel} |
411 |
Summary: Library for Japanese pTeX |
412 |
Group: Development/C |
413 |
Requires: ptexenc-devel = %{version}-%{release} |
414 |
Provides: ptexenc-devel-static = %{version}-%{release} |
415 |
|
416 |
%description -n %{ptexenc_static_devel} |
417 |
ptexenc is a useful library for Japanese pTeX |
418 |
(which stands for publishing TeX, and is an extension of |
419 |
TeX by ASCII Co.) and its surrounding tools. |
420 |
This package includes the static ptexenc library. |
421 |
|
422 |
%files -n %{ptexenc_static_devel} |
423 |
%{_libdir}/libptexenc.a |
424 |
|
425 |
######################################################################## |
426 |
# enable_shared |
427 |
%endif |
428 |
|
429 |
#----------------------------------------------------------------------- |
430 |
%prep |
431 |
%setup -q -n %{name}-%{version}-source |
432 |
|
433 |
#%patch0 -p1 |
434 |
%patch1 -p1 |
435 |
%if %{enable_asymptote} |
436 |
%patch2 -p1 |
437 |
%endif |
438 |
#%patch3 -p1 |
439 |
%patch4 -p1 |
440 |
#%patch5 -p1 |
441 |
%patch6 -p1 |
442 |
%patch7 -p1 |
443 |
%patch107 -p2 |
444 |
|
445 |
# setup default builtin values, added to paths.h from texmf.cnf |
446 |
perl -pi -e 's%^(TEXMFMAIN\s+= ).*%$1%{texmfdistdir}%;' \ |
447 |
-e 's%^(TEXMFDIST\s+= ).*%$1%{texmfdistdir}%;' \ |
448 |
-e 's%^(TEXMFLOCAL\s+= ).*%$1%{texmflocaldir}%;' \ |
449 |
-e 's%^(TEXMFSYSVAR\s+= ).*%$1%{texmfvardir}%;' \ |
450 |
-e 's%^(TEXMFSYSCONFIG\s+= ).*%$1%{texmfconfdir}%;' \ |
451 |
-e 's%^(TEXMFHOME\s+= ).*%$1\$HOME/texmf%;' \ |
452 |
-e 's%^(TEXMFVAR\s+= ).*%$1\$HOME/.texlive2016/texmf-var%;' \ |
453 |
-e 's%^(TEXMFCONFIG\s+= ).*%$1\$HOME/.texlive2016/texmf-config%;'\ |
454 |
-e 's%^(OSFONTDIR\s+= ).*%$1%{_datadir}/fonts%;' \ |
455 |
texk/kpathsea/texmf.cnf |
456 |
|
457 |
#----------------------------------------------------------------------- |
458 |
%build |
459 |
export CXXFLAGS="%{optflags} -std=c++11" |
460 |
|
461 |
[ -d Work ] || mkdir Work |
462 |
pushd Work |
463 |
ln -sf ../configure . |
464 |
|
465 |
%configure2_5x \ |
466 |
--with-banner-add="/Mageia" \ |
467 |
--disable-native-texlive-build \ |
468 |
--enable-missing \ |
469 |
--disable-linked-scripts \ |
470 |
%if %{enable_shared} |
471 |
--enable-shared \ |
472 |
%else |
473 |
--disable-shared \ |
474 |
%endif |
475 |
%if %{enable_xindy} |
476 |
--enable-xindy-rules \ |
477 |
%else |
478 |
--disable-xindy \ |
479 |
%endif |
480 |
%if %{enable_xdvik} |
481 |
--enable-xdvik \ |
482 |
%else |
483 |
--disable-xdvik \ |
484 |
%endif |
485 |
%if %{enable_dvi2tty} |
486 |
--enable-dvi2tty \ |
487 |
%else |
488 |
--disable-dvi2tty \ |
489 |
%endif |
490 |
--with-system-freetype \ |
491 |
--with-freetype-includes=%{_includedir}/freetype \ |
492 |
--with-system-freetype2 \ |
493 |
--with-freetype2-includes=%{_includedir}/freetype2 \ |
494 |
%if %{with_system_dialog} |
495 |
--disable-dialog \ |
496 |
%else |
497 |
--enable-dialog \ |
498 |
%endif |
499 |
%if %{with_system_psutils} |
500 |
--disable-psutils \ |
501 |
%else |
502 |
--enable-psutils \ |
503 |
%endif |
504 |
--with-system-gd \ |
505 |
%if %{with_system_lcdf} |
506 |
--disable-lcdf-typetools \ |
507 |
%endif |
508 |
--with-system-png \ |
509 |
%if %{with_system_t1lib} |
510 |
--with-system-t1lib \ |
511 |
--disable-t1utils \ |
512 |
%endif |
513 |
%if %{with_system_teckit} |
514 |
--disable-teckit \ |
515 |
--with-teckit-includes=%{_includedir}/teckit \ |
516 |
%endif |
517 |
%if %{with_system_tex4ht} |
518 |
--disable-tex4htk \ |
519 |
%endif |
520 |
%if %{with_system_icu} |
521 |
--with-system-icu \ |
522 |
%else |
523 |
--without-system-icu \ |
524 |
%endif |
525 |
%if %{with_system_poppler} |
526 |
--with-system-xpdf \ |
527 |
--with-system-poppler \ |
528 |
%else |
529 |
--without-system-xpdf \ |
530 |
%endif |
531 |
--with-system-zziplib \ |
532 |
--with-system-cairo \ |
533 |
--with-system-pixman |
534 |
%make_build |
535 |
|
536 |
popd |
537 |
|
538 |
%if %{enable_asymptote} |
539 |
pushd utils/asymptote |
540 |
%configure2_5x \ |
541 |
--enable-gc=system \ |
542 |
--enable-texlive-build \ |
543 |
--datadir=%{texmfdir} |
544 |
%make_build |
545 |
popd |
546 |
%endif |
547 |
|
548 |
#----------------------------------------------------------------------- |
549 |
%install |
550 |
pushd Work |
551 |
%make_install |
552 |
popd |
553 |
|
554 |
%if %{enable_asymptote} |
555 |
pushd utils/asymptote |
556 |
%make_install |
557 |
popd |
558 |
%endif |
559 |
|
560 |
mkdir -p %{buildroot}%{_datadir} |
561 |
for dir in texmf texmf-dist; do |
562 |
if [ -d %{buildroot}%{_prefix}/$dir ]; then |
563 |
rm -fr %{buildroot}%{_datadir}/$dir |
564 |
mv %{buildroot}%{_prefix}/$dir %{buildroot}%{_datadir} |
565 |
fi |
566 |
done |
567 |
|
568 |
mkdir -p %{buildroot}%{texmfvardir} |
569 |
mkdir -p %{buildroot}%{texmfconfdir} |
570 |
|
571 |
%if %{with_system_lcdf} |
572 |
# stray directory left |
573 |
rm -fr %{buildroot}%{_datadir}/lcdf-typetools-for-tex-live |
574 |
%else |
575 |
# openmpi has a program with the same name |
576 |
if [ -f %{buildroot}%{texmfbindir}/otfinfo ]; then |
577 |
mv -f %{buildroot}%{texmfbindir}/otfinfo{,-texlive} |
578 |
fi |
579 |
%endif |
580 |
|
581 |
pushd %{buildroot}%{texmfbindir} |
582 |
# missing symbolic links |
583 |
ln -sf aleph lamed |
584 |
ln -sf luatex dvilualatex |
585 |
ln -sf luatex lualatex |
586 |
ln -sf luatex dviluatex |
587 |
ln -sf pdftex amstex |
588 |
ln -sf pdftex cslatex |
589 |
ln -sf pdftex csplain |
590 |
ln -sf pdftex eplain |
591 |
ln -sf pdftex etex |
592 |
ln -sf pdftex latex |
593 |
ln -sf pdftex mex |
594 |
ln -sf pdftex mltex |
595 |
ln -sf pdftex mllatex |
596 |
ln -sf pdftex pdfcslatex |
597 |
ln -sf pdftex pdfcsplain |
598 |
ln -sf pdftex pdfetex |
599 |
ln -sf pdftex pdflatex |
600 |
ln -sf pdftex pdfmex |
601 |
ln -sf pdftex physe |
602 |
ln -sf pdftex phyzzx |
603 |
ln -sf pdftex utf8mex |
604 |
ln -sf pdftex texsis |
605 |
ln -sf ptex platex |
606 |
ln -sf mpost metafun |
607 |
ln -sf mpost mfplain |
608 |
ln -sf xetex xelatex |
609 |
|
610 |
# correct symlinks |
611 |
for file in *; do |
612 |
link=`readlink $file` || : |
613 |
if [ "x$link" != "x" ]; then |
614 |
ln -sf `echo $link | \ |
615 |
sed -e 's|\.\./.*texmf-dist/|%{texmfdistdir}/|' \ |
616 |
-e 's|\.\./.*texmf/|%{texmfdir}/|'` \ |
617 |
$file |
618 |
fi |
619 |
done |
620 |
%if %{with_system_dialog} |
621 |
ln -sf %{_bindir}/dialog tcdialog |
622 |
%endif |
623 |
%if %{enable_asymptote} |
624 |
ln -sf %{texmfdir}/asymptote/GUI/xasy.py xasy |
625 |
%endif |
626 |
# install scripts from texlive-texmf |
627 |
rm -f a2ping afm2afm arlatex authorindex autoinst bibexport \ |
628 |
bundledoc cachepic cmap2enc de-macro dviasm ebong e2pall \ |
629 |
epspdf epspdftk epstopdf fig4latex findhyph font2afm \ |
630 |
fragmaster ht htcontext htlatex htmex httex httexi htxelatex \ |
631 |
htxetex latex2man latexdiff latexdiff-vc latexmk latexrevise \ |
632 |
listings-ext.sh makeglossaries mathspic mk4ht mkgrkindex \ |
633 |
mkjobtexmf mkluatexfontdb mkt1font mptopdf ot2kpx pdf180 \ |
634 |
pdf270 pdf90 pdfannotextractor pdfatfi pdfbook pdfcrop \ |
635 |
pdfflip pdfjam pdfjam-pocketmod pdfjam-slides3up \ |
636 |
pdfjam-slides6up pdfjoin pdfnup pdfpun pdfthumb perltex \ |
637 |
pfm2kpx pkfix pkfix-helper ppower4 ps4pdf pst2pdf purifyeps \ |
638 |
repstopdf rpdfcrop rungs showglyphs simpdftex splitindex \ |
639 |
svn-multi texcount texdiff texdirflatten texdoc texdoctk \ |
640 |
texloganalyser thumbpdf tlmgr ulqda updmap vpe vpl2ovp \ |
641 |
vpl2vpl |
642 |
popd |
643 |
|
644 |
# use texmf data |
645 |
rm -fr %{buildroot}%{texmfdir} %{buildroot}%{texmfdistdir} |
646 |
|
647 |
# install manual pages and info files from texlive-texmf tarball |
648 |
rm -fr %{buildroot}%{_mandir} %{buildroot}%{_infodir} |
649 |
|
650 |
%if !%{enable_shared} |
651 |
# do not generate dynamic libraries and do not install static ones |
652 |
rm -fr %{buildroot}%{_libdir} |
653 |
rm -fr %{buildroot}%{_includedir} |
654 |
%endif |
655 |
|
656 |
#----------------------------------------------------------------------- |
657 |
%posttrans |
658 |
rm -f %{texmfdir}/ls-R %{texmfdistdir}/ls-R %{texmfconfdir}/ls-R |
659 |
%{_bindir}/texhash > /dev/null 2>&1 |
660 |
yes|%{_bindir}/updmap-sys --syncwithtrees --force > /dev/null 2>&1 |
661 |
yes|%{_bindir}/updmap-sys --syncwithtrees --force > /dev/null 2>&1 |
662 |
export TEXMF=/usr/share/texmf-dist |
663 |
export TEXMFCNF=/usr/share/texmf-dist/web2c |
664 |
export TEXMFCACHE=/var/lib/texmf |
665 |
%{_bindir}/fmtutil-sys --all &> /dev/null 2>&1 |