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

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