texlive-collection-langcjk-vl.spec 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2014-3:
  3. ## tlpdb2rpmspec collection-langcjk
  4. %global _use_internal_dependency_generator 0
  5. %global __find_provides %{nil}
  6. %global __find_requires %{nil}
  7. Summary: TeX Live: Chinese/Japanese/Korean (base)
  8. Summary(ja): TeX Live: Chinese/Japanese/Korean (base)
  9. Name: texlive-collection-langcjk
  10. Version: 2014
  11. Release: 3%{?_dist_release}
  12. License: BSD, GPL+, LPPL, LPPL 1.3, Freely redistributable without restriction
  13. Group: Applications/Publishing
  14. URL:http://www.tug.org/texlive/
  15. Source0: adobemapping.tar.xz
  16. Source1: c90.doc.tar.xz
  17. Source2: c90.source.tar.xz
  18. Source3: c90.tar.xz
  19. Source4: cjk.doc.tar.xz
  20. Source5: cjk.source.tar.xz
  21. Source6: cjk.tar.xz
  22. Source7: cjkpunct.doc.tar.xz
  23. Source8: cjkpunct.source.tar.xz
  24. Source9: cjkpunct.tar.xz
  25. Source10: cjkutils.doc.tar.xz
  26. Source11: cjkutils.tar.xz
  27. Source12: dnp.tar.xz
  28. Source13: garuda-c90.source.tar.xz
  29. Source14: garuda-c90.tar.xz
  30. Source15: norasi-c90.source.tar.xz
  31. Source16: norasi-c90.tar.xz
  32. Source17: xcjk2uni.doc.tar.xz
  33. Source18: xcjk2uni.source.tar.xz
  34. Source19: xcjk2uni.tar.xz
  35. Source20: zxjafont.doc.tar.xz
  36. Source21: zxjafont.tar.xz
  37. Requires: texlive = %{version}
  38. Requires: texlive-collection-basic = %{version}
  39. Requires(post): texlive = %{version}
  40. Requires(postun): texlive = %{version}
  41. BuildArch: noarch
  42. Buildroot: %{_tmppath}/%{name}-%{version}-root
  43. Vendor: Project Vine
  44. Distribution: Vine Linux
  45. Packager: munepi
  46. %description
  47. The TeX Live software distribution offers a complete TeX system for a
  48. variety of Unix, Macintosh, Windows and other platforms. It
  49. encompasses programs for editing, typesetting, previewing and printing
  50. of TeX documents in many different languages, and a large collection
  51. of TeX macros and font libraries.
  52. The distribution includes extensive general documentation about TeX,
  53. as well as the documentation for the included software packages.
  54. This package is a collection of Chinese/Japanese/Korean (base):
  55. Packages supporting a combination of Chinese, Japanese, Korean,
  56. including macros, fonts, documentation. Also Thai in the c90
  57. encoding, since there is some overlap in those fonts; standard
  58. Thai support is in collection-langother. Additional packages
  59. for CJK are in their individual language collections.
  60. This package contains the following CTAN packages:
  61. adobemapping: Adobe cmap and pdfmapping files
  62. c90:
  63. cjk: CJK language support.
  64. cjkpunct: Adjust locations and kerning of CJK punctuation marks.
  65. cjkutils:
  66. dnp:
  67. garuda-c90: TeX support (from CJK) for the garuda font
  68. norasi-c90: TeX support (from CJK) for the norasi font
  69. xcjk2uni: Convert CJK characters to Unicode, in pdfTeX.
  70. zxjafont: Set up Japanese font families for XeLaTeX.
  71. %description -l ja
  72. TeX Live ソフトウェアディストリビューションは、
  73. さまざまな Unix, Macintosh, Windows、および
  74. 他のプラットホームに対して完全な TeX システムを提供します。
  75. 多くの異なった言語を含む TeX ドキュメントの
  76. 編集、組版、閲覧、印刷するためのプログラム、
  77. そして、TeX マクロやフォントライブラリの大きなコレクションを
  78. 同梱しています。
  79. このディストリビューションは
  80. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  81. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  82. このパッケージは以下のようなパッケージ集です。
  83. Chinese/Japanese/Korean (base):
  84. Packages supporting a combination of Chinese, Japanese, Korean,
  85. including macros, fonts, documentation. Also Thai in the c90
  86. encoding, since there is some overlap in those fonts; standard
  87. Thai support is in collection-langother. Additional packages
  88. for CJK are in their individual language collections.
  89. このパッケージは以下の CTAN パッケージを含んでいます:
  90. adobemapping: Adobe cmap and pdfmapping files
  91. c90:
  92. cjk: CJK language support.
  93. cjkpunct: Adjust locations and kerning of CJK punctuation marks.
  94. cjkutils:
  95. dnp:
  96. garuda-c90: TeX support (from CJK) for the garuda font
  97. norasi-c90: TeX support (from CJK) for the norasi font
  98. xcjk2uni: Convert CJK characters to Unicode, in pdfTeX.
  99. zxjafont: Set up Japanese font families for XeLaTeX.
  100. %package doc
  101. Summary: TeX Live: Documentation files of %{name}
  102. Group: Applications/Publishing
  103. Requires: %{name} = %{version}-%{release}
  104. %description doc
  105. This package contains documentation files of %{name}.
  106. %prep
  107. %setup -c -n %{name}-%{version}
  108. %__tar -xvf %{SOURCE1}
  109. %__tar -xvf %{SOURCE2}
  110. %__tar -xvf %{SOURCE3}
  111. %__tar -xvf %{SOURCE4}
  112. %__tar -xvf %{SOURCE5}
  113. %__tar -xvf %{SOURCE6}
  114. %__tar -xvf %{SOURCE7}
  115. %__tar -xvf %{SOURCE8}
  116. %__tar -xvf %{SOURCE9}
  117. %__tar -xvf %{SOURCE10}
  118. %__tar -xvf %{SOURCE11}
  119. %__tar -xvf %{SOURCE12}
  120. %__tar -xvf %{SOURCE13}
  121. %__tar -xvf %{SOURCE14}
  122. %__tar -xvf %{SOURCE15}
  123. %__tar -xvf %{SOURCE16}
  124. %__tar -xvf %{SOURCE17}
  125. %__tar -xvf %{SOURCE18}
  126. %__tar -xvf %{SOURCE19}
  127. %__tar -xvf %{SOURCE20}
  128. %__tar -xvf %{SOURCE21}
  129. %build
  130. %install
  131. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  132. %__mkdir_p %{buildroot}%{_datadir}
  133. ## move texmf-dist to /usr/share/texmf-dist
  134. [ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
  135. ## move texmf to /usr/share/texmf
  136. [ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
  137. ## move tlpkg to /usr/share/tlpkg
  138. [ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
  139. ## move all non-arch binaries to /usr/bin
  140. [ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
  141. ## move others into /usr/share/texmf-dist
  142. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  143. %__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
  144. %__rm -rf * ||:
  145. ## remove duplicated files between texlive and texlive-collection-*
  146. ## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
  147. ## remove unpacked files
  148. x=(
  149. scripts/epstopdf/epstopdf.pl
  150. scripts/texlive/fmtutil.sh
  151. texconfig/tcfmgr
  152. web2c/texmf.cnf
  153. web2c/updmap-hdr.cfg
  154. web2c/updmap.cfg
  155. install-tl
  156. )
  157. if [ -d %{buildroot}%{_tl_texmfdist} ]; then
  158. pushd %{buildroot}%{_tl_texmfdist}
  159. %__rm -f ${x[@]} ||:
  160. popd
  161. fi
  162. ## Files list
  163. find %{buildroot} -type f -or -type l | \
  164. %__sed -e "s|%{buildroot}||g" > filelist.full
  165. find %{buildroot}%{_tl_texmfdist} -type d | \
  166. %__sed -e "s|^%{buildroot}|%dir |" \
  167. -e "s|$|/|" >> filelist.full
  168. ## subpackages
  169. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  170. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  171. %__mv -f filelist.tmp filelist.full
  172. %clean
  173. %__rm -rf %{buildroot}
  174. %post
  175. %_tl_touch_run texhash
  176. %_tl_touch_run mtxrun
  177. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  178. %_tl_enable_map Map garuda-c90.map
  179. %_tl_enable_map Map norasi-c90.map
  180. exit 0
  181. %postun
  182. if [ "$1" = 0 ]; then
  183. %_tl_touch_run texhash
  184. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  185. %_tl_disable_map garuda-c90.map
  186. %_tl_disable_map norasi-c90.map
  187. fi
  188. exit 0
  189. %posttrans
  190. %{_tl_exec_texhash}
  191. %{_tl_exec_mtxrun}
  192. %{_tl_exec_updmap}
  193. %{_tl_exec_fmtutil}
  194. exit 0
  195. %files -f filelist.full
  196. %defattr(-,root,root,-)
  197. %files -f filelist.doc doc
  198. %defattr(-,root,root,-)
  199. %changelog
  200. * Tue Oct 28 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-3
  201. - synced tlnet to 20141028
  202. * Sun Jul 6 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-2
  203. - synced tlnet to 20140706
  204. * Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
  205. - synced tlnet to 20140524