texlive-collection-formatsextra-vl.spec 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2013-1:
  3. ## tlpdb2rpmspec collection-formatsextra
  4. %global _use_internal_dependency_generator 0
  5. %global __find_provides %{nil}
  6. %global __find_requires %{nil}
  7. Summary: TeX Live: Additional formats
  8. Summary(ja): TeX Live: Additional formats
  9. Name: texlive-collection-formatsextra
  10. Version: 2013
  11. Release: 1%{?_dist_release}
  12. License: LPPL, GPLv2+, Knuth, Public Domain
  13. Group: Applications/Publishing
  14. URL:http://www.tug.org/texlive/
  15. Source0: edmac.doc.tar.xz
  16. Source1: edmac.source.tar.xz
  17. Source2: edmac.tar.xz
  18. Source3: eplain.doc.tar.xz
  19. Source4: eplain.source.tar.xz
  20. Source5: eplain.tar.xz
  21. Source6: mltex.doc.tar.xz
  22. Source7: mltex.tar.xz
  23. Source8: psizzl.doc.tar.xz
  24. Source9: psizzl.source.tar.xz
  25. Source10: psizzl.tar.xz
  26. Source11: startex.doc.tar.xz
  27. Source12: startex.source.tar.xz
  28. Source13: startex.tar.xz
  29. Source14: texsis.doc.tar.xz
  30. Source15: texsis.tar.xz
  31. Requires: texlive = %{version}
  32. Requires: texlive-collection-basic = %{version}
  33. Requires(post): texlive = %{version}
  34. Requires(postun): texlive = %{version}
  35. BuildArch: noarch
  36. Buildroot: %{_tmppath}/%{name}-%{version}-root
  37. Vendor: Project Vine
  38. Distribution: Vine Linux
  39. Packager: munepi
  40. %description
  41. The TeX Live software distribution offers a complete TeX system for a
  42. variety of Unix, Macintosh, Windows and other platforms. It
  43. encompasses programs for editing, typesetting, previewing and printing
  44. of TeX documents in many different languages, and a large collection
  45. of TeX macros and font libraries.
  46. The distribution includes extensive general documentation about TeX,
  47. as well as the documentation for the included software packages.
  48. This package is a collection of Additional formats:
  49. Collected TeX `formats', i.e., large-scale macro packages
  50. designed to be dumped into .fmt files, other than most common
  51. ones, such as latex and context.
  52. This package contains the following CTAN packages:
  53. edmac: Typeset scholarly edition.
  54. eplain: Extended plain tex macros.
  55. mltex: The MLTeX system.
  56. psizzl: A TeX format for physics papers.
  57. startex: An XML-inspired format for student use.
  58. texsis: Plain TeX macros for Physicists.
  59. %description -l ja
  60. TeX Live ソフトウェアディストリビューションは、
  61. さまざまな Unix, Macintosh, Windows、および
  62. 他のプラットホームに対して完全な TeX システムを提供します。
  63. 多くの異なった言語を含む TeX ドキュメントの
  64. 編集、組版、閲覧、印刷するためのプログラム、
  65. そして、TeX マクロやフォントライブラリの大きなコレクションを
  66. 同梱しています。
  67. このディストリビューションは
  68. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  69. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  70. このパッケージは以下のようなパッケージ集です。
  71. Additional formats:
  72. Collected TeX `formats', i.e., large-scale macro packages
  73. designed to be dumped into .fmt files, other than most common
  74. ones, such as latex and context.
  75. このパッケージは以下の CTAN パッケージを含んでいます:
  76. edmac: Typeset scholarly edition.
  77. eplain: Extended plain tex macros.
  78. mltex: The MLTeX system.
  79. psizzl: A TeX format for physics papers.
  80. startex: An XML-inspired format for student use.
  81. texsis: Plain TeX macros for Physicists.
  82. %package doc
  83. Summary: TeX Live: Documentation files of %{name}
  84. Group: Applications/Publishing
  85. Requires: %{name} = %{version}-%{release}
  86. %description doc
  87. This package contains documentation files of %{name}.
  88. %prep
  89. %setup -c -n %{name}-%{version}
  90. %__tar -xvf %{SOURCE1}
  91. %__tar -xvf %{SOURCE2}
  92. %__tar -xvf %{SOURCE3}
  93. %__tar -xvf %{SOURCE4}
  94. %__tar -xvf %{SOURCE5}
  95. %__tar -xvf %{SOURCE6}
  96. %__tar -xvf %{SOURCE7}
  97. %__tar -xvf %{SOURCE8}
  98. %__tar -xvf %{SOURCE9}
  99. %__tar -xvf %{SOURCE10}
  100. %__tar -xvf %{SOURCE11}
  101. %__tar -xvf %{SOURCE12}
  102. %__tar -xvf %{SOURCE13}
  103. %__tar -xvf %{SOURCE14}
  104. %__tar -xvf %{SOURCE15}
  105. %build
  106. %install
  107. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  108. %__mkdir_p %{buildroot}%{_datadir}
  109. ## move texmf-dist to /usr/share/texmf-dist
  110. [ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
  111. ## move texmf to /usr/share/texmf
  112. [ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
  113. ## move tlpkg to /usr/share/tlpkg
  114. [ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
  115. ## move all non-arch binaries to /usr/bin
  116. [ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
  117. ## move others into /usr/share/texmf-dist
  118. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  119. %__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
  120. %__rm -rf * ||:
  121. ## remove duplicated files between texlive and texlive-collection-*
  122. ## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
  123. ## remove unpacked files
  124. x=(
  125. texconfig/tcfmgr
  126. texconfig/tcfmgr.map
  127. web2c/fmtutil.cnf
  128. web2c/mktex.opt
  129. web2c/mktexdir
  130. web2c/mktexdir.opt
  131. web2c/mktexnam
  132. web2c/mktexnam.opt
  133. web2c/mktexupd
  134. web2c/texmf.cnf
  135. web2c/updmap.cfg
  136. web2c/updmap-hdr.cfg
  137. doc/chktex/ChkTeX.pdf
  138. install-tl
  139. )
  140. if [ -d %{buildroot}%{_tl_texmfdist} ]; then
  141. pushd %{buildroot}%{_tl_texmfdist}
  142. %__rm -f ${x[@]} ||:
  143. popd
  144. fi
  145. ## Files list
  146. find %{buildroot} -type f -or -type l | \
  147. %__sed -e "s|%{buildroot}||g" > filelist.full
  148. find %{buildroot}%{_tl_texmfdist} -type d | \
  149. %__sed -e "s|^%{buildroot}|%dir |" \
  150. -e "s|$|/|" >> filelist.full
  151. ## subpackages
  152. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  153. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  154. %__mv -f filelist.tmp filelist.full
  155. %clean
  156. %__rm -rf %{buildroot}
  157. %post
  158. %_tl_touch_run texhash
  159. %_tl_touch_run mtxrun
  160. %_tl_touch_run fmtutil
  161. exit 0
  162. %postun
  163. if [ "$1" = 0 ]; then
  164. %_tl_touch_run texhash
  165. fi
  166. exit 0
  167. %posttrans
  168. %{_tl_exec_texhash}
  169. %{_tl_exec_mtxrun}
  170. %{_tl_exec_updmap}
  171. %{_tl_exec_fmtutil}
  172. exit 0
  173. %files -f filelist.full
  174. %defattr(-,root,root,-)
  175. %files -f filelist.doc doc
  176. %defattr(-,root,root,-)
  177. %changelog
  178. * Fri Aug 23 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-1
  179. - generated by tlpdb2rpmspec 2013-1: tlpdb2rpmspec collection-formatsextra
  180. - TLNET 20130823
  181. * Fri Nov 23 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1
  182. - generated by tlpdb2rpmspec 2012-1: tlpdb2rpmspec collection-formatsextra
  183. * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
  184. - generated by tlpdb2rpmspec 2011-2: tlpdb2rpmspec collection-formatsextra
  185. - set external dependencies (texlive-collection-binextra,
  186. texlive-collection-fontutils)
  187. * Sun Oct 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
  188. - generated by tlpdb2rpmspec 2011-1: tlpdb2rpmspec collection-formatsextra
  189. * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
  190. - generated by tlpdb2rpmspec 2009-4: tlpdb2rpmspec collection-formatsextra
  191. - make symlinks of core script utils (texlive-collection-binextra,
  192. texlive-collection-context, texlive-collection-fontutils,
  193. texlive-collection-langgreek, texlive-collection-langindic,
  194. texlive-collection-latex, texlive-collection-latexextra,
  195. texlive-collection-latexrecommended, texlive-collection-pictures,
  196. texlive-collection-pstricks, texlive-collection-science)
  197. * Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  198. - generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-formatsextra
  199. - improved %%post
  200. * Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  201. - generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-formatsextra
  202. - removed arch dependent binaries (texlive-collection-latexextra)
  203. - fixed perl path
  204. - improved updmap process in %%post and %%postun
  205. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  206. - generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-formatsextra