texlive-collection-genericrecommended-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2014-1:
  3. ## tlpdb2rpmspec collection-genericrecommended
  4. %global _use_internal_dependency_generator 0
  5. %global __find_provides %{nil}
  6. %global __find_requires %{nil}
  7. Summary: TeX Live: Generic recommended packages
  8. Summary(ja): TeX Live: Generic recommended packages
  9. Name: texlive-collection-genericrecommended
  10. Version: 2014
  11. Release: 1%{?_dist_release}
  12. License: Public Domain, GPL+, Freely redistributable without restriction, LPPL
  13. Group: Applications/Publishing
  14. URL:http://www.tug.org/texlive/
  15. Source0: epsf.doc.tar.xz
  16. Source1: epsf.tar.xz
  17. Source2: fontname.doc.tar.xz
  18. Source3: fontname.tar.xz
  19. Source4: genmisc.tar.xz
  20. Source5: kastrup.doc.tar.xz
  21. Source6: kastrup.source.tar.xz
  22. Source7: kastrup.tar.xz
  23. Source8: multido.doc.tar.xz
  24. Source9: multido.source.tar.xz
  25. Source10: multido.tar.xz
  26. Source11: path.doc.tar.xz
  27. Source12: path.tar.xz
  28. Source13: tex-ps.doc.tar.xz
  29. Source14: tex-ps.tar.xz
  30. Source15: ulem.doc.tar.xz
  31. Source16: ulem.tar.xz
  32. Requires: texlive = %{version}
  33. Requires: texlive-collection-basic = %{version}
  34. Requires(post): texlive = %{version}
  35. Requires(postun): texlive = %{version}
  36. BuildArch: noarch
  37. Buildroot: %{_tmppath}/%{name}-%{version}-root
  38. Vendor: Project Vine
  39. Distribution: Vine Linux
  40. Packager: munepi
  41. %description
  42. The TeX Live software distribution offers a complete TeX system for a
  43. variety of Unix, Macintosh, Windows and other platforms. It
  44. encompasses programs for editing, typesetting, previewing and printing
  45. of TeX documents in many different languages, and a large collection
  46. of TeX macros and font libraries.
  47. The distribution includes extensive general documentation about TeX,
  48. as well as the documentation for the included software packages.
  49. This package is a collection of Generic recommended packages:
  50. Recommended packages that work with multiple formats.
  51. This package contains the following CTAN packages:
  52. epsf: Simple macros for EPS inclusion.
  53. fontname: Scheme for naming fonts in TeX.
  54. genmisc:
  55. kastrup: Convert numbers into binary, octal and hexadecimal.
  56. multido: A loop facility for Generic TeX.
  57. path: Typeset paths, making them breakable.
  58. tex-ps: TeX to PostScript generic macros and add-ons.
  59. ulem: Package for underlining.
  60. %description -l ja
  61. TeX Live ソフトウェアディストリビューションは、
  62. さまざまな Unix, Macintosh, Windows、および
  63. 他のプラットホームに対して完全な TeX システムを提供します。
  64. 多くの異なった言語を含む TeX ドキュメントの
  65. 編集、組版、閲覧、印刷するためのプログラム、
  66. そして、TeX マクロやフォントライブラリの大きなコレクションを
  67. 同梱しています。
  68. このディストリビューションは
  69. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  70. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  71. このパッケージは以下のようなパッケージ集です。
  72. Generic recommended packages:
  73. Recommended packages that work with multiple formats.
  74. このパッケージは以下の CTAN パッケージを含んでいます:
  75. epsf: Simple macros for EPS inclusion.
  76. fontname: Scheme for naming fonts in TeX.
  77. genmisc:
  78. kastrup: Convert numbers into binary, octal and hexadecimal.
  79. multido: A loop facility for Generic TeX.
  80. path: Typeset paths, making them breakable.
  81. tex-ps: TeX to PostScript generic macros and add-ons.
  82. ulem: Package for underlining.
  83. %package doc
  84. Summary: TeX Live: Documentation files of %{name}
  85. Group: Applications/Publishing
  86. Requires: %{name} = %{version}-%{release}
  87. %description doc
  88. This package contains documentation files of %{name}.
  89. %prep
  90. %setup -c -n %{name}-%{version}
  91. %__tar -xvf %{SOURCE1}
  92. %__tar -xvf %{SOURCE2}
  93. %__tar -xvf %{SOURCE3}
  94. %__tar -xvf %{SOURCE4}
  95. %__tar -xvf %{SOURCE5}
  96. %__tar -xvf %{SOURCE6}
  97. %__tar -xvf %{SOURCE7}
  98. %__tar -xvf %{SOURCE8}
  99. %__tar -xvf %{SOURCE9}
  100. %__tar -xvf %{SOURCE10}
  101. %__tar -xvf %{SOURCE11}
  102. %__tar -xvf %{SOURCE12}
  103. %__tar -xvf %{SOURCE13}
  104. %__tar -xvf %{SOURCE14}
  105. %__tar -xvf %{SOURCE15}
  106. %__tar -xvf %{SOURCE16}
  107. %build
  108. %install
  109. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  110. %__mkdir_p %{buildroot}%{_datadir}
  111. ## move texmf-dist to /usr/share/texmf-dist
  112. [ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
  113. ## move texmf to /usr/share/texmf
  114. [ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
  115. ## move tlpkg to /usr/share/tlpkg
  116. [ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
  117. ## move all non-arch binaries to /usr/bin
  118. [ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
  119. ## move others into /usr/share/texmf-dist
  120. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  121. %__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
  122. %__rm -rf * ||:
  123. ## remove duplicated files between texlive and texlive-collection-*
  124. ## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
  125. ## remove unpacked files
  126. x=(
  127. # scripts/texlive/tlmgr.pl
  128. # scripts/texlive/updmap.pl
  129. # scripts/fontools/autoinst
  130. # scripts/glossaries/makeglossaries
  131. # scripts/m-tx/m-tx.lua
  132. # scripts/musixtex/musixtex.lua
  133. # scripts/pmx/pmx2pdf.lua
  134. # scripts/latexmk/latexmk.pl
  135. # scripts/jfontmaps/kanji-config-updmap.pl
  136. # scripts/jfontmaps/kanji-fontmap-creator.pl
  137. # scripts/latexpand/latexpand
  138. # scripts/epstopdf/epstopdf.pl
  139. # scripts/convbkmk/convbkmk.rb
  140. # scripts/jfontmaps/kanji-config-updmap-sys.sh
  141. # scripts/luaotfload/luaotfload-tool.lua
  142. # texconfig/tcfmgr
  143. # texconfig/tcfmgr.map
  144. # web2c/fmtutil.cnf
  145. # web2c/mktex.opt
  146. # web2c/mktexdir
  147. # web2c/mktexdir.opt
  148. # web2c/mktexnam
  149. # web2c/mktexnam.opt
  150. # web2c/mktexupd
  151. # web2c/texmf.cnf
  152. # web2c/updmap.cfg
  153. # web2c/updmap-hdr.cfg
  154. # doc/chktex/ChkTeX.pdf
  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. exit 0
  178. %postun
  179. if [ "$1" = 0 ]; then
  180. %_tl_touch_run texhash
  181. fi
  182. exit 0
  183. %posttrans
  184. %{_tl_exec_texhash}
  185. %{_tl_exec_mtxrun}
  186. %{_tl_exec_updmap}
  187. %{_tl_exec_fmtutil}
  188. exit 0
  189. %files -f filelist.full
  190. %defattr(-,root,root,-)
  191. %files -f filelist.doc doc
  192. %defattr(-,root,root,-)
  193. %changelog
  194. * Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
  195. - TLNET 20140524