texlive-collection-langindic-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2014-1:
  3. ## tlpdb2rpmspec collection-langindic
  4. %global _use_internal_dependency_generator 0
  5. %global __find_provides %{nil}
  6. %global __find_requires %{nil}
  7. Summary: TeX Live: Indic scripts
  8. Summary(ja): TeX Live: Indic scripts
  9. Name: texlive-collection-langindic
  10. Version: 2014
  11. Release: 1%{?_dist_release}
  12. License: LPPL, GPL+, Public Domain, GPLv2+
  13. Group: Applications/Publishing
  14. URL:http://www.tug.org/texlive/
  15. Source0: bangtex.doc.tar.xz
  16. Source1: bangtex.tar.xz
  17. Source2: bengali.doc.tar.xz
  18. Source3: bengali.source.tar.xz
  19. Source4: bengali.tar.xz
  20. Source5: burmese.doc.tar.xz
  21. Source6: burmese.source.tar.xz
  22. Source7: burmese.tar.xz
  23. Source8: devnag.tar.xz
  24. Source9: ebong.doc.tar.xz
  25. Source10: ebong.tar.xz
  26. Source11: hyphen-indic.tar.xz
  27. Source12: hyphen-sanskrit.tar.xz
  28. Source13: sanskrit.doc.tar.xz
  29. Source14: sanskrit.source.tar.xz
  30. Source15: sanskrit.tar.xz
  31. Source16: velthuis.doc.tar.xz
  32. Source17: velthuis.tar.xz
  33. Source18: wnri.doc.tar.xz
  34. Source19: wnri.tar.xz
  35. Source20: wnri-latex.doc.tar.xz
  36. Source21: wnri-latex.source.tar.xz
  37. Source22: wnri-latex.tar.xz
  38. Source23: xetex-devanagari.doc.tar.xz
  39. Source24: xetex-devanagari.tar.xz
  40. Requires: texlive = %{version}
  41. Requires: texlive-collection-basic = %{version}
  42. Requires(post): texlive = %{version}
  43. Requires(postun): texlive = %{version}
  44. BuildArch: noarch
  45. Buildroot: %{_tmppath}/%{name}-%{version}-root
  46. Vendor: Project Vine
  47. Distribution: Vine Linux
  48. Packager: munepi
  49. %description
  50. The TeX Live software distribution offers a complete TeX system for a
  51. variety of Unix, Macintosh, Windows and other platforms. It
  52. encompasses programs for editing, typesetting, previewing and printing
  53. of TeX documents in many different languages, and a large collection
  54. of TeX macros and font libraries.
  55. The distribution includes extensive general documentation about TeX,
  56. as well as the documentation for the included software packages.
  57. This package is a collection of Indic scripts:
  58. Support for Indic scripts.
  59. This package contains the following CTAN packages:
  60. bangtex: Writing Bangla and Assamese with LaTeX.
  61. bengali: Support for the Bengali language.
  62. burmese: Basic Support for Writing Burmese.
  63. devnag: Typeset Devanagari.
  64. ebong: Utility for writing Bengali in Rapid Roman Format.
  65. hyphen-indic: Indic hyphenation patterns.
  66. hyphen-sanskrit: Sanskrit hyphenation patterns.
  67. sanskrit: Sanskrit support.
  68. velthuis: Typeset Devanagari.
  69. wnri: Ridgeway's fonts.
  70. wnri-latex: LaTeX support for wnri fonts.
  71. xetex-devanagari: XeTeX input map for Unicode Devanagari.
  72. %description -l ja
  73. TeX Live ソフトウェアディストリビューションは、
  74. さまざまな Unix, Macintosh, Windows、および
  75. 他のプラットホームに対して完全な TeX システムを提供します。
  76. 多くの異なった言語を含む TeX ドキュメントの
  77. 編集、組版、閲覧、印刷するためのプログラム、
  78. そして、TeX マクロやフォントライブラリの大きなコレクションを
  79. 同梱しています。
  80. このディストリビューションは
  81. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  82. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  83. このパッケージは以下のようなパッケージ集です。
  84. Indic scripts:
  85. Support for Indic scripts.
  86. このパッケージは以下の CTAN パッケージを含んでいます:
  87. bangtex: Writing Bangla and Assamese with LaTeX.
  88. bengali: Support for the Bengali language.
  89. burmese: Basic Support for Writing Burmese.
  90. devnag: Typeset Devanagari.
  91. ebong: Utility for writing Bengali in Rapid Roman Format.
  92. hyphen-indic: Indic hyphenation patterns.
  93. hyphen-sanskrit: Sanskrit hyphenation patterns.
  94. sanskrit: Sanskrit support.
  95. velthuis: Typeset Devanagari.
  96. wnri: Ridgeway's fonts.
  97. wnri-latex: LaTeX support for wnri fonts.
  98. xetex-devanagari: XeTeX input map for Unicode Devanagari.
  99. %package doc
  100. Summary: TeX Live: Documentation files of %{name}
  101. Group: Applications/Publishing
  102. Requires: %{name} = %{version}-%{release}
  103. %description doc
  104. This package contains documentation files of %{name}.
  105. %prep
  106. %setup -c -n %{name}-%{version}
  107. %__tar -xvf %{SOURCE1}
  108. %__tar -xvf %{SOURCE2}
  109. %__tar -xvf %{SOURCE3}
  110. %__tar -xvf %{SOURCE4}
  111. %__tar -xvf %{SOURCE5}
  112. %__tar -xvf %{SOURCE6}
  113. %__tar -xvf %{SOURCE7}
  114. %__tar -xvf %{SOURCE8}
  115. %__tar -xvf %{SOURCE9}
  116. %__tar -xvf %{SOURCE10}
  117. %__tar -xvf %{SOURCE11}
  118. %__tar -xvf %{SOURCE12}
  119. %__tar -xvf %{SOURCE13}
  120. %__tar -xvf %{SOURCE14}
  121. %__tar -xvf %{SOURCE15}
  122. %__tar -xvf %{SOURCE16}
  123. %__tar -xvf %{SOURCE17}
  124. %__tar -xvf %{SOURCE18}
  125. %__tar -xvf %{SOURCE19}
  126. %__tar -xvf %{SOURCE20}
  127. %__tar -xvf %{SOURCE21}
  128. %__tar -xvf %{SOURCE22}
  129. %__tar -xvf %{SOURCE23}
  130. %__tar -xvf %{SOURCE24}
  131. %build
  132. %install
  133. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  134. %__mkdir_p %{buildroot}%{_datadir}
  135. ## move texmf-dist to /usr/share/texmf-dist
  136. [ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
  137. ## move texmf to /usr/share/texmf
  138. [ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
  139. ## move tlpkg to /usr/share/tlpkg
  140. [ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
  141. ## move all non-arch binaries to /usr/bin
  142. [ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
  143. ## move others into /usr/share/texmf-dist
  144. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  145. %__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
  146. %__rm -rf * ||:
  147. ## remove duplicated files between texlive and texlive-collection-*
  148. ## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
  149. ## remove unpacked files
  150. x=(
  151. # scripts/texlive/tlmgr.pl
  152. # scripts/texlive/updmap.pl
  153. # scripts/fontools/autoinst
  154. # scripts/glossaries/makeglossaries
  155. # scripts/m-tx/m-tx.lua
  156. # scripts/musixtex/musixtex.lua
  157. # scripts/pmx/pmx2pdf.lua
  158. # scripts/latexmk/latexmk.pl
  159. # scripts/jfontmaps/kanji-config-updmap.pl
  160. # scripts/jfontmaps/kanji-fontmap-creator.pl
  161. # scripts/latexpand/latexpand
  162. # scripts/epstopdf/epstopdf.pl
  163. # scripts/convbkmk/convbkmk.rb
  164. # scripts/jfontmaps/kanji-config-updmap-sys.sh
  165. # scripts/luaotfload/luaotfload-tool.lua
  166. # texconfig/tcfmgr
  167. # texconfig/tcfmgr.map
  168. # web2c/fmtutil.cnf
  169. # web2c/mktex.opt
  170. # web2c/mktexdir
  171. # web2c/mktexdir.opt
  172. # web2c/mktexnam
  173. # web2c/mktexnam.opt
  174. # web2c/mktexupd
  175. # web2c/texmf.cnf
  176. # web2c/updmap.cfg
  177. # web2c/updmap-hdr.cfg
  178. # doc/chktex/ChkTeX.pdf
  179. install-tl
  180. )
  181. if [ -d %{buildroot}%{_tl_texmfdist} ]; then
  182. pushd %{buildroot}%{_tl_texmfdist}
  183. %__rm -f ${x[@]} ||:
  184. popd
  185. fi
  186. ## Files list
  187. find %{buildroot} -type f -or -type l | \
  188. %__sed -e "s|%{buildroot}||g" > filelist.full
  189. find %{buildroot}%{_tl_texmfdist} -type d | \
  190. %__sed -e "s|^%{buildroot}|%dir |" \
  191. -e "s|$|/|" >> filelist.full
  192. ## subpackages
  193. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  194. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  195. %__mv -f filelist.tmp filelist.full
  196. %clean
  197. %__rm -rf %{buildroot}
  198. %post
  199. %_tl_touch_run texhash
  200. %_tl_touch_run mtxrun
  201. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  202. %_tl_enable_map Map burmese.map
  203. %_tl_enable_map Map skt.map
  204. %_tl_enable_map MixedMap dvng.map
  205. %_tl_touch_run fmtutil
  206. exit 0
  207. %postun
  208. if [ "$1" = 0 ]; then
  209. %_tl_touch_run texhash
  210. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  211. %_tl_disable_map burmese.map
  212. %_tl_disable_map skt.map
  213. %_tl_disable_map dvng.map
  214. fi
  215. exit 0
  216. %posttrans
  217. %{_tl_exec_texhash}
  218. %{_tl_exec_mtxrun}
  219. %{_tl_exec_updmap}
  220. %{_tl_exec_fmtutil}
  221. exit 0
  222. %files -f filelist.full
  223. %defattr(-,root,root,-)
  224. %files -f filelist.doc doc
  225. %defattr(-,root,root,-)
  226. %changelog
  227. * Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
  228. - TLNET 20140524