texlive-collection-langchinese-vl.spec 8.5 KB

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