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 | |
---|
9 | Summary: TeX Live: Chinese |
---|
10 | Summary(ja): TeX Live: Chinese |
---|
11 | Name: texlive-collection-langchinese |
---|
12 | Version: 2015 |
---|
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: impatient-cn.doc.tar.xz |
---|
36 | Source18: impatient-cn.tar.xz |
---|
37 | Source19: latex-notes-zh-cn.doc.tar.xz |
---|
38 | Source20: latex-notes-zh-cn.tar.xz |
---|
39 | Source21: lshort-chinese.doc.tar.xz |
---|
40 | Source22: lshort-chinese.tar.xz |
---|
41 | Source23: texlive-zh-cn.doc.tar.xz |
---|
42 | Source24: texlive-zh-cn.tar.xz |
---|
43 | Source25: xpinyin.doc.tar.xz |
---|
44 | Source26: xpinyin.source.tar.xz |
---|
45 | Source27: xpinyin.tar.xz |
---|
46 | Source28: zhmetrics.doc.tar.xz |
---|
47 | Source29: zhmetrics.source.tar.xz |
---|
48 | Source30: zhmetrics.tar.xz |
---|
49 | Source31: zhnumber.doc.tar.xz |
---|
50 | Source32: zhnumber.source.tar.xz |
---|
51 | Source33: zhnumber.tar.xz |
---|
52 | Source34: zhspacing.doc.tar.xz |
---|
53 | Source35: zhspacing.tar.xz |
---|
54 | |
---|
55 | Requires: texlive = %{version} |
---|
56 | Requires: texlive-collection-langcjk = %{version} |
---|
57 | |
---|
58 | Requires(post): texlive = %{version} |
---|
59 | Requires(postun): texlive = %{version} |
---|
60 | |
---|
61 | BuildArch: noarch |
---|
62 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
63 | |
---|
64 | Vendor: Project Vine |
---|
65 | Distribution: Vine Linux |
---|
66 | Packager: munepi |
---|
67 | |
---|
68 | %description |
---|
69 | The TeX Live software distribution offers a complete TeX system for a |
---|
70 | variety of Unix, Macintosh, Windows and other platforms. It |
---|
71 | encompasses programs for editing, typesetting, previewing and printing |
---|
72 | of TeX documents in many different languages, and a large collection |
---|
73 | of TeX macros and font libraries. |
---|
74 | |
---|
75 | The distribution includes extensive general documentation about TeX, |
---|
76 | as well as the documentation for the included software packages. |
---|
77 | |
---|
78 | This package is a collection of Chinese: |
---|
79 | Support for Chinese; additional packages in collection-langcjk. |
---|
80 | |
---|
81 | This package contains the following CTAN packages: |
---|
82 | arphic: Arphic (Chinese) font packages. |
---|
83 | asymptote-by-example-zh-cn: Asymptote by example. |
---|
84 | asymptote-faq-zh-cn: Asymptote FAQ (Chinese translation). |
---|
85 | asymptote-manual-zh-cn: A Chinese translation of the asymptote manual. |
---|
86 | cns: |
---|
87 | ctex: LaTeX classes and packages for Chinese typesetting. |
---|
88 | ctex-faq: LaTeX FAQ by the Chinese TeX Society (ctex.org). |
---|
89 | fandol: Four basic fonts for Chinese typesetting. |
---|
90 | hyphen-chinese: Chinese pinyin hyphenation patterns. |
---|
91 | impatient-cn: |
---|
92 | latex-notes-zh-cn: Chinese Introduction to TeX and LaTeX. |
---|
93 | lshort-chinese: Introduction to LaTeX, in Chinese. |
---|
94 | texlive-zh-cn: TeX Live manual (Chinese) |
---|
95 | xpinyin: Automatically add pinyin to Chinese characters. |
---|
96 | zhmetrics: TFM subfont files for using Chinese fonts in 8-bit TeX. |
---|
97 | zhnumber: Typeset Chinese representations of numbers. |
---|
98 | zhspacing: Spacing for mixed CJK-English documents in XeTeX. |
---|
99 | |
---|
100 | %description -l ja |
---|
101 | TeX Live ソフトウェアディストリビューションは、 |
---|
102 | さまざまな Unix, Macintosh, Windows、および |
---|
103 | 他のプラットホームに対して完全な TeX システムを提供します。 |
---|
104 | 多くの異なった言語を含む TeX ドキュメントの |
---|
105 | 編集、組版、閲覧、印刷するためのプログラム、 |
---|
106 | そして、TeX マクロやフォントライブラリの大きなコレクションを |
---|
107 | 同梱しています。 |
---|
108 | |
---|
109 | このディストリビューションは |
---|
110 | 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、 |
---|
111 | TeX に関するたくさんの一般的なドキュメントを含んでいます。 |
---|
112 | |
---|
113 | このパッケージは以下のようなパッケージ集です。 |
---|
114 | Chinese: |
---|
115 | Support for Chinese; additional packages in collection-langcjk. |
---|
116 | |
---|
117 | このパッケージは以下の CTAN パッケージを含んでいます: |
---|
118 | arphic: Arphic (Chinese) font packages. |
---|
119 | asymptote-by-example-zh-cn: Asymptote by example. |
---|
120 | asymptote-faq-zh-cn: Asymptote FAQ (Chinese translation). |
---|
121 | asymptote-manual-zh-cn: A Chinese translation of the asymptote manual. |
---|
122 | cns: |
---|
123 | ctex: LaTeX classes and packages for Chinese typesetting. |
---|
124 | ctex-faq: LaTeX FAQ by the Chinese TeX Society (ctex.org). |
---|
125 | fandol: Four basic fonts for Chinese typesetting. |
---|
126 | hyphen-chinese: Chinese pinyin hyphenation patterns. |
---|
127 | impatient-cn: |
---|
128 | latex-notes-zh-cn: Chinese Introduction to TeX and LaTeX. |
---|
129 | lshort-chinese: Introduction to LaTeX, in Chinese. |
---|
130 | texlive-zh-cn: TeX Live manual (Chinese) |
---|
131 | xpinyin: Automatically add pinyin to Chinese characters. |
---|
132 | zhmetrics: TFM subfont files for using Chinese fonts in 8-bit TeX. |
---|
133 | zhnumber: Typeset Chinese representations of numbers. |
---|
134 | zhspacing: Spacing for mixed CJK-English documents in XeTeX. |
---|
135 | |
---|
136 | %package doc |
---|
137 | Summary: TeX Live: Documentation files of %{name} |
---|
138 | Group: Applications/Publishing |
---|
139 | Requires: %{name} = %{version}-%{release} |
---|
140 | |
---|
141 | %description doc |
---|
142 | This 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 |
---|
210 | x=( |
---|
211 | scripts/texlive/texconfig-dialog.sh |
---|
212 | scripts/texlive/texconfig-sys.sh |
---|
213 | scripts/texlive/texconfig.sh |
---|
214 | scripts/texlive/texlinks.sh |
---|
215 | scripts/texlive/tlmgr.pl |
---|
216 | texconfig/tcfmgr |
---|
217 | web2c/mktex.opt |
---|
218 | web2c/mktexdir |
---|
219 | web2c/mktexdir.opt |
---|
220 | web2c/mktexnam |
---|
221 | web2c/mktexnam.opt |
---|
222 | web2c/mktexupd |
---|
223 | web2c/texmf.cnf |
---|
224 | web2c/updmap-hdr.cfg |
---|
225 | web2c/updmap.cfg |
---|
226 | ) |
---|
227 | if [ -d %{buildroot}%{_tl_texmfdist} ]; then |
---|
228 | pushd %{buildroot}%{_tl_texmfdist} |
---|
229 | %__rm -f ${x[@]} ||: |
---|
230 | popd |
---|
231 | fi |
---|
232 | |
---|
233 | ## Files list |
---|
234 | find %{buildroot} -type f -or -type l | \ |
---|
235 | %__sed -e "s|%{buildroot}||g" > filelist.full |
---|
236 | |
---|
237 | find %{buildroot}%{_tl_texmfdist} -type d | \ |
---|
238 | %__sed -e "s|^%{buildroot}|%dir |" \ |
---|
239 | -e "s|$|/|" >> filelist.full |
---|
240 | |
---|
241 | ## subpackages |
---|
242 | grep "/texmf-dist/doc/" filelist.full > filelist.doc |
---|
243 | cat 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 | |
---|
262 | exit 0 |
---|
263 | |
---|
264 | |
---|
265 | %postun |
---|
266 | if [ "$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 | |
---|
276 | fi |
---|
277 | |
---|
278 | exit 0 |
---|
279 | |
---|
280 | %posttrans |
---|
281 | %{_tl_exec_texhash} |
---|
282 | %{_tl_exec_mtxrun} |
---|
283 | %{_tl_exec_updmap} |
---|
284 | %{_tl_exec_fmtutil} |
---|
285 | exit 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 | |
---|