/[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 857555 - (show annotations) (download)
Sat Jul 25 17:10:00 2015 UTC (8 years, 8 months ago) by tv
File size: 16338 byte(s)
rebuild for new poppler
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 0
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 24
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 Patch5: texlive-20130530-dvisvgm-libgs.patch
185 Patch6: texlive-bz979176.patch
186
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
239 #-----------------------------------------------------------------------
240 %define kpathsea_static_devel %{mklibname -d -s kpathsea}
241
242 %package -n %{kpathsea_static_devel}
243 Summary: Kpathsea development files
244 Group: Development/C
245 Requires: kpathsea-devel = %{version}-%{release}
246 Provides: kpathsea-devel-static = %{version}-%{release}
247
248 %description -n %{kpathsea_static_devel}
249 Kpathsea implements generic path searching, configuration,
250 and TeX-specific file searching.
251 This package includes the static kpathsea library.
252
253 %files -n %{kpathsea_static_devel}
254 %{_libdir}/libkpathsea.a
255
256 #-----------------------------------------------------------------------
257 %define ptexenc_major 1
258 %define ptexenc %{mklibname ptexenc %{ptexenc_major}}
259
260 %package -n %{ptexenc}
261 Summary: Library for Japanese pTeX
262 Group: System/Libraries
263 Provides: ptexenc = %{version}-%{release}
264
265 %description -n %{ptexenc}
266 ptexenc is a useful library for Japanese pTeX
267 (which stands for publishing TeX, and is an extension of
268 TeX by ASCII Co.) and its surrounding tools.
269
270 %files -n %{ptexenc}
271 %{_libdir}/libptexenc.so.%{ptexenc_major}
272 %{_libdir}/libptexenc.so.%{ptexenc_major}.*
273
274 #-----------------------------------------------------------------------
275 %define ptexenc_devel %{mklibname -d ptexenc}
276
277 %package -n %{ptexenc_devel}
278 Summary: Library for Japanese pTeX
279 Group: Development/C
280 Requires: ptexenc = %{version}-%{release}
281 Provides: ptexenc-devel = %{version}-%{release}
282
283 %description -n %{ptexenc_devel}
284 ptexenc is a useful library for Japanese pTeX
285 (which stands for publishing TeX, and is an extension of
286 TeX by ASCII Co.) and its surrounding tools.
287 This package includes the ptexenc development files.
288
289 %files -n %{ptexenc_devel}
290 %{_includedir}/ptexenc
291 %{_libdir}/libptexenc.la
292 %{_libdir}/libptexenc.so
293
294 #-----------------------------------------------------------------------
295 %define ptexenc_static_devel %{mklibname -d -s ptexenc}
296
297 %package -n %{ptexenc_static_devel}
298 Summary: Library for Japanese pTeX
299 Group: Development/C
300 Requires: ptexenc-devel = %{version}-%{release}
301 Provides: ptexenc-devel-static = %{version}-%{release}
302
303 %description -n %{ptexenc_static_devel}
304 ptexenc is a useful library for Japanese pTeX
305 (which stands for publishing TeX, and is an extension of
306 TeX by ASCII Co.) and its surrounding tools.
307 This package includes the static ptexenc library.
308
309 %files -n %{ptexenc_static_devel}
310 %{_libdir}/libptexenc.a
311
312 ########################################################################
313 # enable_shared
314 %endif
315
316 #-----------------------------------------------------------------------
317 %prep
318 %setup -q -n %{name}-%{version}-source
319
320 %patch0 -p1
321 %patch1 -p1
322 %if %{enable_asymptote}
323 %patch2 -p1
324 %endif
325 %patch3 -p1
326 %patch4 -p1
327 %patch5 -p1
328 %patch6 -p1
329
330 # setup default builtin values, added to paths.h from texmf.cnf
331 perl -pi -e 's%^(TEXMFMAIN\s+= ).*%$1%{texmfdistdir}%;' \
332 -e 's%^(TEXMFDIST\s+= ).*%$1%{texmfdistdir}%;' \
333 -e 's%^(TEXMFLOCAL\s+= ).*%$1%{texmflocaldir}%;' \
334 -e 's%^(TEXMFSYSVAR\s+= ).*%$1%{texmfvardir}%;' \
335 -e 's%^(TEXMFSYSCONFIG\s+= ).*%$1%{texmfconfdir}%;' \
336 -e 's%^(TEXMFHOME\s+= ).*%$1\$HOME/texmf%;' \
337 -e 's%^(TEXMFVAR\s+= ).*%$1\$HOME/.texlive2013/texmf-var%;' \
338 -e 's%^(TEXMFCONFIG\s+= ).*%$1\$HOME/.texlive2013/texmf-config%;'\
339 -e 's%^(OSFONTDIR\s+= ).*%$1%{_datadir}/fonts%;' \
340 texk/kpathsea/texmf.cnf
341
342 # Updating metapost
343 tar xvjf %{_sourcedir}/metapost-1.803-src.tar.bz2
344 cp -r metapost-1.803/source/texk/web2c/mplibdir texk/web2c/
345
346 #-----------------------------------------------------------------------
347 %build
348
349 [ -d Work ] || mkdir Work
350 pushd Work
351 ln -sf ../configure .
352
353 %configure2_5x \
354 --with-banner-add="/Mageia" \
355 --disable-native-texlive-build \
356 --enable-missing \
357 %if %{enable_shared}
358 --enable-shared \
359 %else
360 --disable-shared \
361 %endif
362 %if %{enable_xindy}
363 --enable-xindy-rules \
364 %else
365 --disable-xindy \
366 %endif
367 %if %{enable_xdvik}
368 --enable-xdvik \
369 %else
370 --disable-xdvik \
371 %endif
372 %if %{enable_dvi2tty}
373 --enable-dvi2tty \
374 %else
375 --disable-dvi2tty \
376 %endif
377 --with-system-freetype \
378 --with-freetype-includes=%{_includedir}/freetype \
379 --with-system-freetype2 \
380 --with-freetype2-includes=%{_includedir}/freetype2 \
381 %if %{with_system_dialog}
382 --disable-dialog \
383 %else
384 --enable-dialog \
385 %endif
386 %if %{with_system_psutils}
387 --disable-psutils \
388 %else
389 --enable-psutils \
390 %endif
391 --with-system-gd \
392 %if %{with_system_lcdf}
393 --disable-lcdf-typetools \
394 %endif
395 --with-system-png \
396 %if %{with_system_t1lib}
397 --with-system-t1lib \
398 --disable-t1utils \
399 %endif
400 %if %{with_system_teckit}
401 --disable-teckit \
402 --with-teckit-includes=%{_includedir}/teckit \
403 %endif
404 %if %{with_system_tex4ht}
405 --disable-tex4htk \
406 %endif
407 %if %{with_system_icu}
408 --with-system-icu \
409 %else
410 --without-system-icu \
411 %endif
412 %if %{with_system_poppler}
413 --with-system-xpdf \
414 %else
415 --without-system-xpdf \
416 %endif
417 --with-system-zziplib \
418 --with-system-cairo \
419 --with-system-pixman
420 %make
421
422 popd
423
424 %if %{enable_asymptote}
425 pushd utils/asymptote
426 %configure2_5x \
427 --enable-gc=system \
428 --enable-texlive-build \
429 --datadir=%{texmfdir}
430 %make
431 popd
432 %endif
433
434 #-----------------------------------------------------------------------
435 %install
436 pushd Work
437 %makeinstall_std
438 popd
439
440 %if %{enable_asymptote}
441 pushd utils/asymptote
442 %makeinstall_std
443 popd
444 %endif
445
446 mkdir -p %{buildroot}%{_datadir}
447 for dir in texmf texmf-dist; do
448 if [ -d %{buildroot}%{_prefix}/$dir ]; then
449 rm -fr %{buildroot}%{_datadir}/$dir
450 mv %{buildroot}%{_prefix}/$dir %{buildroot}%{_datadir}
451 fi
452 done
453
454 mkdir -p %{buildroot}%{texmfvardir}
455 mkdir -p %{buildroot}%{texmfconfdir}
456
457 %if %{with_system_lcdf}
458 # stray directory left
459 rm -fr %{buildroot}%{_datadir}/lcdf-typetools-for-tex-live
460 %else
461 # openmpi has a program with the same name
462 if [ -f %{buildroot}%{texmfbindir}/otfinfo ]; then
463 mv -f %{buildroot}%{texmfbindir}/otfinfo{,-texlive}
464 fi
465 %endif
466
467 pushd %{buildroot}%{texmfbindir}
468 # missing symbolic links
469 ln -sf aleph lamed
470 ln -sf luatex dvilualatex
471 ln -sf luatex lualatex
472 ln -sf luatex dviluatex
473 ln -sf pdftex amstex
474 ln -sf pdftex cslatex
475 ln -sf pdftex csplain
476 ln -sf pdftex eplain
477 ln -sf pdftex etex
478 ln -sf pdftex latex
479 ln -sf pdftex mex
480 ln -sf pdftex mltex
481 ln -sf pdftex mllatex
482 ln -sf pdftex pdfcslatex
483 ln -sf pdftex pdfcsplain
484 ln -sf pdftex pdfetex
485 ln -sf pdftex pdflatex
486 ln -sf pdftex pdfmex
487 ln -sf pdftex physe
488 ln -sf pdftex phyzzx
489 ln -sf pdftex utf8mex
490 ln -sf pdftex texsis
491 ln -sf ptex platex
492 ln -sf mpost metafun
493 ln -sf mpost mfplain
494 ln -sf xetex xelatex
495 # correct symlinks
496 for file in *; do
497 link=`readlink $file` || :
498 if [ "x$link" != "x" ]; then
499 ln -sf `echo $link | \
500 sed -e 's|\.\./.*texmf-dist/|%{texmfdistdir}/|' \
501 -e 's|\.\./.*texmf/|%{texmfdir}/|'` \
502 $file
503 fi
504 done
505 %if %{with_system_dialog}
506 ln -sf %{_bindir}/dialog tcdialog
507 %endif
508 %if %{enable_asymptote}
509 ln -sf %{texmfdir}/asymptote/GUI/xasy.py xasy
510 %endif
511 # install scripts from texlive-texmf
512 rm -f a2ping afm2afm arlatex authorindex autoinst bibexport \
513 bundledoc cachepic cmap2enc de-macro dviasm ebong e2pall \
514 epspdf epspdftk epstopdf fig4latex findhyph font2afm \
515 fragmaster ht htcontext htlatex htmex httex httexi htxelatex \
516 htxetex latex2man latexdiff latexdiff-vc latexmk latexrevise \
517 listings-ext.sh makeglossaries mathspic mk4ht mkgrkindex \
518 mkjobtexmf mkluatexfontdb mkt1font mptopdf ot2kpx pdf180 \
519 pdf270 pdf90 pdfannotextractor pdfatfi pdfbook pdfcrop \
520 pdfflip pdfjam pdfjam-pocketmod pdfjam-slides3up \
521 pdfjam-slides6up pdfjoin pdfnup pdfpun pdfthumb perltex \
522 pfm2kpx pkfix pkfix-helper ppower4 ps4pdf pst2pdf purifyeps \
523 repstopdf rpdfcrop rungs showglyphs simpdftex splitindex \
524 svn-multi texcount texdiff texdirflatten texdoc texdoctk \
525 texloganalyser thumbpdf tlmgr ulqda updmap vpe vpl2ovp \
526 vpl2vpl
527 popd
528
529 # use texmf data
530 rm -fr %{buildroot}%{texmfdir} %{buildroot}%{texmfdistdir}
531
532 # install manual pages and info files from texlive-texmf tarball
533 rm -fr %{buildroot}%{_mandir} %{buildroot}%{_infodir}
534
535 %if !%{enable_shared}
536 # do not generate dynamic libraries and do not install static ones
537 rm -fr %{buildroot}%{_libdir}
538 rm -fr %{buildroot}%{_includedir}
539 %endif
540
541 #-----------------------------------------------------------------------
542 %posttrans
543 rm -f %{texmfdir}/ls-R %{texmfdistdir}/ls-R %{texmfconfdir}/ls-R
544 %{_bindir}/texhash > /tmp/texlive-texhash.log 2>&1
545 %{_bindir}/updmap-sys --syncwithtrees > /tmp/texlive-updmap-sys.log 2>&1
546 export TEXMF=/usr/share/texmf-dist
547 export TEXMFCNF=/usr/share/texmf-dist/web2c
548 export TEXMFCACHE=/var/lib/texmf
549 %{_bindir}/mtxrun --generate > /tmp/texlive-mtxrun.log 2>&1
550 %{_bindir}/fmtutil-sys --all &> /tmp/texlive-fmtutil-sys.log 2>&1

  ViewVC Help
Powered by ViewVC 1.1.30