texlive-collection-langczechslovak-vl.spec 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2013-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: 2013
  11. Release: 1%{?_dist_release}
  12. License: GPL+, LPPL, 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: cs.tar.xz
  22. Source7: csbulletin.doc.tar.xz
  23. Source8: csbulletin.tar.xz
  24. Source9: cslatex.source.tar.xz
  25. Source10: cslatex.tar.xz
  26. Source11: csplain.tar.xz
  27. Source12: cstex.doc.tar.xz
  28. Source13: cstex.tar.xz
  29. Source14: hyphen-czech.tar.xz
  30. Source15: hyphen-slovak.tar.xz
  31. Source16: vlna.doc.tar.xz
  32. Source17: vlna.tar.xz
  33. Source18: lshort-czech.doc.tar.xz
  34. Source19: lshort-czech.tar.xz
  35. Source20: lshort-slovak.doc.tar.xz
  36. Source21: lshort-slovak.tar.xz
  37. Source22: texlive-cz.doc.tar.xz
  38. Source23: texlive-cz.tar.xz
  39. Requires: texlive = %{version}
  40. Requires: texlive-collection-basic = %{version}
  41. Requires: texlive-collection-latex = %{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 Czech/Slovak:
  58. Support for Czech/Slovak.
  59. This package contains the following CTAN packages:
  60. babel-czech:
  61. babel-slovak:
  62. cs: Czech/Slovak-tuned Computer Modern fonts.
  63. csbulletin: LaTeX class for articles submitted to the CSTUG Bulletin (Zpravodaj).
  64. cslatex: LaTeX support for Czech/Slovak typesetting.
  65. csplain: Plain TeX support for Czech/Slovak typesetting.
  66. cstex: Support for Czech/Slovak languages.
  67. hyphen-czech: Czech hyphenation patterns.
  68. hyphen-slovak: Slovak hyphenation patterns.
  69. vlna:
  70. lshort-czech: Czech translation of the "Short Introduction to LaTeX2e".
  71. lshort-slovak: Slovak introduction to LaTeX.
  72. texlive-cz: TeX Live manual (Czech/Slovak)
  73. %description -l ja
  74. TeX Live ソフトウェアディストリビューションは、
  75. さまざまな Unix, Macintosh, Windows、および
  76. 他のプラットホームに対して完全な TeX システムを提供します。
  77. 多くの異なった言語を含む TeX ドキュメントの
  78. 編集、組版、閲覧、印刷するためのプログラム、
  79. そして、TeX マクロやフォントライブラリの大きなコレクションを
  80. 同梱しています。
  81. このディストリビューションは
  82. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  83. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  84. このパッケージは以下のようなパッケージ集です。
  85. Czech/Slovak:
  86. Support for Czech/Slovak.
  87. このパッケージは以下の CTAN パッケージを含んでいます:
  88. babel-czech:
  89. babel-slovak:
  90. cs: Czech/Slovak-tuned Computer Modern fonts.
  91. csbulletin: LaTeX class for articles submitted to the CSTUG Bulletin (Zpravodaj).
  92. cslatex: LaTeX support for Czech/Slovak typesetting.
  93. csplain: Plain TeX support for Czech/Slovak typesetting.
  94. cstex: Support for Czech/Slovak languages.
  95. hyphen-czech: Czech hyphenation patterns.
  96. hyphen-slovak: Slovak hyphenation patterns.
  97. vlna:
  98. lshort-czech: Czech translation of the "Short Introduction to LaTeX2e".
  99. lshort-slovak: Slovak introduction to LaTeX.
  100. texlive-cz: TeX Live manual (Czech/Slovak)
  101. %package doc
  102. Summary: TeX Live: Documentation files of %{name}
  103. Group: Applications/Publishing
  104. Requires: %{name} = %{version}-%{release}
  105. %description doc
  106. This package contains documentation files of %{name}.
  107. %prep
  108. %setup -c -n %{name}-%{version}
  109. %__tar -xvf %{SOURCE1}
  110. %__tar -xvf %{SOURCE2}
  111. %__tar -xvf %{SOURCE3}
  112. %__tar -xvf %{SOURCE4}
  113. %__tar -xvf %{SOURCE5}
  114. %__tar -xvf %{SOURCE6}
  115. %__tar -xvf %{SOURCE7}
  116. %__tar -xvf %{SOURCE8}
  117. %__tar -xvf %{SOURCE9}
  118. %__tar -xvf %{SOURCE10}
  119. %__tar -xvf %{SOURCE11}
  120. %__tar -xvf %{SOURCE12}
  121. %__tar -xvf %{SOURCE13}
  122. %__tar -xvf %{SOURCE14}
  123. %__tar -xvf %{SOURCE15}
  124. %__tar -xvf %{SOURCE16}
  125. %__tar -xvf %{SOURCE17}
  126. %__tar -xvf %{SOURCE18}
  127. %__tar -xvf %{SOURCE19}
  128. %__tar -xvf %{SOURCE20}
  129. %__tar -xvf %{SOURCE21}
  130. %__tar -xvf %{SOURCE22}
  131. %__tar -xvf %{SOURCE23}
  132. %build
  133. %install
  134. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  135. %__mkdir_p %{buildroot}%{_datadir}
  136. ## move texmf-dist to /usr/share/texmf-dist
  137. [ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
  138. ## move texmf to /usr/share/texmf
  139. [ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
  140. ## move tlpkg to /usr/share/tlpkg
  141. [ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
  142. ## move all non-arch binaries to /usr/bin
  143. [ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
  144. ## move others into /usr/share/texmf-dist
  145. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  146. %__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
  147. %__rm -rf * ||:
  148. ## remove duplicated files between texlive and texlive-collection-*
  149. ## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
  150. ## remove unpacked files
  151. x=(
  152. texconfig/tcfmgr
  153. texconfig/tcfmgr.map
  154. web2c/fmtutil.cnf
  155. web2c/mktex.opt
  156. web2c/mktexdir
  157. web2c/mktexdir.opt
  158. web2c/mktexnam
  159. web2c/mktexnam.opt
  160. web2c/mktexupd
  161. web2c/texmf.cnf
  162. web2c/updmap.cfg
  163. web2c/updmap-hdr.cfg
  164. doc/chktex/ChkTeX.pdf
  165. install-tl
  166. )
  167. if [ -d %{buildroot}%{_tl_texmfdist} ]; then
  168. pushd %{buildroot}%{_tl_texmfdist}
  169. %__rm -f ${x[@]} ||:
  170. popd
  171. fi
  172. ## Files list
  173. find %{buildroot} -type f -or -type l | \
  174. %__sed -e "s|%{buildroot}||g" > filelist.full
  175. find %{buildroot}%{_tl_texmfdist} -type d | \
  176. %__sed -e "s|^%{buildroot}|%dir |" \
  177. -e "s|$|/|" >> filelist.full
  178. ## subpackages
  179. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  180. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  181. %__mv -f filelist.tmp filelist.full
  182. %clean
  183. %__rm -rf %{buildroot}
  184. %post
  185. %_tl_touch_run texhash
  186. %_tl_touch_run mtxrun
  187. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  188. %_tl_enable_map Map cs-charter.map
  189. %_tl_enable_map Map csfonts.map
  190. %_tl_touch_run fmtutil
  191. exit 0
  192. %postun
  193. if [ "$1" = 0 ]; then
  194. %_tl_touch_run texhash
  195. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  196. %_tl_disable_map cs-charter.map
  197. %_tl_disable_map csfonts.map
  198. fi
  199. exit 0
  200. %posttrans
  201. %{_tl_exec_texhash}
  202. %{_tl_exec_mtxrun}
  203. %{_tl_exec_updmap}
  204. %{_tl_exec_fmtutil}
  205. exit 0
  206. %files -f filelist.full
  207. %defattr(-,root,root,-)
  208. %files -f filelist.doc doc
  209. %defattr(-,root,root,-)
  210. %changelog
  211. * Fri Aug 23 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-1
  212. - generated by tlpdb2rpmspec 2013-1: tlpdb2rpmspec collection-langczechslovak
  213. - TLNET 20130823
  214. * Fri Nov 23 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1
  215. - generated by tlpdb2rpmspec 2012-1: tlpdb2rpmspec collection-langczechslovak
  216. * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
  217. - generated by tlpdb2rpmspec 2011-2: tlpdb2rpmspec collection-langczechslovak
  218. - set external dependencies (texlive-collection-binextra,
  219. texlive-collection-fontutils)
  220. * Sun Oct 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
  221. - generated by tlpdb2rpmspec 2011-1: tlpdb2rpmspec collection-langczechslovak
  222. * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
  223. - generated by tlpdb2rpmspec 2009-4: tlpdb2rpmspec collection-langczechslovak
  224. - make symlinks of core script utils (texlive-collection-binextra,
  225. texlive-collection-context, texlive-collection-fontutils,
  226. texlive-collection-langgreek, texlive-collection-langindic,
  227. texlive-collection-latex, texlive-collection-latexextra,
  228. texlive-collection-latexrecommended, texlive-collection-pictures,
  229. texlive-collection-pstricks, texlive-collection-science)
  230. * Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  231. - generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-langczechslovak
  232. - improved %%post
  233. * Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  234. - generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-langczechslovak
  235. - removed arch dependent binaries (texlive-collection-latexextra)
  236. - fixed perl path
  237. - improved updmap process in %%post and %%postun
  238. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  239. - generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langczechslovak