texlive-collection-genericrecommended-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2013-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: 2013
  11. Release: 1%{?_dist_release}
  12. License: Public Domain, GPL+, LPPL, Freely redistributable without restriction
  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:
  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:
  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. texconfig/tcfmgr
  128. texconfig/tcfmgr.map
  129. web2c/fmtutil.cnf
  130. web2c/mktex.opt
  131. web2c/mktexdir
  132. web2c/mktexdir.opt
  133. web2c/mktexnam
  134. web2c/mktexnam.opt
  135. web2c/mktexupd
  136. web2c/texmf.cnf
  137. web2c/updmap.cfg
  138. web2c/updmap-hdr.cfg
  139. doc/chktex/ChkTeX.pdf
  140. install-tl
  141. )
  142. if [ -d %{buildroot}%{_tl_texmfdist} ]; then
  143. pushd %{buildroot}%{_tl_texmfdist}
  144. %__rm -f ${x[@]} ||:
  145. popd
  146. fi
  147. ## Files list
  148. find %{buildroot} -type f -or -type l | \
  149. %__sed -e "s|%{buildroot}||g" > filelist.full
  150. find %{buildroot}%{_tl_texmfdist} -type d | \
  151. %__sed -e "s|^%{buildroot}|%dir |" \
  152. -e "s|$|/|" >> filelist.full
  153. ## subpackages
  154. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  155. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  156. %__mv -f filelist.tmp filelist.full
  157. %clean
  158. %__rm -rf %{buildroot}
  159. %post
  160. %_tl_touch_run texhash
  161. %_tl_touch_run mtxrun
  162. exit 0
  163. %postun
  164. if [ "$1" = 0 ]; then
  165. %_tl_touch_run texhash
  166. fi
  167. exit 0
  168. %posttrans
  169. %{_tl_exec_texhash}
  170. %{_tl_exec_mtxrun}
  171. %{_tl_exec_updmap}
  172. %{_tl_exec_fmtutil}
  173. exit 0
  174. %files -f filelist.full
  175. %defattr(-,root,root,-)
  176. %files -f filelist.doc doc
  177. %defattr(-,root,root,-)
  178. %changelog
  179. * Fri Aug 23 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-1
  180. - generated by tlpdb2rpmspec 2013-1: tlpdb2rpmspec collection-genericrecommended
  181. - TLNET 20130823
  182. * Fri Nov 23 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1
  183. - generated by tlpdb2rpmspec 2012-1: tlpdb2rpmspec collection-genericrecommended
  184. * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
  185. - generated by tlpdb2rpmspec 2011-2: tlpdb2rpmspec collection-genericrecommended
  186. - set external dependencies (texlive-collection-binextra,
  187. texlive-collection-fontutils)
  188. * Sun Oct 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
  189. - generated by tlpdb2rpmspec 2011-1: tlpdb2rpmspec collection-genericrecommended
  190. * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
  191. - generated by tlpdb2rpmspec 2009-4: tlpdb2rpmspec collection-genericrecommended
  192. - make symlinks of core script utils (texlive-collection-binextra,
  193. texlive-collection-context, texlive-collection-fontutils,
  194. texlive-collection-langgreek, texlive-collection-langindic,
  195. texlive-collection-latex, texlive-collection-latexextra,
  196. texlive-collection-latexrecommended, texlive-collection-pictures,
  197. texlive-collection-pstricks, texlive-collection-science)
  198. * Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  199. - generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-genericrecommended
  200. - improved %%post
  201. * Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  202. - generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-genericrecommended
  203. - removed arch dependent binaries (texlive-collection-latexextra)
  204. - fixed perl path
  205. - improved updmap process in %%post and %%postun
  206. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  207. - generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-genericrecommended