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

Revision 9034, 8.5 KB checked in by munepi, 10 years ago (diff)

synced tlnet to 20141028

Line 
1## -*- coding: utf-8-unix -*-
2## NOTE: This spec file is generated by tlpdb2rpmspec 2014-3:
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: 3%{?_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=(
205scripts/epstopdf/epstopdf.pl
206scripts/texlive/fmtutil.sh
207texconfig/tcfmgr
208web2c/texmf.cnf
209web2c/updmap-hdr.cfg
210web2c/updmap.cfg
211install-tl
212)
213if [ -d %{buildroot}%{_tl_texmfdist} ]; then
214pushd %{buildroot}%{_tl_texmfdist}
215%__rm -f ${x[@]} ||:
216popd
217fi
218
219## Files list
220find %{buildroot} -type f -or -type l | \
221    %__sed -e "s|%{buildroot}||g" > filelist.full
222
223find %{buildroot}%{_tl_texmfdist} -type d | \
224    %__sed -e "s|^%{buildroot}|%dir |" \
225           -e "s|$|/|"             >> filelist.full
226
227## subpackages
228grep "/texmf-dist/doc/" filelist.full > filelist.doc
229cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
230%__mv -f filelist.tmp filelist.full
231
232%clean
233%__rm -rf %{buildroot}
234
235%post
236%_tl_touch_run texhash
237%_tl_touch_run mtxrun
238
239[ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
240
241    %_tl_enable_map Map bkaiu.map
242    %_tl_enable_map Map bsmiu.map
243    %_tl_enable_map Map gbsnu.map
244    %_tl_enable_map Map gkaiu.map
245
246%_tl_touch_run fmtutil
247
248exit 0
249
250
251%postun
252if [ "$1" = 0 ]; then
253    %_tl_touch_run texhash
254
255    [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
256
257    %_tl_disable_map bkaiu.map
258    %_tl_disable_map bsmiu.map
259    %_tl_disable_map gbsnu.map
260    %_tl_disable_map gkaiu.map
261
262fi
263
264exit 0
265
266%posttrans
267%{_tl_exec_texhash}
268%{_tl_exec_mtxrun}
269%{_tl_exec_updmap}
270%{_tl_exec_fmtutil}
271exit 0
272
273
274%files -f filelist.full
275%defattr(-,root,root,-)
276
277%files -f filelist.doc doc
278%defattr(-,root,root,-)
279
280%changelog
281* Tue Oct 28 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-3
282- synced tlnet to 20141028
283
284* Sun Jul  6 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-2
285- synced tlnet to 20140706
286
287* Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
288- synced tlnet to 20140524
Note: See TracBrowser for help on using the repository browser.