texlive-collection-langportuguese-vl.spec 7.0 KB

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