source: projects/specs/trunk/t/texlive-collection-basic/texlive-collection-basic-vl.spec @ 9529

Revision 9529, 12.3 KB checked in by munepi, 9 years ago (diff)

TeX Live 2015/pretest

Line 
1## -*- coding: utf-8-unix -*-
2## NOTE: This spec file is generated by tlpdb2rpmspec 2015-1:
3## tlpdb2rpmspec collection-basic
4
5%global _use_internal_dependency_generator 0
6%global __find_provides %{nil}
7%global __find_requires %{nil}
8
9Summary: TeX Live: Essential programs and files
10Summary(ja): TeX Live: Essential programs and files
11Name: texlive-collection-basic
12Version: 2015
13Release: 1%{?_dist_release}
14License: OFSFLD, Knuth, GPL+, LPPL, LPPL 1.3, Freely redistributable without restriction, LGPLv2+
15Group: Applications/Publishing
16URL:http://www.tug.org/texlive/
17
18Source0: texlive.infra.doc.tar.xz
19Source1: texlive.infra.tar.xz
20Source2: amsfonts.doc.tar.xz
21Source3: amsfonts.source.tar.xz
22Source4: amsfonts.tar.xz
23Source5: bibtex.doc.tar.xz
24Source6: bibtex.tar.xz
25Source7: cm.doc.tar.xz
26Source8: cm.tar.xz
27Source9: dvipdfmx.doc.tar.xz
28Source10: dvipdfmx.tar.xz
29Source11: dvipdfmx-def.tar.xz
30Source12: dvips.doc.tar.xz
31Source13: dvips.tar.xz
32Source14: enctex.doc.tar.xz
33Source15: enctex.tar.xz
34Source16: etex.doc.tar.xz
35Source17: etex.tar.xz
36Source18: etex-pkg.doc.tar.xz
37Source19: etex-pkg.tar.xz
38Source20: glyphlist.tar.xz
39Source21: gsftopk.doc.tar.xz
40Source22: gsftopk.tar.xz
41Source23: hyph-utf8.doc.tar.xz
42Source24: hyph-utf8.source.tar.xz
43Source25: hyph-utf8.tar.xz
44Source26: hyphen-base.tar.xz
45Source27: ifluatex.doc.tar.xz
46Source28: ifluatex.source.tar.xz
47Source29: ifluatex.tar.xz
48Source30: ifxetex.doc.tar.xz
49Source31: ifxetex.source.tar.xz
50Source32: ifxetex.tar.xz
51Source33: knuth-lib.tar.xz
52Source34: knuth-local.tar.xz
53Source35: kpathsea.doc.tar.xz
54Source36: kpathsea.tar.xz
55Source37: lua-alt-getopt.doc.tar.xz
56Source38: lua-alt-getopt.tar.xz
57Source39: luatex.doc.tar.xz
58Source40: luatex.tar.xz
59Source41: makeindex.doc.tar.xz
60Source42: makeindex.tar.xz
61Source43: metafont.doc.tar.xz
62Source44: metafont.tar.xz
63Source45: mflogo.doc.tar.xz
64Source46: mflogo.source.tar.xz
65Source47: mflogo.tar.xz
66Source48: mfware.doc.tar.xz
67Source49: mfware.tar.xz
68Source50: pdftex.doc.tar.xz
69Source51: pdftex.tar.xz
70Source52: plain.tar.xz
71Source53: tetex.doc.tar.xz
72Source54: tetex.tar.xz
73Source55: tex.doc.tar.xz
74Source56: tex.tar.xz
75Source57: texconfig.doc.tar.xz
76Source58: texconfig.tar.xz
77Source59: texlive-common.doc.tar.xz
78Source60: texlive-common.tar.xz
79Source61: texlive-docindex.doc.tar.xz
80Source62: texlive-docindex.tar.xz
81Source63: texlive-en.doc.tar.xz
82Source64: texlive-en.tar.xz
83Source65: texlive-msg-translations.tar.xz
84Source66: texlive-scripts.doc.tar.xz
85Source67: texlive-scripts.tar.xz
86Source68: xdvi.doc.tar.xz
87Source69: xdvi.tar.xz
88
89Requires: texlive = %{version}
90
91
92Requires(post):         texlive = %{version}
93Requires(postun):       texlive = %{version}
94
95BuildArch:      noarch
96Buildroot:      %{_tmppath}/%{name}-%{version}-root
97
98Vendor:         Project Vine
99Distribution:   Vine Linux
100Packager:       munepi
101
102%description
103The TeX Live software distribution offers a complete TeX system for a
104variety of Unix, Macintosh, Windows and other platforms. It
105encompasses programs for editing, typesetting, previewing and printing
106of TeX documents in many different languages, and a large collection
107of TeX macros and font libraries.
108
109The distribution includes extensive general documentation about TeX,
110as well as the documentation for the included software packages.
111
112This package is a collection of Essential programs and files:
113These files are regarded as basic for any TeX system, covering
114plain TeX macros, Computer Modern fonts, and configuration for
115common drivers; no LaTeX.
116
117This package contains the following CTAN packages:
118texlive.infra: basic TeX Live infrastructure
119amsfonts: TeX fonts from the American Mathematical Society.
120bibtex: Process bibliographies for LaTeX, etc.
121cm: Computer Modern fonts.
122dvipdfmx: An extended version of dvipdfm.
123dvipdfmx-def: Configuration file for dvipdfmx graphics.
124dvips: A DVI to PostScript driver.
125enctex: A TeX extension that translates input on its way into TeX.
126etex: An extended version of TeX, from the NTS project.
127etex-pkg: E-TeX support package.
128glyphlist:
129gsftopk: Convert "ghostscript fonts" to PK files.
130hyph-utf8: Hyphenation patterns expressed in UTF-8.
131hyphen-base:
132ifluatex: Provides the ifluatex switch.
133ifxetex: Am I running under XeTeX?
134knuth-lib: A small library of MetaFont sources.
135knuth-local: Knuth's local information.
136kpathsea: Path searching library for TeX-related files.
137lua-alt-getopt: Process application arguments the same way as getopt_long.
138luatex: The LuaTeX engine.
139makeindex: Makeindex development sources.
140metafont: A system for specifying fonts.
141mflogo: LaTeX support for Metafont logo fonts.
142mfware: Supporting tools for use with Metafont.
143pdftex: A TeX extension for direct creation of PDF.
144plain: The Plain TeX format.
145tetex: scripts and files originally written for or included in teTeX
146tex: A sophisticated typesetting engine.
147texconfig:
148texlive-common: TeX Live documentation (common elements)
149texlive-docindex: top-level TeX Live doc.html, etc.
150texlive-en: TeX Live manual (English)
151texlive-msg-translations: translations of the TeX Live installer and TeX Live Manager
152texlive-scripts: TeX Live infrastructure programs
153xdvi: A DVI previewer for the X Window System.
154
155%description -l ja
156TeX Live ソフトウェアディストリビューションは、
157さまざまな Unix, Macintosh, Windows、および
158他のプラットホームに対して完全な TeX システムを提供します。
159多くの異なった言語を含む TeX ドキュメントの
160編集、組版、閲覧、印刷するためのプログラム、
161そして、TeX マクロやフォントライブラリの大きなコレクションを
162同梱しています。
163
164このディストリビューションは
165同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
166TeX に関するたくさんの一般的なドキュメントを含んでいます。
167
168このパッケージは以下のようなパッケージ集です。
169Essential programs and files:
170These files are regarded as basic for any TeX system, covering
171plain TeX macros, Computer Modern fonts, and configuration for
172common drivers; no LaTeX.
173
174このパッケージは以下の CTAN パッケージを含んでいます:
175texlive.infra: basic TeX Live infrastructure
176amsfonts: TeX fonts from the American Mathematical Society.
177bibtex: Process bibliographies for LaTeX, etc.
178cm: Computer Modern fonts.
179dvipdfmx: An extended version of dvipdfm.
180dvipdfmx-def: Configuration file for dvipdfmx graphics.
181dvips: A DVI to PostScript driver.
182enctex: A TeX extension that translates input on its way into TeX.
183etex: An extended version of TeX, from the NTS project.
184etex-pkg: E-TeX support package.
185glyphlist:
186gsftopk: Convert "ghostscript fonts" to PK files.
187hyph-utf8: Hyphenation patterns expressed in UTF-8.
188hyphen-base:
189ifluatex: Provides the ifluatex switch.
190ifxetex: Am I running under XeTeX?
191knuth-lib: A small library of MetaFont sources.
192knuth-local: Knuth's local information.
193kpathsea: Path searching library for TeX-related files.
194lua-alt-getopt: Process application arguments the same way as getopt_long.
195luatex: The LuaTeX engine.
196makeindex: Makeindex development sources.
197metafont: A system for specifying fonts.
198mflogo: LaTeX support for Metafont logo fonts.
199mfware: Supporting tools for use with Metafont.
200pdftex: A TeX extension for direct creation of PDF.
201plain: The Plain TeX format.
202tetex: scripts and files originally written for or included in teTeX
203tex: A sophisticated typesetting engine.
204texconfig:
205texlive-common: TeX Live documentation (common elements)
206texlive-docindex: top-level TeX Live doc.html, etc.
207texlive-en: TeX Live manual (English)
208texlive-msg-translations: translations of the TeX Live installer and TeX Live Manager
209texlive-scripts: TeX Live infrastructure programs
210xdvi: A DVI previewer for the X Window System.
211
212%package doc
213Summary: TeX Live: Documentation files of %{name}
214Group: Applications/Publishing
215Requires: %{name} = %{version}-%{release}
216
217%description doc
218This package contains documentation files of %{name}.
219
220%prep
221%setup -c -n %{name}-%{version}
222%__tar -xvf %{SOURCE1}
223%__tar -xvf %{SOURCE2}
224%__tar -xvf %{SOURCE3}
225%__tar -xvf %{SOURCE4}
226%__tar -xvf %{SOURCE5}
227%__tar -xvf %{SOURCE6}
228%__tar -xvf %{SOURCE7}
229%__tar -xvf %{SOURCE8}
230%__tar -xvf %{SOURCE9}
231%__tar -xvf %{SOURCE10}
232%__tar -xvf %{SOURCE11}
233%__tar -xvf %{SOURCE12}
234%__tar -xvf %{SOURCE13}
235%__tar -xvf %{SOURCE14}
236%__tar -xvf %{SOURCE15}
237%__tar -xvf %{SOURCE16}
238%__tar -xvf %{SOURCE17}
239%__tar -xvf %{SOURCE18}
240%__tar -xvf %{SOURCE19}
241%__tar -xvf %{SOURCE20}
242%__tar -xvf %{SOURCE21}
243%__tar -xvf %{SOURCE22}
244%__tar -xvf %{SOURCE23}
245%__tar -xvf %{SOURCE24}
246%__tar -xvf %{SOURCE25}
247%__tar -xvf %{SOURCE26}
248%__tar -xvf %{SOURCE27}
249%__tar -xvf %{SOURCE28}
250%__tar -xvf %{SOURCE29}
251%__tar -xvf %{SOURCE30}
252%__tar -xvf %{SOURCE31}
253%__tar -xvf %{SOURCE32}
254%__tar -xvf %{SOURCE33}
255%__tar -xvf %{SOURCE34}
256%__tar -xvf %{SOURCE35}
257%__tar -xvf %{SOURCE36}
258%__tar -xvf %{SOURCE37}
259%__tar -xvf %{SOURCE38}
260%__tar -xvf %{SOURCE39}
261%__tar -xvf %{SOURCE40}
262%__tar -xvf %{SOURCE41}
263%__tar -xvf %{SOURCE42}
264%__tar -xvf %{SOURCE43}
265%__tar -xvf %{SOURCE44}
266%__tar -xvf %{SOURCE45}
267%__tar -xvf %{SOURCE46}
268%__tar -xvf %{SOURCE47}
269%__tar -xvf %{SOURCE48}
270%__tar -xvf %{SOURCE49}
271%__tar -xvf %{SOURCE50}
272%__tar -xvf %{SOURCE51}
273%__tar -xvf %{SOURCE52}
274%__tar -xvf %{SOURCE53}
275%__tar -xvf %{SOURCE54}
276%__tar -xvf %{SOURCE55}
277%__tar -xvf %{SOURCE56}
278%__tar -xvf %{SOURCE57}
279%__tar -xvf %{SOURCE58}
280%__tar -xvf %{SOURCE59}
281%__tar -xvf %{SOURCE60}
282%__tar -xvf %{SOURCE61}
283%__tar -xvf %{SOURCE62}
284%__tar -xvf %{SOURCE63}
285%__tar -xvf %{SOURCE64}
286%__tar -xvf %{SOURCE65}
287%__tar -xvf %{SOURCE66}
288%__tar -xvf %{SOURCE67}
289%__tar -xvf %{SOURCE68}
290%__tar -xvf %{SOURCE69}
291
292%build
293
294%install
295[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
296
297%__mkdir_p %{buildroot}%{_datadir}
298
299## move texmf-dist to /usr/share/texmf-dist
300[ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
301
302## move texmf to /usr/share/texmf
303[ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
304
305## move tlpkg to /usr/share/tlpkg
306[ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
307
308## move all non-arch binaries to /usr/bin
309[ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
310
311## move others into /usr/share/texmf-dist
312%__mkdir_p %{buildroot}%{_tl_texmfdist}
313%__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
314%__rm -rf * ||:
315
316
317## remove duplicated files between texlive and texlive-collection-*
318## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
319## remove unpacked files
320x=(
321scripts/texlive/texconfig-dialog.sh
322scripts/texlive/texconfig-sys.sh
323scripts/texlive/texconfig.sh
324scripts/texlive/texlinks.sh
325scripts/texlive/tlmgr.pl
326texconfig/tcfmgr
327web2c/mktex.opt
328web2c/mktexdir
329web2c/mktexdir.opt
330web2c/mktexnam
331web2c/mktexnam.opt
332web2c/mktexupd
333web2c/texmf.cnf
334web2c/updmap-hdr.cfg
335web2c/updmap.cfg
336)
337if [ -d %{buildroot}%{_tl_texmfdist} ]; then
338pushd %{buildroot}%{_tl_texmfdist}
339%__rm -f ${x[@]} ||:
340popd
341fi
342
343## Files list
344find %{buildroot} -type f -or -type l | \
345    %__sed -e "s|%{buildroot}||g" > filelist.full
346
347find %{buildroot}%{_tl_texmfdist} -type d | \
348    %__sed -e "s|^%{buildroot}|%dir |" \
349           -e "s|$|/|"             >> filelist.full
350
351## subpackages
352grep "/texmf-dist/doc/" filelist.full > filelist.doc
353cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
354%__mv -f filelist.tmp filelist.full
355
356%clean
357%__rm -rf %{buildroot}
358
359%post
360%_tl_touch_run texhash
361%_tl_touch_run mtxrun
362
363[ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
364
365    %_tl_enable_map MixedMap cm.map
366    %_tl_enable_map MixedMap cmextra.map
367    %_tl_enable_map MixedMap cyrillic.map
368    %_tl_enable_map Map euler.map
369    %_tl_enable_map MixedMap latxfont.map
370    %_tl_enable_map MixedMap symbols.map
371    %_tl_enable_map MixedMap cmtext-bsr-interpolated.map
372    %_tl_enable_map Map dummy-space.map
373    %_tl_enable_map Map mathpple.map
374
375%_tl_touch_run fmtutil
376
377exit 0
378
379
380%postun
381if [ "$1" = 0 ]; then
382    %_tl_touch_run texhash
383
384    [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
385
386    %_tl_disable_map cm.map
387    %_tl_disable_map cmextra.map
388    %_tl_disable_map cyrillic.map
389    %_tl_disable_map euler.map
390    %_tl_disable_map latxfont.map
391    %_tl_disable_map symbols.map
392    %_tl_disable_map cmtext-bsr-interpolated.map
393    %_tl_disable_map dummy-space.map
394    %_tl_disable_map mathpple.map
395
396fi
397
398exit 0
399
400%posttrans
401%{_tl_exec_texhash}
402%{_tl_exec_mtxrun}
403%{_tl_exec_updmap}
404%{_tl_exec_fmtutil}
405exit 0
406
407
408%files -f filelist.full
409%defattr(-,root,root,-)
410
411%files -f filelist.doc doc
412%defattr(-,root,root,-)
413
414%changelog
415
Note: See TracBrowser for help on using the repository browser.