texlive-collection-langcroatian-vl.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2009-3:
  3. ## tlpdb2rpmspec collection-langcroatian
  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: Croatian
  22. Summary(ja): TeX Live: Croatian
  23. Name: texlive-collection-langcroatian
  24. Version: 2009
  25. Release: 3%{?_dist_release}
  26. License: No Info, 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 Croatian:
  48. Support for typesetting Croatian.
  49. This package contains the following CTAN packages:
  50. croatian: Fonts for Croatian Glagolitic and other Croatian scripts.
  51. hrlatex: LaTeX support for Croatian documents.
  52. hyphen-croatian: Croatian hyphenation.
  53. %description -l ja
  54. TeX Live ソフトウェアディストリビューションは、
  55. さまざまな Unix, Macintosh, Windows、および
  56. 他のプラットホームに対して完全な TeX システムを提供します。
  57. 多くの異なった言語を含む TeX ドキュメントの
  58. 編集、組版、閲覧、印刷するためのプログラム、
  59. そして、TeX マクロやフォントライブラリの大きなコレクションを
  60. 同梱しています。
  61. このディストリビューションは
  62. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  63. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  64. このパッケージは以下のようなパッケージ集です。
  65. Croatian:
  66. Support for typesetting Croatian.
  67. このパッケージは以下の CTAN パッケージを含んでいます:
  68. croatian: Fonts for Croatian Glagolitic and other Croatian scripts.
  69. hrlatex: LaTeX support for Croatian documents.
  70. hyphen-croatian: Croatian hyphenation.
  71. %package doc
  72. Summary: TeX Live: Documentation files of %{name}
  73. Group: Applications/Publishing
  74. Requires: %{name} = %{version}-%{release}
  75. %description doc
  76. This package contains documentation files of %{name}.
  77. %prep
  78. %build
  79. %install
  80. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  81. PREF=%{buildroot}%{tex_destdir}
  82. manifest=(
  83. texmf-dist/doc/fonts/croatian/crogl.tex
  84. texmf-dist/doc/fonts/croatian/readme.txt
  85. texmf-dist/fonts/source/public/croatian/bass.mf
  86. texmf-dist/fonts/source/public/croatian/bass10.mf
  87. texmf-dist/fonts/source/public/croatian/basscc.mf
  88. texmf-dist/fonts/source/public/croatian/cal.mf
  89. texmf-dist/fonts/source/public/croatian/cal10.mf
  90. texmf-dist/fonts/source/public/croatian/croatian-i.mf
  91. texmf-dist/fonts/source/public/croatian/croblm.mf
  92. texmf-dist/fonts/source/public/croatian/croblv.mf
  93. texmf-dist/fonts/source/public/croatian/crocyrm.mf
  94. texmf-dist/fonts/source/public/croatian/crocyrv.mf
  95. texmf-dist/fonts/source/public/croatian/gg.mf
  96. texmf-dist/fonts/source/public/croatian/gg10.mf
  97. texmf-dist/fonts/source/public/croatian/ggv.mf
  98. texmf-dist/fonts/source/public/croatian/ggv1.mf
  99. texmf-dist/fonts/source/public/croatian/glz.mf
  100. texmf-dist/fonts/source/public/croatian/hcyr.mf
  101. texmf-dist/fonts/source/public/croatian/kraj.mf
  102. texmf-dist/fonts/source/public/croatian/kur.mf
  103. texmf-dist/fonts/source/public/croatian/kurzivm.mf
  104. texmf-dist/fonts/source/public/croatian/kurzivv.mf
  105. texmf-dist/fonts/source/public/croatian/lom.mf
  106. texmf-dist/fonts/source/public/croatian/lomm.mf
  107. texmf-dist/fonts/source/public/croatian/lomv.mf
  108. texmf-dist/fonts/source/public/croatian/obl.mf
  109. texmf-dist/fonts/source/public/croatian/obl10.mf
  110. texmf-dist/fonts/source/public/croatian/oblm.mf
  111. texmf-dist/fonts/source/public/croatian/oblv.mf
  112. texmf-dist/fonts/source/public/croatian/ple.mf
  113. texmf-dist/fonts/source/public/croatian/plet.mf
  114. texmf-dist/fonts/source/public/croatian/pleter.mf
  115. texmf-dist/fonts/source/public/croatian/stechak.mf
  116. texmf-dist/fonts/source/public/croatian/ugl.mf
  117. texmf-dist/fonts/source/public/croatian/ugl10.mf
  118. texmf-dist/fonts/source/public/croatian/ugv.mf
  119. texmf-dist/fonts/source/public/croatian/ugve.mf
  120. texmf-dist/tex/plain/croatian/glhyphen.tex
  121. texmf-dist/tex/plain/croatian/llig.tex
  122. texmf-dist/tex/plain/croatian/ste.tex
  123. texmf-dist/tex/plain/croatian/ttabl.tex
  124. texmf-dist/tex/plain/croatian/ttablb.tex
  125. texmf-dist/tex/plain/croatian/ttablhc.tex
  126. texmf-dist/tex/plain/croatian/ttablo.tex
  127. texmf-dist/tex/plain/croatian/ttabloku.tex
  128. texmf-dist/tex/plain/croatian/ttlis.tex
  129. texmf-dist/doc/latex/hrlatex/README
  130. texmf-dist/doc/latex/hrlatex/hrlatex.pdf
  131. texmf-dist/doc/latex/hrlatex/novi.diplomski-rad.tex
  132. texmf-dist/doc/latex/hrlatex/novi.ispit.tex
  133. texmf-dist/doc/latex/hrlatex/sample.diplomski-rad.tex
  134. texmf-dist/doc/latex/hrlatex/sample.minimal.cp1250.tex
  135. texmf-dist/doc/latex/hrlatex/sample.minimal.latin2.tex
  136. texmf-dist/doc/latex/hrlatex/sample.minimal.utf8.tex
  137. texmf-dist/doc/latex/hrlatex/sample.prezentacija.tex
  138. texmf-dist/source/latex/hrlatex/hrlatex.dtx
  139. texmf-dist/source/latex/hrlatex/hrlatex.ins
  140. texmf-dist/tex/latex/hrlatex/hrlatex.sty
  141. )
  142. %__mkdir_p ${PREF}/texmf-dist
  143. for i in "${manifest[@]}"; do
  144. %__install -D %{texlive_src}/$i ${PREF}/$i
  145. done
  146. ## info
  147. %__rm -f %{buildroot}%{_infodir}/dir
  148. %__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
  149. ## man
  150. ## man t1* files are provided by t1utils
  151. for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
  152. %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
  153. done
  154. ## man some files are provided by psutils
  155. for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
  156. %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
  157. done
  158. ## fix perl path
  159. for i in source/metapost/expressg/expressg.dtx \
  160. doc/metapost/expressg/n2mpsprl.prl \
  161. doc/latex/songbook/contrib/crd2sb/crd2sb; do
  162. [ -f %{build_texmf}-dist/${i} ] && \
  163. %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
  164. done
  165. ## remove asymptote directries, which provides asymptote package
  166. find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
  167. # find %{buildroot} -name "Makefile" | xargs %__rm -f
  168. # ## remove xindy
  169. # find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
  170. # ## remove tex4ht
  171. # find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
  172. ## remove arch dependent binaries
  173. %__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
  174. ## remove unpackaging files
  175. find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
  176. find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
  177. ## Files list
  178. find %{buildroot} -type f -or -type l | \
  179. %__sed -e "s|%{buildroot}||g" > filelist.full
  180. find %{buildroot}%{texmf}-dist -type d | \
  181. %__sed -e "s|^%{buildroot}|%dir |" \
  182. -e "s|$|/|" >> filelist.full
  183. ## subpackages
  184. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  185. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  186. %__mv -f filelist.tmp filelist.full
  187. %clean
  188. %__rm -rf %{buildroot}
  189. %post
  190. %{exec_texhash}
  191. rpm -q --quiet texlive-common || exit 0
  192. echo -n " "
  193. echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done."
  194. exit 0
  195. %postun
  196. if [ "$1" = 0 ]; then
  197. %{exec_texhash}
  198. fi
  199. exit 0
  200. %files -f filelist.full
  201. %defattr(-,root,root)
  202. %files -f filelist.doc doc
  203. %defattr(-,root,root)
  204. %changelog
  205. * Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  206. - generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-langcroatian
  207. - improved %%post
  208. * Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  209. - generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-langcroatian
  210. - removed arch dependent binaries (texlive-collection-latexextra)
  211. - fixed perl path
  212. - improved updmap process in %%post and %%postun
  213. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  214. - generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langcroatian