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

  ViewVC Help
Powered by ViewVC 1.1.30