texlive-collection-langczechslovak-vl.spec 8.0 KB

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