source: projects/specs/trunk/t/texlive-collection-langarabic/texlive-collection-langchinese-vl.spec @ 8476

Revision 8476, 8.9 KB checked in by munepi, 10 years ago (diff)

TeX Live 2014

Line 
1## -*- coding: utf-8-unix -*-
2## NOTE: This spec file is generated by tlpdb2rpmspec 2014-1:
3## tlpdb2rpmspec collection-langchinese
4
5%global _use_internal_dependency_generator 0
6%global __find_provides %{nil}
7%global __find_requires %{nil}
8
9Summary: TeX Live: Chinese
10Summary(ja): TeX Live: Chinese
11Name: texlive-collection-langchinese
12Version: 2014
13Release: 1%{?_dist_release}
14License: Freely redistributable without restriction, GPL+, LPPL, LGPLv2+, GFDL, LPPL 1.3
15Group: Applications/Publishing
16URL:http://www.tug.org/texlive/
17
18Source0: arphic.doc.tar.xz
19Source1: arphic.tar.xz
20Source2: asymptote-by-example-zh-cn.doc.tar.xz
21Source3: asymptote-by-example-zh-cn.tar.xz
22Source4: asymptote-faq-zh-cn.doc.tar.xz
23Source5: asymptote-faq-zh-cn.tar.xz
24Source6: asymptote-manual-zh-cn.doc.tar.xz
25Source7: asymptote-manual-zh-cn.tar.xz
26Source8: cns.doc.tar.xz
27Source9: cns.tar.xz
28Source10: ctex.doc.tar.xz
29Source11: ctex.tar.xz
30Source12: ctex-faq.doc.tar.xz
31Source13: ctex-faq.tar.xz
32Source14: fandol.doc.tar.xz
33Source15: fandol.tar.xz
34Source16: hyphen-chinese.tar.xz
35Source17: latex-notes-zh-cn.doc.tar.xz
36Source18: latex-notes-zh-cn.tar.xz
37Source19: lshort-chinese.doc.tar.xz
38Source20: lshort-chinese.tar.xz
39Source21: texlive-zh-cn.doc.tar.xz
40Source22: texlive-zh-cn.tar.xz
41Source23: xpinyin.doc.tar.xz
42Source24: xpinyin.source.tar.xz
43Source25: xpinyin.tar.xz
44Source26: zhmetrics.doc.tar.xz
45Source27: zhmetrics.source.tar.xz
46Source28: zhmetrics.tar.xz
47Source29: zhnumber.doc.tar.xz
48Source30: zhnumber.source.tar.xz
49Source31: zhnumber.tar.xz
50Source32: zhspacing.doc.tar.xz
51Source33: zhspacing.tar.xz
52
53Requires: texlive = %{version}
54Requires: texlive-collection-langcjk = %{version}
55
56Requires(post):         texlive = %{version}
57Requires(postun):       texlive = %{version}
58
59BuildArch:      noarch
60Buildroot:      %{_tmppath}/%{name}-%{version}-root
61
62Vendor:         Project Vine
63Distribution:   Vine Linux
64Packager:       munepi
65
66%description
67The TeX Live software distribution offers a complete TeX system for a
68variety of Unix, Macintosh, Windows and other platforms. It
69encompasses programs for editing, typesetting, previewing and printing
70of TeX documents in many different languages, and a large collection
71of TeX macros and font libraries.
72
73The distribution includes extensive general documentation about TeX,
74as well as the documentation for the included software packages.
75
76This package is a collection of Chinese:
77Support for Chinese; additional packages in collection-langcjk.
78
79This package contains the following CTAN packages:
80arphic: Arphic (Chinese) font packages.
81asymptote-by-example-zh-cn: Asymptote by example.
82asymptote-faq-zh-cn: Asymptote FAQ (Chinese translation).
83asymptote-manual-zh-cn: A Chinese translation of the asymptote manual.
84cns:
85ctex: LaTeX classes and packages for Chinese typesetting.
86ctex-faq: LaTeX FAQ by the Chinese TeX Society (ctex.org).
87fandol: Four basic fonts for Chinese typesetting.
88hyphen-chinese: Chinese pinyin hyphenation patterns.
89latex-notes-zh-cn: Chinese Introduction to TeX and LaTeX.
90lshort-chinese: Introduction to LaTeX, in Chinese.
91texlive-zh-cn: TeX Live manual (Chinese)
92xpinyin: Automatically add pinyin to Chinese characters.
93zhmetrics: TFM subfont files for using Chinese fonts in 8-bit TeX.
94zhnumber: Typeset Chinese representations of numbers.
95zhspacing: Spacing for mixed CJK-English documents in XeTeX.
96
97%description -l ja
98TeX Live ソフトウェアディストリビューションは、
99さまざまな Unix, Macintosh, Windows、および
100他のプラットホームに対して完全な TeX システムを提供します。
101多くの異なった言語を含む TeX ドキュメントの
102編集、組版、閲覧、印刷するためのプログラム、
103そして、TeX マクロやフォントライブラリの大きなコレクションを
104同梱しています。
105
106このディストリビューションは
107同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
108TeX に関するたくさんの一般的なドキュメントを含んでいます。
109
110このパッケージは以下のようなパッケージ集です。
111Chinese:
112Support for Chinese; additional packages in collection-langcjk.
113
114このパッケージは以下の CTAN パッケージを含んでいます:
115arphic: Arphic (Chinese) font packages.
116asymptote-by-example-zh-cn: Asymptote by example.
117asymptote-faq-zh-cn: Asymptote FAQ (Chinese translation).
118asymptote-manual-zh-cn: A Chinese translation of the asymptote manual.
119cns:
120ctex: LaTeX classes and packages for Chinese typesetting.
121ctex-faq: LaTeX FAQ by the Chinese TeX Society (ctex.org).
122fandol: Four basic fonts for Chinese typesetting.
123hyphen-chinese: Chinese pinyin hyphenation patterns.
124latex-notes-zh-cn: Chinese Introduction to TeX and LaTeX.
125lshort-chinese: Introduction to LaTeX, in Chinese.
126texlive-zh-cn: TeX Live manual (Chinese)
127xpinyin: Automatically add pinyin to Chinese characters.
128zhmetrics: TFM subfont files for using Chinese fonts in 8-bit TeX.
129zhnumber: Typeset Chinese representations of numbers.
130zhspacing: Spacing for mixed CJK-English documents in XeTeX.
131
132%package doc
133Summary: TeX Live: Documentation files of %{name}
134Group: Applications/Publishing
135Requires: %{name} = %{version}-%{release}
136
137%description doc
138This package contains documentation files of %{name}.
139
140%prep
141%setup -c -n %{name}-%{version}
142%__tar -xvf %{SOURCE1}
143%__tar -xvf %{SOURCE2}
144%__tar -xvf %{SOURCE3}
145%__tar -xvf %{SOURCE4}
146%__tar -xvf %{SOURCE5}
147%__tar -xvf %{SOURCE6}
148%__tar -xvf %{SOURCE7}
149%__tar -xvf %{SOURCE8}
150%__tar -xvf %{SOURCE9}
151%__tar -xvf %{SOURCE10}
152%__tar -xvf %{SOURCE11}
153%__tar -xvf %{SOURCE12}
154%__tar -xvf %{SOURCE13}
155%__tar -xvf %{SOURCE14}
156%__tar -xvf %{SOURCE15}
157%__tar -xvf %{SOURCE16}
158%__tar -xvf %{SOURCE17}
159%__tar -xvf %{SOURCE18}
160%__tar -xvf %{SOURCE19}
161%__tar -xvf %{SOURCE20}
162%__tar -xvf %{SOURCE21}
163%__tar -xvf %{SOURCE22}
164%__tar -xvf %{SOURCE23}
165%__tar -xvf %{SOURCE24}
166%__tar -xvf %{SOURCE25}
167%__tar -xvf %{SOURCE26}
168%__tar -xvf %{SOURCE27}
169%__tar -xvf %{SOURCE28}
170%__tar -xvf %{SOURCE29}
171%__tar -xvf %{SOURCE30}
172%__tar -xvf %{SOURCE31}
173%__tar -xvf %{SOURCE32}
174%__tar -xvf %{SOURCE33}
175
176%build
177
178%install
179[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
180
181%__mkdir_p %{buildroot}%{_datadir}
182
183## move texmf-dist to /usr/share/texmf-dist
184[ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
185
186## move texmf to /usr/share/texmf
187[ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
188
189## move tlpkg to /usr/share/tlpkg
190[ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
191
192## move all non-arch binaries to /usr/bin
193[ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
194
195## move others into /usr/share/texmf-dist
196%__mkdir_p %{buildroot}%{_tl_texmfdist}
197%__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
198%__rm -rf * ||:
199
200
201## remove duplicated files between texlive and texlive-collection-*
202## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
203## remove unpacked files
204x=(
205# scripts/texlive/tlmgr.pl
206# scripts/texlive/updmap.pl
207# scripts/fontools/autoinst
208# scripts/glossaries/makeglossaries
209# scripts/m-tx/m-tx.lua
210# scripts/musixtex/musixtex.lua
211# scripts/pmx/pmx2pdf.lua
212# scripts/latexmk/latexmk.pl
213# scripts/jfontmaps/kanji-config-updmap.pl
214# scripts/jfontmaps/kanji-fontmap-creator.pl
215# scripts/latexpand/latexpand
216# scripts/epstopdf/epstopdf.pl
217# scripts/convbkmk/convbkmk.rb
218# scripts/jfontmaps/kanji-config-updmap-sys.sh
219# scripts/luaotfload/luaotfload-tool.lua
220# texconfig/tcfmgr
221# texconfig/tcfmgr.map
222# web2c/fmtutil.cnf
223# web2c/mktex.opt
224# web2c/mktexdir
225# web2c/mktexdir.opt
226# web2c/mktexnam
227# web2c/mktexnam.opt
228# web2c/mktexupd
229# web2c/texmf.cnf
230# web2c/updmap.cfg
231# web2c/updmap-hdr.cfg
232# doc/chktex/ChkTeX.pdf
233install-tl
234)
235if [ -d %{buildroot}%{_tl_texmfdist} ]; then
236pushd %{buildroot}%{_tl_texmfdist}
237%__rm -f ${x[@]} ||:
238popd
239fi
240
241## Files list
242find %{buildroot} -type f -or -type l | \
243    %__sed -e "s|%{buildroot}||g" > filelist.full
244
245find %{buildroot}%{_tl_texmfdist} -type d | \
246    %__sed -e "s|^%{buildroot}|%dir |" \
247           -e "s|$|/|"             >> filelist.full
248
249## subpackages
250grep "/texmf-dist/doc/" filelist.full > filelist.doc
251cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
252%__mv -f filelist.tmp filelist.full
253
254%clean
255%__rm -rf %{buildroot}
256
257%post
258%_tl_touch_run texhash
259%_tl_touch_run mtxrun
260
261[ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
262
263    %_tl_enable_map Map bkaiu.map
264    %_tl_enable_map Map bsmiu.map
265    %_tl_enable_map Map gbsnu.map
266    %_tl_enable_map Map gkaiu.map
267
268%_tl_touch_run fmtutil
269
270exit 0
271
272
273%postun
274if [ "$1" = 0 ]; then
275    %_tl_touch_run texhash
276
277    [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
278
279    %_tl_disable_map bkaiu.map
280    %_tl_disable_map bsmiu.map
281    %_tl_disable_map gbsnu.map
282    %_tl_disable_map gkaiu.map
283
284fi
285
286exit 0
287
288%posttrans
289%{_tl_exec_texhash}
290%{_tl_exec_mtxrun}
291%{_tl_exec_updmap}
292%{_tl_exec_fmtutil}
293exit 0
294
295
296%files -f filelist.full
297%defattr(-,root,root,-)
298
299%files -f filelist.doc doc
300%defattr(-,root,root,-)
301
302%changelog
303* Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
304- TLNET 20140524
Note: See TracBrowser for help on using the repository browser.