/[packages]/cauldron/texlive/current/SPECS/texlive.spec
ViewVC logotype

Contents of /cauldron/texlive/current/SPECS/texlive.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30