texlive-collection-langchinese-vl.spec 11 KB

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