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 | |
---|
9 | Summary: TeX Live: Chinese |
---|
10 | Summary(ja): TeX Live: Chinese |
---|
11 | Name: texlive-collection-langchinese |
---|
12 | Version: 2014 |
---|
13 | Release: 1%{?_dist_release} |
---|
14 | License: Freely redistributable without restriction, GPL+, LPPL, LGPLv2+, GFDL, LPPL 1.3 |
---|
15 | Group: Applications/Publishing |
---|
16 | URL:http://www.tug.org/texlive/ |
---|
17 | |
---|
18 | Source0: arphic.doc.tar.xz |
---|
19 | Source1: arphic.tar.xz |
---|
20 | Source2: asymptote-by-example-zh-cn.doc.tar.xz |
---|
21 | Source3: asymptote-by-example-zh-cn.tar.xz |
---|
22 | Source4: asymptote-faq-zh-cn.doc.tar.xz |
---|
23 | Source5: asymptote-faq-zh-cn.tar.xz |
---|
24 | Source6: asymptote-manual-zh-cn.doc.tar.xz |
---|
25 | Source7: asymptote-manual-zh-cn.tar.xz |
---|
26 | Source8: cns.doc.tar.xz |
---|
27 | Source9: cns.tar.xz |
---|
28 | Source10: ctex.doc.tar.xz |
---|
29 | Source11: ctex.tar.xz |
---|
30 | Source12: ctex-faq.doc.tar.xz |
---|
31 | Source13: ctex-faq.tar.xz |
---|
32 | Source14: fandol.doc.tar.xz |
---|
33 | Source15: fandol.tar.xz |
---|
34 | Source16: hyphen-chinese.tar.xz |
---|
35 | Source17: latex-notes-zh-cn.doc.tar.xz |
---|
36 | Source18: latex-notes-zh-cn.tar.xz |
---|
37 | Source19: lshort-chinese.doc.tar.xz |
---|
38 | Source20: lshort-chinese.tar.xz |
---|
39 | Source21: texlive-zh-cn.doc.tar.xz |
---|
40 | Source22: texlive-zh-cn.tar.xz |
---|
41 | Source23: xpinyin.doc.tar.xz |
---|
42 | Source24: xpinyin.source.tar.xz |
---|
43 | Source25: xpinyin.tar.xz |
---|
44 | Source26: zhmetrics.doc.tar.xz |
---|
45 | Source27: zhmetrics.source.tar.xz |
---|
46 | Source28: zhmetrics.tar.xz |
---|
47 | Source29: zhnumber.doc.tar.xz |
---|
48 | Source30: zhnumber.source.tar.xz |
---|
49 | Source31: zhnumber.tar.xz |
---|
50 | Source32: zhspacing.doc.tar.xz |
---|
51 | Source33: zhspacing.tar.xz |
---|
52 | |
---|
53 | Requires: texlive = %{version} |
---|
54 | Requires: texlive-collection-langcjk = %{version} |
---|
55 | |
---|
56 | Requires(post): texlive = %{version} |
---|
57 | Requires(postun): texlive = %{version} |
---|
58 | |
---|
59 | BuildArch: noarch |
---|
60 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
61 | |
---|
62 | Vendor: Project Vine |
---|
63 | Distribution: Vine Linux |
---|
64 | Packager: munepi |
---|
65 | |
---|
66 | %description |
---|
67 | The TeX Live software distribution offers a complete TeX system for a |
---|
68 | variety of Unix, Macintosh, Windows and other platforms. It |
---|
69 | encompasses programs for editing, typesetting, previewing and printing |
---|
70 | of TeX documents in many different languages, and a large collection |
---|
71 | of TeX macros and font libraries. |
---|
72 | |
---|
73 | The distribution includes extensive general documentation about TeX, |
---|
74 | as well as the documentation for the included software packages. |
---|
75 | |
---|
76 | This package is a collection of Chinese: |
---|
77 | Support for Chinese; additional packages in collection-langcjk. |
---|
78 | |
---|
79 | This package contains the following CTAN packages: |
---|
80 | arphic: Arphic (Chinese) font packages. |
---|
81 | asymptote-by-example-zh-cn: Asymptote by example. |
---|
82 | asymptote-faq-zh-cn: Asymptote FAQ (Chinese translation). |
---|
83 | asymptote-manual-zh-cn: A Chinese translation of the asymptote manual. |
---|
84 | cns: |
---|
85 | ctex: LaTeX classes and packages for Chinese typesetting. |
---|
86 | ctex-faq: LaTeX FAQ by the Chinese TeX Society (ctex.org). |
---|
87 | fandol: Four basic fonts for Chinese typesetting. |
---|
88 | hyphen-chinese: Chinese pinyin hyphenation patterns. |
---|
89 | latex-notes-zh-cn: Chinese Introduction to TeX and LaTeX. |
---|
90 | lshort-chinese: Introduction to LaTeX, in Chinese. |
---|
91 | texlive-zh-cn: TeX Live manual (Chinese) |
---|
92 | xpinyin: Automatically add pinyin to Chinese characters. |
---|
93 | zhmetrics: TFM subfont files for using Chinese fonts in 8-bit TeX. |
---|
94 | zhnumber: Typeset Chinese representations of numbers. |
---|
95 | zhspacing: Spacing for mixed CJK-English documents in XeTeX. |
---|
96 | |
---|
97 | %description -l ja |
---|
98 | TeX Live ソフトウェアディストリビューションは、 |
---|
99 | さまざまな Unix, Macintosh, Windows、および |
---|
100 | 他のプラットホームに対して完全な TeX システムを提供します。 |
---|
101 | 多くの異なった言語を含む TeX ドキュメントの |
---|
102 | 編集、組版、閲覧、印刷するためのプログラム、 |
---|
103 | そして、TeX マクロやフォントライブラリの大きなコレクションを |
---|
104 | 同梱しています。 |
---|
105 | |
---|
106 | このディストリビューションは |
---|
107 | 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、 |
---|
108 | TeX に関するたくさんの一般的なドキュメントを含んでいます。 |
---|
109 | |
---|
110 | このパッケージは以下のようなパッケージ集です。 |
---|
111 | Chinese: |
---|
112 | Support for Chinese; additional packages in collection-langcjk. |
---|
113 | |
---|
114 | このパッケージは以下の CTAN パッケージを含んでいます: |
---|
115 | arphic: Arphic (Chinese) font packages. |
---|
116 | asymptote-by-example-zh-cn: Asymptote by example. |
---|
117 | asymptote-faq-zh-cn: Asymptote FAQ (Chinese translation). |
---|
118 | asymptote-manual-zh-cn: A Chinese translation of the asymptote manual. |
---|
119 | cns: |
---|
120 | ctex: LaTeX classes and packages for Chinese typesetting. |
---|
121 | ctex-faq: LaTeX FAQ by the Chinese TeX Society (ctex.org). |
---|
122 | fandol: Four basic fonts for Chinese typesetting. |
---|
123 | hyphen-chinese: Chinese pinyin hyphenation patterns. |
---|
124 | latex-notes-zh-cn: Chinese Introduction to TeX and LaTeX. |
---|
125 | lshort-chinese: Introduction to LaTeX, in Chinese. |
---|
126 | texlive-zh-cn: TeX Live manual (Chinese) |
---|
127 | xpinyin: Automatically add pinyin to Chinese characters. |
---|
128 | zhmetrics: TFM subfont files for using Chinese fonts in 8-bit TeX. |
---|
129 | zhnumber: Typeset Chinese representations of numbers. |
---|
130 | zhspacing: Spacing for mixed CJK-English documents in XeTeX. |
---|
131 | |
---|
132 | %package doc |
---|
133 | Summary: TeX Live: Documentation files of %{name} |
---|
134 | Group: Applications/Publishing |
---|
135 | Requires: %{name} = %{version}-%{release} |
---|
136 | |
---|
137 | %description doc |
---|
138 | This 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 |
---|
204 | x=( |
---|
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 |
---|
233 | install-tl |
---|
234 | ) |
---|
235 | if [ -d %{buildroot}%{_tl_texmfdist} ]; then |
---|
236 | pushd %{buildroot}%{_tl_texmfdist} |
---|
237 | %__rm -f ${x[@]} ||: |
---|
238 | popd |
---|
239 | fi |
---|
240 | |
---|
241 | ## Files list |
---|
242 | find %{buildroot} -type f -or -type l | \ |
---|
243 | %__sed -e "s|%{buildroot}||g" > filelist.full |
---|
244 | |
---|
245 | find %{buildroot}%{_tl_texmfdist} -type d | \ |
---|
246 | %__sed -e "s|^%{buildroot}|%dir |" \ |
---|
247 | -e "s|$|/|" >> filelist.full |
---|
248 | |
---|
249 | ## subpackages |
---|
250 | grep "/texmf-dist/doc/" filelist.full > filelist.doc |
---|
251 | cat 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 | |
---|
270 | exit 0 |
---|
271 | |
---|
272 | |
---|
273 | %postun |
---|
274 | if [ "$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 | |
---|
284 | fi |
---|
285 | |
---|
286 | exit 0 |
---|
287 | |
---|
288 | %posttrans |
---|
289 | %{_tl_exec_texhash} |
---|
290 | %{_tl_exec_mtxrun} |
---|
291 | %{_tl_exec_updmap} |
---|
292 | %{_tl_exec_fmtutil} |
---|
293 | exit 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 |
---|