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

  ViewVC Help
Powered by ViewVC 1.1.30