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

Revision 9529, 11.9 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-context
4
5%global _use_internal_dependency_generator 0
6%global __find_provides %{nil}
7%global __find_requires %{nil}
8
9Summary: TeX Live: ConTeXt and packages
10Summary(ja): TeX Live: ConTeXt and packages
11Name: texlive-collection-context
12Version: 2015
13Release: 1%{?_dist_release}
14License: Freely redistributable without restriction, Public Domain, GPL+, GPLv3+, BSD, GPLv2+
15Group: Applications/Publishing
16URL:http://www.tug.org/texlive/
17
18Source0: context.doc.tar.xz
19Source1: context.tar.xz
20Source2: jmn.tar.xz
21Source3: context-account.doc.tar.xz
22Source4: context-account.tar.xz
23Source5: context-algorithmic.tar.xz
24Source6: context-animation.doc.tar.xz
25Source7: context-animation.tar.xz
26Source8: context-annotation.doc.tar.xz
27Source9: context-annotation.tar.xz
28Source10: context-bnf.doc.tar.xz
29Source11: context-bnf.tar.xz
30Source12: context-chromato.doc.tar.xz
31Source13: context-chromato.tar.xz
32Source14: context-construction-plan.doc.tar.xz
33Source15: context-construction-plan.tar.xz
34Source16: context-cyrillicnumbers.doc.tar.xz
35Source17: context-cyrillicnumbers.tar.xz
36Source18: context-degrade.doc.tar.xz
37Source19: context-degrade.tar.xz
38Source20: context-fancybreak.doc.tar.xz
39Source21: context-fancybreak.tar.xz
40Source22: context-filter.doc.tar.xz
41Source23: context-filter.tar.xz
42Source24: context-fixme.tar.xz
43Source25: context-french.doc.tar.xz
44Source26: context-french.tar.xz
45Source27: context-fullpage.doc.tar.xz
46Source28: context-fullpage.tar.xz
47Source29: context-games.doc.tar.xz
48Source30: context-games.tar.xz
49Source31: context-gantt.doc.tar.xz
50Source32: context-gantt.tar.xz
51Source33: context-gnuplot.doc.tar.xz
52Source34: context-gnuplot.tar.xz
53Source35: context-letter.doc.tar.xz
54Source36: context-letter.tar.xz
55Source37: context-lettrine.doc.tar.xz
56Source38: context-lettrine.tar.xz
57Source39: context-lilypond.doc.tar.xz
58Source40: context-lilypond.tar.xz
59Source41: context-mathsets.doc.tar.xz
60Source42: context-mathsets.tar.xz
61Source43: context-notes-zh-cn.doc.tar.xz
62Source44: context-notes-zh-cn.tar.xz
63Source45: context-rst.doc.tar.xz
64Source46: context-rst.tar.xz
65Source47: context-ruby.doc.tar.xz
66Source48: context-ruby.tar.xz
67Source49: context-simplefonts.doc.tar.xz
68Source50: context-simplefonts.tar.xz
69Source51: context-simpleslides.doc.tar.xz
70Source52: context-simpleslides.tar.xz
71Source53: context-title.doc.tar.xz
72Source54: context-title.tar.xz
73Source55: context-transliterator.doc.tar.xz
74Source56: context-transliterator.tar.xz
75Source57: context-typearea.doc.tar.xz
76Source58: context-typearea.tar.xz
77Source59: context-typescripts.doc.tar.xz
78Source60: context-typescripts.tar.xz
79Source61: context-vim.doc.tar.xz
80Source62: context-vim.tar.xz
81Source63: context-visualcounter.doc.tar.xz
82Source64: context-visualcounter.source.tar.xz
83Source65: context-visualcounter.tar.xz
84
85Requires: texlive = %{version}
86Requires: texlive-collection-basic = %{version}
87
88Requires(post):         texlive = %{version}
89Requires(postun):       texlive = %{version}
90
91BuildArch:      noarch
92Buildroot:      %{_tmppath}/%{name}-%{version}-root
93
94Vendor:         Project Vine
95Distribution:   Vine Linux
96Packager:       munepi
97
98%description
99The TeX Live software distribution offers a complete TeX system for a
100variety of Unix, Macintosh, Windows and other platforms. It
101encompasses programs for editing, typesetting, previewing and printing
102of TeX documents in many different languages, and a large collection
103of TeX macros and font libraries.
104
105The distribution includes extensive general documentation about TeX,
106as well as the documentation for the included software packages.
107
108This package is a collection of ConTeXt and packages:
109Hans Hagen's powerful ConTeXt system, http://pragma-ade.com.
110Also includes third-party ConTeXt packages.
111
112This package contains the following CTAN packages:
113context: The ConTeXt macro package.
114jmn:
115context-account: A simple accounting package.
116context-algorithmic: Algorithm handling in ConTeXt.
117context-animation: Generate fieldstack based animation with ConTeXt.
118context-annotation:
119context-bnf: A BNF module for Context.
120context-chromato: ConTeXt macros for chromatograms.
121context-construction-plan: Construction plans in ConTeXt.
122context-cyrillicnumbers: Write numbers as cyrillic glyphs.
123context-degrade: Degrading JPEG images in ConTeXt.
124context-fancybreak: Overfull pages with ConTeXt
125context-filter: Run external programs on the contents of a start-stop environment.
126context-fixme: Make editorial marks on a document.
127context-french: Support for writing French in ConTeXt.
128context-fullpage: Overfull pages with ConTeXt
129context-games:
130context-gantt: GANTT module for ConTeXt.
131context-gnuplot: Inclusion of Gnuplot graphs in ConTeXt.
132context-letter: Context package for writing letters.
133context-lettrine: A ConTeXt implementation of lettrines.
134context-lilypond: Lilypond code in ConTeXt.
135context-mathsets: Set notation in ConTeXt.
136context-notes-zh-cn: Notes on using ConTeXt MkIV.
137context-rst: Process reStructuredText with ConTeXt.
138context-ruby: Ruby annotations in ConTeXt.
139context-simplefonts: Simplified font usage for ConTeXt.
140context-simpleslides:
141context-title:
142context-transliterator: Transliterate text from 'other' alphabets.
143context-typearea: Something like Koma-Script typearea.
144context-typescripts: Small modules to load various fonts for use in ConTeXt.
145context-vim: Generate Context syntax highlighting code from vim.
146context-visualcounter:
147
148%description -l ja
149TeX Live ソフトウェアディストリビューションは、
150さまざまな Unix, Macintosh, Windows、および
151他のプラットホームに対して完全な TeX システムを提供します。
152多くの異なった言語を含む TeX ドキュメントの
153編集、組版、閲覧、印刷するためのプログラム、
154そして、TeX マクロやフォントライブラリの大きなコレクションを
155同梱しています。
156
157このディストリビューションは
158同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
159TeX に関するたくさんの一般的なドキュメントを含んでいます。
160
161このパッケージは以下のようなパッケージ集です。
162ConTeXt and packages:
163Hans Hagen's powerful ConTeXt system, http://pragma-ade.com.
164Also includes third-party ConTeXt packages.
165
166このパッケージは以下の CTAN パッケージを含んでいます:
167context: The ConTeXt macro package.
168jmn:
169context-account: A simple accounting package.
170context-algorithmic: Algorithm handling in ConTeXt.
171context-animation: Generate fieldstack based animation with ConTeXt.
172context-annotation:
173context-bnf: A BNF module for Context.
174context-chromato: ConTeXt macros for chromatograms.
175context-construction-plan: Construction plans in ConTeXt.
176context-cyrillicnumbers: Write numbers as cyrillic glyphs.
177context-degrade: Degrading JPEG images in ConTeXt.
178context-fancybreak: Overfull pages with ConTeXt
179context-filter: Run external programs on the contents of a start-stop environment.
180context-fixme: Make editorial marks on a document.
181context-french: Support for writing French in ConTeXt.
182context-fullpage: Overfull pages with ConTeXt
183context-games:
184context-gantt: GANTT module for ConTeXt.
185context-gnuplot: Inclusion of Gnuplot graphs in ConTeXt.
186context-letter: Context package for writing letters.
187context-lettrine: A ConTeXt implementation of lettrines.
188context-lilypond: Lilypond code in ConTeXt.
189context-mathsets: Set notation in ConTeXt.
190context-notes-zh-cn: Notes on using ConTeXt MkIV.
191context-rst: Process reStructuredText with ConTeXt.
192context-ruby: Ruby annotations in ConTeXt.
193context-simplefonts: Simplified font usage for ConTeXt.
194context-simpleslides:
195context-title:
196context-transliterator: Transliterate text from 'other' alphabets.
197context-typearea: Something like Koma-Script typearea.
198context-typescripts: Small modules to load various fonts for use in ConTeXt.
199context-vim: Generate Context syntax highlighting code from vim.
200context-visualcounter:
201
202%package doc
203Summary: TeX Live: Documentation files of %{name}
204Group: Applications/Publishing
205Requires: %{name} = %{version}-%{release}
206
207%description doc
208This package contains documentation files of %{name}.
209
210%prep
211%setup -c -n %{name}-%{version}
212%__tar -xvf %{SOURCE1}
213%__tar -xvf %{SOURCE2}
214%__tar -xvf %{SOURCE3}
215%__tar -xvf %{SOURCE4}
216%__tar -xvf %{SOURCE5}
217%__tar -xvf %{SOURCE6}
218%__tar -xvf %{SOURCE7}
219%__tar -xvf %{SOURCE8}
220%__tar -xvf %{SOURCE9}
221%__tar -xvf %{SOURCE10}
222%__tar -xvf %{SOURCE11}
223%__tar -xvf %{SOURCE12}
224%__tar -xvf %{SOURCE13}
225%__tar -xvf %{SOURCE14}
226%__tar -xvf %{SOURCE15}
227%__tar -xvf %{SOURCE16}
228%__tar -xvf %{SOURCE17}
229%__tar -xvf %{SOURCE18}
230%__tar -xvf %{SOURCE19}
231%__tar -xvf %{SOURCE20}
232%__tar -xvf %{SOURCE21}
233%__tar -xvf %{SOURCE22}
234%__tar -xvf %{SOURCE23}
235%__tar -xvf %{SOURCE24}
236%__tar -xvf %{SOURCE25}
237%__tar -xvf %{SOURCE26}
238%__tar -xvf %{SOURCE27}
239%__tar -xvf %{SOURCE28}
240%__tar -xvf %{SOURCE29}
241%__tar -xvf %{SOURCE30}
242%__tar -xvf %{SOURCE31}
243%__tar -xvf %{SOURCE32}
244%__tar -xvf %{SOURCE33}
245%__tar -xvf %{SOURCE34}
246%__tar -xvf %{SOURCE35}
247%__tar -xvf %{SOURCE36}
248%__tar -xvf %{SOURCE37}
249%__tar -xvf %{SOURCE38}
250%__tar -xvf %{SOURCE39}
251%__tar -xvf %{SOURCE40}
252%__tar -xvf %{SOURCE41}
253%__tar -xvf %{SOURCE42}
254%__tar -xvf %{SOURCE43}
255%__tar -xvf %{SOURCE44}
256%__tar -xvf %{SOURCE45}
257%__tar -xvf %{SOURCE46}
258%__tar -xvf %{SOURCE47}
259%__tar -xvf %{SOURCE48}
260%__tar -xvf %{SOURCE49}
261%__tar -xvf %{SOURCE50}
262%__tar -xvf %{SOURCE51}
263%__tar -xvf %{SOURCE52}
264%__tar -xvf %{SOURCE53}
265%__tar -xvf %{SOURCE54}
266%__tar -xvf %{SOURCE55}
267%__tar -xvf %{SOURCE56}
268%__tar -xvf %{SOURCE57}
269%__tar -xvf %{SOURCE58}
270%__tar -xvf %{SOURCE59}
271%__tar -xvf %{SOURCE60}
272%__tar -xvf %{SOURCE61}
273%__tar -xvf %{SOURCE62}
274%__tar -xvf %{SOURCE63}
275%__tar -xvf %{SOURCE64}
276%__tar -xvf %{SOURCE65}
277
278%build
279
280%install
281[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
282
283%__mkdir_p %{buildroot}%{_datadir}
284
285## move texmf-dist to /usr/share/texmf-dist
286[ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
287
288## move texmf to /usr/share/texmf
289[ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
290
291## move tlpkg to /usr/share/tlpkg
292[ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
293
294## move all non-arch binaries to /usr/bin
295[ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
296
297## move others into /usr/share/texmf-dist
298%__mkdir_p %{buildroot}%{_tl_texmfdist}
299%__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
300%__rm -rf * ||:
301
302
303## remove duplicated files between texlive and texlive-collection-*
304## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
305## remove unpacked files
306x=(
307scripts/texlive/texconfig-dialog.sh
308scripts/texlive/texconfig-sys.sh
309scripts/texlive/texconfig.sh
310scripts/texlive/texlinks.sh
311scripts/texlive/tlmgr.pl
312texconfig/tcfmgr
313web2c/mktex.opt
314web2c/mktexdir
315web2c/mktexdir.opt
316web2c/mktexnam
317web2c/mktexnam.opt
318web2c/mktexupd
319web2c/texmf.cnf
320web2c/updmap-hdr.cfg
321web2c/updmap.cfg
322)
323if [ -d %{buildroot}%{_tl_texmfdist} ]; then
324pushd %{buildroot}%{_tl_texmfdist}
325%__rm -f ${x[@]} ||:
326popd
327fi
328
329## Files list
330find %{buildroot} -type f -or -type l | \
331    %__sed -e "s|%{buildroot}||g" > filelist.full
332
333find %{buildroot}%{_tl_texmfdist} -type d | \
334    %__sed -e "s|^%{buildroot}|%dir |" \
335           -e "s|$|/|"             >> filelist.full
336
337## subpackages
338grep "/texmf-dist/doc/" filelist.full > filelist.doc
339cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
340%__mv -f filelist.tmp filelist.full
341
342%clean
343%__rm -rf %{buildroot}
344
345%post
346%_tl_touch_run texhash
347%_tl_touch_run mtxrun
348
349[ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
350
351    %_tl_enable_map Map original-context-symbol.map
352
353%_tl_touch_run fmtutil
354
355exit 0
356
357
358%postun
359if [ "$1" = 0 ]; then
360    %_tl_touch_run texhash
361
362    [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
363
364    %_tl_disable_map original-context-symbol.map
365
366fi
367
368exit 0
369
370%posttrans
371%{_tl_exec_texhash}
372%{_tl_exec_mtxrun}
373%{_tl_exec_updmap}
374%{_tl_exec_fmtutil}
375exit 0
376
377
378%files -f filelist.full
379%defattr(-,root,root,-)
380
381%files -f filelist.doc doc
382%defattr(-,root,root,-)
383
384%changelog
385
Note: See TracBrowser for help on using the repository browser.