texlive-collection-documentation-italian-vl.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2009-3:
  3. ## tlpdb2rpmspec collection-documentation-italian
  4. %bcond_with firstbuild
  5. %define tex_destdir %{_datadir}
  6. %define texmf %{tex_destdir}/texmf
  7. %define texlive_src %{tex_destdir}/texlive-sources
  8. %define build_tex_destdir %{buildroot}%{tex_destdir}
  9. %define build_texmf %{buildroot}%{texmf}
  10. %define exec_mktexlsr [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash
  11. %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
  12. %define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys --nostop
  13. %define exec_fmtutil [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null 2>&1
  14. %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
  15. %define vartexfonts %{_var}/lib/texmf
  16. %define __find_provides %{nil}
  17. %define __find_requires %{nil}
  18. %define __perl_provides %{nil}
  19. %define __perl_requires %{nil}
  20. Autoreq: 0
  21. Summary: TeX Live: Italian documentation
  22. Summary(ja): TeX Live: Italian documentation
  23. Name: texlive-collection-documentation-italian
  24. Version: 2009
  25. Release: 3%{?_dist_release}
  26. License: GPL+
  27. Group: Applications/Publishing
  28. URL:http://www.tug.org/texlive/
  29. Requires: texlive = %{version}
  30. Requires(post): texlive = %{version}
  31. Requires(postun): texlive = %{version}
  32. BuildRequires: texlive-sources = %{version}
  33. BuildArch: noarch
  34. Buildroot: %{_tmppath}/%{name}-%{version}-root
  35. Vendor: Project Vine
  36. Distribution: Vine Linux
  37. Packager: munepi
  38. %description
  39. The TeX Live software distribution offers a complete TeX system for a
  40. variety of Unix, Macintosh, Windows and other platforms. It
  41. encompasses programs for editing, typesetting, previewing and printing
  42. of TeX documents in many different languages, and a large collection
  43. of TeX macros and font libraries.
  44. The distribution includes extensive general documentation about TeX,
  45. as well as the documentation for the included software packages.
  46. This package is a collection of Italian documentation:
  47. This package contains the following CTAN packages:
  48. amsldoc-it:
  49. amsmath-it:
  50. amsthdoc-it:
  51. fancyhdr-it:
  52. l2tabu-it: Italian Translation of Obsolete packages and commands
  53. lshort-italian: Introduction to LaTeX in Italian.
  54. psfrag-italian: PSfrag documentation in Italian.
  55. texlive-it: TeX Live manual (Italian)
  56. %description -l ja
  57. TeX Live ソフトウェアディストリビューションは、
  58. さまざまな Unix, Macintosh, Windows、および
  59. 他のプラットホームに対して完全な TeX システムを提供します。
  60. 多くの異なった言語を含む TeX ドキュメントの
  61. 編集、組版、閲覧、印刷するためのプログラム、
  62. そして、TeX マクロやフォントライブラリの大きなコレクションを
  63. 同梱しています。
  64. このディストリビューションは
  65. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  66. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  67. このパッケージは以下のようなパッケージ集です。
  68. Italian documentation:
  69. このパッケージは以下の CTAN パッケージを含んでいます:
  70. amsldoc-it:
  71. amsmath-it:
  72. amsthdoc-it:
  73. fancyhdr-it:
  74. l2tabu-it: Italian Translation of Obsolete packages and commands
  75. lshort-italian: Introduction to LaTeX in Italian.
  76. psfrag-italian: PSfrag documentation in Italian.
  77. texlive-it: TeX Live manual (Italian)
  78. %prep
  79. %build
  80. %install
  81. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  82. PREF=%{buildroot}%{tex_destdir}
  83. manifest=(
  84. texmf-dist/doc/latex/amsldoc-it/itamsldoc.pdf
  85. texmf-dist/doc/latex/amsldoc-it/itamsldoc.tex
  86. texmf-dist/doc/latex/amsmath-it/amsmath.faq
  87. texmf-dist/doc/latex/amsmath-it/diffs-m_it.txt
  88. texmf-dist/doc/latex/amsthdoc-it/README
  89. texmf-dist/doc/latex/amsthdoc-it/amsthdoc_it.pdf
  90. texmf-dist/doc/latex/amsthdoc-it/amsthdoc_it.tex
  91. texmf-dist/doc/latex/fancyhdr-it/Makefile
  92. texmf-dist/doc/latex/fancyhdr-it/itfancyhdr.pdf
  93. texmf-dist/doc/latex/fancyhdr-it/itfancyhdr.tex
  94. texmf-dist/doc/latex/l2tabu-it/l2tabuit.pdf
  95. texmf-dist/doc/latex/l2tabu-it/l2tabuit.tex
  96. texmf-dist/doc/latex/lshort-italian/CHANGES
  97. texmf-dist/doc/latex/lshort-italian/MANIFEST
  98. texmf-dist/doc/latex/lshort-italian/Makefile
  99. texmf-dist/doc/latex/lshort-italian/README
  100. texmf-dist/doc/latex/lshort-italian/TRANSLATIONS
  101. texmf-dist/doc/latex/lshort-italian/fixdate.pl
  102. texmf-dist/doc/latex/lshort-italian/itlshort.pdf
  103. texmf-dist/doc/latex/lshort-italian/src.zip
  104. texmf-dist/doc/latex/psfrag-italian/itpfgguide.pdf
  105. texmf-dist/doc/latex/psfrag-italian/itpfgguide.tex
  106. )
  107. %__mkdir_p ${PREF}/texmf-dist
  108. for i in "${manifest[@]}"; do
  109. %__install -D %{texlive_src}/$i ${PREF}/$i
  110. done
  111. ## info
  112. %__rm -f %{buildroot}%{_infodir}/dir
  113. %__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
  114. ## man
  115. ## man t1* files are provided by t1utils
  116. for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
  117. %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
  118. done
  119. ## man some files are provided by psutils
  120. for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
  121. %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
  122. done
  123. ## fix perl path
  124. for i in source/metapost/expressg/expressg.dtx \
  125. doc/metapost/expressg/n2mpsprl.prl \
  126. doc/latex/songbook/contrib/crd2sb/crd2sb; do
  127. [ -f %{build_texmf}-dist/${i} ] && \
  128. %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
  129. done
  130. ## remove asymptote directries, which provides asymptote package
  131. find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
  132. # find %{buildroot} -name "Makefile" | xargs %__rm -f
  133. # ## remove xindy
  134. # find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
  135. # ## remove tex4ht
  136. # find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
  137. ## remove arch dependent binaries
  138. %__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
  139. ## remove unpackaging files
  140. find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
  141. find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
  142. ## Files list
  143. find %{buildroot} -type f -or -type l | \
  144. %__sed -e "s|%{buildroot}||g" > filelist.full
  145. find %{buildroot}%{texmf}-dist -type d | \
  146. %__sed -e "s|^%{buildroot}|%dir |" \
  147. -e "s|$|/|" >> filelist.full
  148. %clean
  149. %__rm -rf %{buildroot}
  150. %post
  151. %{exec_texhash}
  152. exit 0
  153. %postun
  154. if [ "$1" = 0 ]; then
  155. %{exec_texhash}
  156. fi
  157. exit 0
  158. %files -f filelist.full
  159. %defattr(-,root,root)
  160. %changelog
  161. * Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  162. - generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-documentation-italian
  163. - improved %%post
  164. * Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  165. - generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-documentation-italian
  166. - removed arch dependent binaries (texlive-collection-latexextra)
  167. - fixed perl path
  168. - improved updmap process in %%post and %%postun
  169. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  170. - generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-documentation-italian