texlive-collection-langlithuanian-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2009-3:
  3. ## tlpdb2rpmspec collection-langlithuanian
  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: Lithuanian
  22. Summary(ja): TeX Live: Lithuanian
  23. Name: texlive-collection-langlithuanian
  24. Version: 2009
  25. Release: 3%{?_dist_release}
  26. License: LPPL
  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 Lithuanian:
  48. Support for typesetting Lithuanian.
  49. This package contains the following CTAN packages:
  50. lithuanian: Lithuanian language support.
  51. hyphen-lithuanian:
  52. %description -l ja
  53. TeX Live ソフトウェアディストリビューションは、
  54. さまざまな Unix, Macintosh, Windows、および
  55. 他のプラットホームに対して完全な TeX システムを提供します。
  56. 多くの異なった言語を含む TeX ドキュメントの
  57. 編集、組版、閲覧、印刷するためのプログラム、
  58. そして、TeX マクロやフォントライブラリの大きなコレクションを
  59. 同梱しています。
  60. このディストリビューションは
  61. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  62. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  63. このパッケージは以下のようなパッケージ集です。
  64. Lithuanian:
  65. Support for typesetting Lithuanian.
  66. このパッケージは以下の CTAN パッケージを含んでいます:
  67. lithuanian: Lithuanian language support.
  68. hyphen-lithuanian:
  69. %package doc
  70. Summary: TeX Live: Documentation files of %{name}
  71. Group: Applications/Publishing
  72. Requires: %{name} = %{version}-%{release}
  73. %description doc
  74. This package contains documentation files of %{name}.
  75. %prep
  76. %build
  77. %install
  78. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  79. PREF=%{buildroot}%{tex_destdir}
  80. manifest=(
  81. texmf-dist/doc/latex/lithuanian/COPYING
  82. texmf-dist/doc/latex/lithuanian/ChangeLog
  83. texmf-dist/doc/latex/lithuanian/Copyright
  84. texmf-dist/doc/latex/lithuanian/README.lithuanian
  85. texmf-dist/doc/latex/lithuanian/l7xenc.dfu
  86. texmf-dist/doc/latex/lithuanian/latin7lt.tex
  87. texmf-dist/doc/latex/lithuanian/latin7x.etx
  88. texmf-dist/doc/latex/lithuanian/latin7x.mtx
  89. texmf-dist/doc/latex/lithuanian/latin7x.pdf
  90. texmf-dist/doc/latex/lithuanian/makeLT.html
  91. texmf-dist/doc/latex/lithuanian/makelt.tex
  92. texmf-dist/doc/latex/lithuanian/makeltmap.tex
  93. texmf-dist/doc/latex/lithuanian/testlt-urw.tex
  94. texmf-dist/doc/latex/lithuanian/testlt.tex
  95. texmf-dist/fonts/enc/dvips/lithuanian/latin7x.enc
  96. texmf-dist/fonts/map/dvips/lithuanian/l7x-urwvn.map
  97. texmf-dist/fonts/tfm/public/lithuanian/l7x-uagd.tfm
  98. texmf-dist/fonts/tfm/public/lithuanian/l7x-uagdo.tfm
  99. texmf-dist/fonts/tfm/public/lithuanian/l7x-uagk.tfm
  100. texmf-dist/fonts/tfm/public/lithuanian/l7x-uagko.tfm
  101. texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkd.tfm
  102. texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkdi.tfm
  103. texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkl.tfm
  104. texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkli.tfm
  105. texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrb.tfm
  106. texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrbo.tfm
  107. texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrr.tfm
  108. texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrro.tfm
  109. texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvb.tfm
  110. texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvbc.tfm
  111. texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvbo.tfm
  112. texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvboc.tfm
  113. texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvr.tfm
  114. texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvrc.tfm
  115. texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvro.tfm
  116. texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvroc.tfm
  117. texmf-dist/fonts/tfm/public/lithuanian/l7x-uncb.tfm
  118. texmf-dist/fonts/tfm/public/lithuanian/l7x-uncbi.tfm
  119. texmf-dist/fonts/tfm/public/lithuanian/l7x-uncr.tfm
  120. texmf-dist/fonts/tfm/public/lithuanian/l7x-uncri.tfm
  121. texmf-dist/fonts/tfm/public/lithuanian/l7x-uplb.tfm
  122. texmf-dist/fonts/tfm/public/lithuanian/l7x-uplbi.tfm
  123. texmf-dist/fonts/tfm/public/lithuanian/l7x-uplr.tfm
  124. texmf-dist/fonts/tfm/public/lithuanian/l7x-uplri.tfm
  125. texmf-dist/fonts/tfm/public/lithuanian/l7x-utmb.tfm
  126. texmf-dist/fonts/tfm/public/lithuanian/l7x-utmbi.tfm
  127. texmf-dist/fonts/tfm/public/lithuanian/l7x-utmr.tfm
  128. texmf-dist/fonts/tfm/public/lithuanian/l7x-utmri.tfm
  129. texmf-dist/fonts/tfm/public/lithuanian/l7x-uzcmi.tfm
  130. texmf-dist/tex/latex/lithuanian/cp772.def
  131. texmf-dist/tex/latex/lithuanian/cp774.def
  132. texmf-dist/tex/latex/lithuanian/cp775.def
  133. texmf-dist/tex/latex/lithuanian/cpKBL.def
  134. texmf-dist/tex/latex/lithuanian/cpRIM.def
  135. texmf-dist/tex/latex/lithuanian/l7xenc.def
  136. texmf-dist/tex/latex/lithuanian/l7xenc.sty
  137. texmf-dist/tex/latex/lithuanian/l7xuag.fd
  138. texmf-dist/tex/latex/lithuanian/l7xubk.fd
  139. texmf-dist/tex/latex/lithuanian/l7xucr.fd
  140. texmf-dist/tex/latex/lithuanian/l7xuhv.fd
  141. texmf-dist/tex/latex/lithuanian/l7xunc.fd
  142. texmf-dist/tex/latex/lithuanian/l7xupl.fd
  143. texmf-dist/tex/latex/lithuanian/l7xutm.fd
  144. texmf-dist/tex/latex/lithuanian/l7xuzc.fd
  145. texmf-dist/tex/latex/lithuanian/latin7.def
  146. texmf-dist/tex/latex/lithuanian/lithuanian.ldf
  147. texmf-dist/tex/latex/lithuanian/lithuanian.sty
  148. )
  149. %__mkdir_p ${PREF}/texmf-dist
  150. for i in "${manifest[@]}"; do
  151. %__install -D %{texlive_src}/$i ${PREF}/$i
  152. done
  153. ## info
  154. %__rm -f %{buildroot}%{_infodir}/dir
  155. %__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
  156. ## man
  157. ## man t1* files are provided by t1utils
  158. for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
  159. %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
  160. done
  161. ## man some files are provided by psutils
  162. for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
  163. %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
  164. done
  165. ## fix perl path
  166. for i in source/metapost/expressg/expressg.dtx \
  167. doc/metapost/expressg/n2mpsprl.prl \
  168. doc/latex/songbook/contrib/crd2sb/crd2sb; do
  169. [ -f %{build_texmf}-dist/${i} ] && \
  170. %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
  171. done
  172. ## remove asymptote directries, which provides asymptote package
  173. find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
  174. # find %{buildroot} -name "Makefile" | xargs %__rm -f
  175. # ## remove xindy
  176. # find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
  177. # ## remove tex4ht
  178. # find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
  179. ## remove arch dependent binaries
  180. %__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
  181. ## remove unpackaging files
  182. find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
  183. find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
  184. ## Files list
  185. find %{buildroot} -type f -or -type l | \
  186. %__sed -e "s|%{buildroot}||g" > filelist.full
  187. find %{buildroot}%{texmf}-dist -type d | \
  188. %__sed -e "s|^%{buildroot}|%dir |" \
  189. -e "s|$|/|" >> filelist.full
  190. ## subpackages
  191. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  192. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  193. %__mv -f filelist.tmp filelist.full
  194. %clean
  195. %__rm -rf %{buildroot}
  196. %post
  197. %{exec_texhash}
  198. [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
  199. updmap_lock=%{texmf}/updmap.lock
  200. %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^#! Map l7x-urwvn.map" && \
  201. echo -n " " && \
  202. echo -n "Running updmap: enable l7x-urwvn.map ... " && \
  203. %{exec_updmap} --nomkmap --enable Map l7x-urwvn.map >/dev/null 2>&1 && \
  204. echo "done." && \
  205. touch ${updmap_lock}
  206. rpm -q --quiet texlive-common || exit 0
  207. [ -f ${updmap_lock} ] && \
  208. echo -n " " && \
  209. echo -n "Running updmap: recreate map files ... " && \
  210. %{exec_updmap} >/dev/null 2>&1 && \
  211. echo "done." && \
  212. rm -f ${updmap_lock}
  213. rpm -q --quiet texlive-common || exit 0
  214. echo -n " "
  215. echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done."
  216. exit 0
  217. %postun
  218. if [ "$1" = 0 ]; then
  219. %{exec_texhash}
  220. [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
  221. %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^Map l7x-urwvn.map" && \
  222. echo -n " " && \
  223. echo -n "Running updmap: disable l7x-urwvn.map ... " && \
  224. %{exec_updmap} --nomkmap --disable l7x-urwvn.map >/dev/null 2>&1 && \
  225. echo "done."
  226. echo -n " " && \
  227. echo -n "Running updmap: recreate map files ... " && \
  228. %{exec_updmap} >/dev/null 2>&1 && \
  229. echo "done."
  230. fi
  231. exit 0
  232. %files -f filelist.full
  233. %defattr(-,root,root)
  234. %files -f filelist.doc doc
  235. %defattr(-,root,root)
  236. %changelog
  237. * Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  238. - generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-langlithuanian
  239. - improved %%post
  240. * Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  241. - generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-langlithuanian
  242. - removed arch dependent binaries (texlive-collection-latexextra)
  243. - fixed perl path
  244. - improved updmap process in %%post and %%postun
  245. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  246. - generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langlithuanian