texlive-collection-langarmenian-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2009-3:
  3. ## tlpdb2rpmspec collection-langarmenian
  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: Armenian
  22. Summary(ja): TeX Live: Armenian
  23. Name: texlive-collection-langarmenian
  24. Version: 2009
  25. Release: 3%{?_dist_release}
  26. License: Freely redistributable without restriction
  27. Group: Applications/Publishing
  28. URL:http://www.tug.org/texlive/
  29. Requires: texlive = %{version}
  30. Requires: texlive-collection-basic = %{version}
  31. Requires(post): texlive = %{version}
  32. Requires(postun): texlive = %{version}
  33. BuildRequires: texlive-sources = %{version}
  34. BuildArch: noarch
  35. Buildroot: %{_tmppath}/%{name}-%{version}-root
  36. Vendor: Project Vine
  37. Distribution: Vine Linux
  38. Packager: munepi
  39. %description
  40. The TeX Live software distribution offers a complete TeX system for a
  41. variety of Unix, Macintosh, Windows and other platforms. It
  42. encompasses programs for editing, typesetting, previewing and printing
  43. of TeX documents in many different languages, and a large collection
  44. of TeX macros and font libraries.
  45. The distribution includes extensive general documentation about TeX,
  46. as well as the documentation for the included software packages.
  47. This package is a collection of Armenian:
  48. Support for typesetting Armenian.
  49. This package contains the following CTAN packages:
  50. armenian: A sytem for writing Armenian with TeX and LaTeX.
  51. %description -l ja
  52. TeX Live ソフトウェアディストリビューションは、
  53. さまざまな Unix, Macintosh, Windows、および
  54. 他のプラットホームに対して完全な TeX システムを提供します。
  55. 多くの異なった言語を含む TeX ドキュメントの
  56. 編集、組版、閲覧、印刷するためのプログラム、
  57. そして、TeX マクロやフォントライブラリの大きなコレクションを
  58. 同梱しています。
  59. このディストリビューションは
  60. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  61. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  62. このパッケージは以下のようなパッケージ集です。
  63. Armenian:
  64. Support for typesetting Armenian.
  65. このパッケージは以下の CTAN パッケージを含んでいます:
  66. armenian: A sytem for writing Armenian with TeX and LaTeX.
  67. %package doc
  68. Summary: TeX Live: Documentation files of %{name}
  69. Group: Applications/Publishing
  70. Requires: %{name} = %{version}-%{release}
  71. %description doc
  72. This package contains documentation files of %{name}.
  73. %prep
  74. %build
  75. %install
  76. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  77. PREF=%{buildroot}%{tex_destdir}
  78. manifest=(
  79. texmf-dist/doc/fonts/armenian/examples/latex/manual.tex
  80. texmf-dist/doc/fonts/armenian/examples/latex/raffi.tex
  81. texmf-dist/doc/fonts/armenian/examples/plain/first.tex
  82. texmf-dist/doc/fonts/armenian/examples/plain/table.tex
  83. texmf-dist/doc/fonts/armenian/manual.ps.gz
  84. texmf-dist/doc/fonts/armenian/readme.txt
  85. texmf-dist/fonts/source/public/armenian/arssb10.mf
  86. texmf-dist/fonts/source/public/armenian/arssbs10.mf
  87. texmf-dist/fonts/source/public/armenian/arssr10.mf
  88. texmf-dist/fonts/source/public/armenian/arsssl10.mf
  89. texmf-dist/fonts/source/public/armenian/artmb10.mf
  90. texmf-dist/fonts/source/public/armenian/artmbi10.mf
  91. texmf-dist/fonts/source/public/armenian/artmbs10.mf
  92. texmf-dist/fonts/source/public/armenian/artmi10.mf
  93. texmf-dist/fonts/source/public/armenian/artmr10.mf
  94. texmf-dist/fonts/source/public/armenian/artmsl10.mf
  95. texmf-dist/fonts/source/public/armenian/ps2mfbas.mf
  96. texmf-dist/fonts/tfm/public/armenian/arssb10.tfm
  97. texmf-dist/fonts/tfm/public/armenian/arssbs10.tfm
  98. texmf-dist/fonts/tfm/public/armenian/arssr10.tfm
  99. texmf-dist/fonts/tfm/public/armenian/arsssl10.tfm
  100. texmf-dist/fonts/tfm/public/armenian/artmb10.tfm
  101. texmf-dist/fonts/tfm/public/armenian/artmbi10.tfm
  102. texmf-dist/fonts/tfm/public/armenian/artmbs10.tfm
  103. texmf-dist/fonts/tfm/public/armenian/artmi10.tfm
  104. texmf-dist/fonts/tfm/public/armenian/artmr10.tfm
  105. texmf-dist/fonts/tfm/public/armenian/artmsl10.tfm
  106. texmf-dist/tex/latex/armenian/armscii8.def
  107. texmf-dist/tex/latex/armenian/armtex.sty
  108. texmf-dist/tex/latex/armenian/ot6cmr.fd
  109. texmf-dist/tex/latex/armenian/ot6cmss.fd
  110. texmf-dist/tex/latex/armenian/ot6enc.def
  111. texmf-dist/tex/plain/armenian/arm.tex
  112. texmf-dist/tex/plain/armenian/kbdencod.tex
  113. )
  114. %__mkdir_p ${PREF}/texmf-dist
  115. for i in "${manifest[@]}"; do
  116. %__install -D %{texlive_src}/$i ${PREF}/$i
  117. done
  118. ## info
  119. %__rm -f %{buildroot}%{_infodir}/dir
  120. %__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
  121. ## man
  122. ## man t1* files are provided by t1utils
  123. for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
  124. %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
  125. done
  126. ## man some files are provided by psutils
  127. for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
  128. %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
  129. done
  130. ## fix perl path
  131. for i in source/metapost/expressg/expressg.dtx \
  132. doc/metapost/expressg/n2mpsprl.prl \
  133. doc/latex/songbook/contrib/crd2sb/crd2sb; do
  134. [ -f %{build_texmf}-dist/${i} ] && \
  135. %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
  136. done
  137. ## remove asymptote directries, which provides asymptote package
  138. find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
  139. # find %{buildroot} -name "Makefile" | xargs %__rm -f
  140. # ## remove xindy
  141. # find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
  142. # ## remove tex4ht
  143. # find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
  144. ## remove arch dependent binaries
  145. %__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
  146. ## remove unpackaging files
  147. find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
  148. find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
  149. ## Files list
  150. find %{buildroot} -type f -or -type l | \
  151. %__sed -e "s|%{buildroot}||g" > filelist.full
  152. find %{buildroot}%{texmf}-dist -type d | \
  153. %__sed -e "s|^%{buildroot}|%dir |" \
  154. -e "s|$|/|" >> filelist.full
  155. ## subpackages
  156. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  157. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  158. %__mv -f filelist.tmp filelist.full
  159. %clean
  160. %__rm -rf %{buildroot}
  161. %post
  162. %{exec_texhash}
  163. exit 0
  164. %postun
  165. if [ "$1" = 0 ]; then
  166. %{exec_texhash}
  167. fi
  168. exit 0
  169. %files -f filelist.full
  170. %defattr(-,root,root)
  171. %files -f filelist.doc doc
  172. %defattr(-,root,root)
  173. %changelog
  174. * Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  175. - generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-langarmenian
  176. - improved %%post
  177. * Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  178. - generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-langarmenian
  179. - removed arch dependent binaries (texlive-collection-latexextra)
  180. - fixed perl path
  181. - improved updmap process in %%post and %%postun
  182. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  183. - generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langarmenian