texlive-vl.spec 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  1. ## -*- coding: utf-8-unix -*-
  2. %bcond_with firstbuild
  3. %define enable_sharedlib 1
  4. %if %{?_dist_release} == "vl6"
  5. %define enable_sharedlib 0
  6. %endif
  7. %global _use_internal_dependency_generator 0
  8. %global __find_provides %{SOURCE99}
  9. %global __find_requires %{nil}
  10. %define tl11suppver 111120
  11. %define texlivesrcver 20110705
  12. %define texlivever 20110705
  13. %define tl11supp_all_opts -m -r
  14. %define tl11supp_source_common_sh cd ${RPM_BUILD_DIR}/%{name}-%{version}/tl11; . ./common.sh %{tl11supp_all_opts}; set -x;
  15. %define tex_destdir %{_datadir}
  16. %define texmf %{tex_destdir}/texmf
  17. %define texlive_src %{tex_destdir}/texlive-sources
  18. %define build_tex_destdir %{buildroot}%{tex_destdir}
  19. %define build_texmf %{buildroot}%{texmf}
  20. %define exec_mktexlsr [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash
  21. %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
  22. %define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys
  23. %define exec_fmtutil [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null
  24. %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
  25. %define vartexfonts %{_var}/lib/texmf/fonts
  26. Summary: The TeX text formatting system
  27. Summary(ja): TeX 文書整形システム
  28. Name: texlive
  29. Version: 2011
  30. Release: 3%{?_dist_release}
  31. License: distributable
  32. Group: Applications/Publishing
  33. URL: http://www.tug.org/texlive/
  34. Source: http://sourceforge.jp/projects/eptex/wiki/TeX_Live_2011/attach/tl11supp-%{tl11suppver}.tar.xz
  35. Source5: updmap-hdr.cfg.texlive-%{texlivesrcver}
  36. Source6: updmap.cfg.texlive-%{texlivesrcver}
  37. Source9: __usr_bin_symlink.sh
  38. ## desktop files
  39. Source10: pxdvi.desktop
  40. Source11: texdoctk.desktop
  41. ## find library sonames for libkpathsea and libptexenc
  42. Source99: find-provides-texlive.sh
  43. ## etc...
  44. Source100: texlive.cron
  45. Source102: http://auemath.aichi-edu.ac.jp/~khotta/ghost/disk1/jtygm.sty
  46. Source110: http://mirrors.ctan.org/obsolete/support/pdftexenc/cmex.enc
  47. ######
  48. # TeX patches
  49. ######
  50. ## vine
  51. Patch0: tl11supp-%{tl11suppver}-vine.patch
  52. Patch1: texlive-%{texlivesrcver}-vine.patch
  53. Patch2: texlive-%{texlivesrcver}-texmfcnf-vine.patch
  54. Patch3: texlive-%{texlivesrcver}-set-selfautoparent-vine.patch
  55. ## pxdvi(k) for Vine Linux
  56. Patch10: tl11supp-%{tl11suppver}-pxdvik-vine.patch
  57. ## dvipdfmx
  58. # Patch20: ptexlive-%{ptexlivever}-dvipdfmx-vine.patch
  59. ## others
  60. ## security
  61. Requires: coreutils
  62. Requires: ed mktemp
  63. Requires: tmpwatch
  64. Requires: zlib
  65. Requires: libpng
  66. Requires: gd
  67. Requires: ncurses
  68. Requires: libjpeg
  69. Requires: t1lib
  70. Requires: freetype2
  71. Requires: openMotif
  72. Requires: poppler >= 0.12
  73. Requires: openssl
  74. Requires: libpaper
  75. Requires: fontconfig
  76. Requires: perl-Tk perl-Tk-TableMatrix
  77. Requires: nkf
  78. Requires: ghostscript >= 8.63
  79. %if %{?_dist_release} == "vl7"
  80. Requires: libkpathsea = %{version}-%{release}
  81. Requires: libptexenc = %{version}-%{release}
  82. %endif
  83. %if %{?_dist_release} == "vl7"
  84. %{!?with_firstbuild:Requires: jvf >= 7.0}
  85. %endif
  86. %if %{?_dist_release} == "vl6"
  87. %{!?with_firstbuild:Requires: texlive-jvf >= 7.0}
  88. %endif
  89. Requires: fontconfig >= 2.6.0-2
  90. Requires(post,postun): fontconfig >= 2.6.0-2
  91. Requires(post): ed mktemp
  92. Requires(post): vutils >= 2.0.5
  93. %{!?with_firstbuild:BuildRequires: texlive-common = %{version}}
  94. BuildRequires: texlive-sources = %{version}
  95. BuildRequires: xz
  96. BuildRequires: unzip
  97. BuildRequires: bison flex
  98. BuildRequires: bzip2-devel
  99. BuildRequires: zlib-devel
  100. BuildRequires: libpng-devel
  101. BuildRequires: gd-devel
  102. BuildRequires: ncurses-devel
  103. BuildRequires: libjpeg-devel
  104. BuildRequires: t1lib-devel
  105. BuildRequires: XOrg-devel
  106. BuildRequires: freetype2-devel >= 2.1.10
  107. BuildRequires: autoconf >= 2.68
  108. BuildRequires: openMotif-devel
  109. BuildRequires: poppler-devel >= 0.12
  110. BuildRequires: openssl-devel
  111. BuildRequires: libpaper-devel
  112. BuildRequires: fontconfig-devel
  113. BuildRequires: nkf
  114. Buildroot: %{_tmppath}/%{name}-%{version}-root
  115. Vendor: Project Vine
  116. Distribution: Vine Linux
  117. Packager: munepi
  118. %description
  119. The TeX Live software distribution offers a complete TeX system for a
  120. variety of Unix, Macintosh, Windows and other platforms. It
  121. encompasses programs for editing, typesetting, previewing and printing
  122. of TeX documents in many different languages, and a large collection
  123. of TeX macros and font libraries.
  124. The distribution includes extensive general documentation about TeX,
  125. as well as the documentation for the included software packages.
  126. %description -l ja
  127. TeX Live ソフトウェアディストリビューションは、
  128. さまざまな Unix, Macintosh, Windows、および
  129. 他のプラットホームに対して完全な TeX システムを提供します。
  130. 多くの異なった言語を含む TeX ドキュメントの
  131. 編集、組版、閲覧、印刷するためのプログラム、
  132. そして、TeX マクロやフォントライブラリの大きなコレクションを
  133. 同梱しています。
  134. このディストリビューションは
  135. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  136. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  137. %package doc
  138. Summary: TeX Live: Documentation files of %{name}
  139. Group: Applications/Publishing
  140. Requires: %{name} = %{version}-%{release}
  141. BuildArch: noarch
  142. %description doc
  143. This package contains documentation files of %{name}.
  144. %if %{enable_sharedlib}
  145. %package -n libkpathsea
  146. Summary: path search library for the TeX Live
  147. Summary(ja): TeX Live 用パス検索ライブラリ
  148. Group: System Environment/Libraries
  149. %description -n libkpathsea
  150. This package includes runtime part of the Kpathsea library.
  151. %package -n libkpathsea-devel
  152. Summary: path search libary and header files for the TeX Live
  153. Summary(ja): TeX Live 用パス検索ライブラリとヘッダファイル
  154. Group: Development/Libraries
  155. Requires: libkpathsea = %{version}-%{release}
  156. %description -n libkpathsea-devel
  157. This package includes static library and header files of the Kpathsea library.
  158. %package -n libptexenc
  159. Summary: Kanji code convert library for Japanese pTeX
  160. Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリ
  161. Group: System Environment/Libraries
  162. Requires: libkpathsea = %{version}-%{release}
  163. %description -n libptexenc
  164. This package includes runtime part of the ptexenc library.
  165. %package -n libptexenc-devel
  166. Summary: Kanji code convert library and header files for Japanese pTeX
  167. Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリとヘッダファイル
  168. Group: Development/Libraries
  169. Requires: libptexenc = %{version}-%{release}
  170. %description -n libptexenc-devel
  171. This package includes header files of the ptexenc library.
  172. %endif
  173. %prep
  174. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  175. %setup -q -c %{name}-%{version}
  176. ##
  177. [ -f %{texlive_src}/source/texlive-%{texlivesrcver}-source.tar.xz ] && \
  178. %__ln_s -f %{texlive_src}/source/texlive-%{texlivesrcver}-source.tar.xz tl11/
  179. ## apply tl11supp
  180. %patch0 -p1 -b .vine
  181. %__chmod +x tl11/scripts/build-post.sh || exit 1
  182. ## fix $TLSRCDIR
  183. %__sed -i -e "s,TLSRCDIR=/opt/home-supp/tl11,TLSRCDIR=%{_builddir}/%{name}-%{version}/tl11," %{_builddir}/%{name}-%{version}/tl11/common.sh || exit 1
  184. ## exec scripts/unpack.sh
  185. %{tl11supp_source_common_sh}
  186. scripts/unpack.sh %{tl11supp_all_opts} || exit 1
  187. ## some hacks for Vine Linux
  188. (cd ../
  189. ## vine
  190. %patch1 -p1 -b .vine
  191. %patch2 -p1 -b .vine
  192. %patch3 -p1 -b .vine
  193. %patch10 -p1 -b .vine
  194. )
  195. # ## dvipdfmx for Vine Linux
  196. # %patch20 -p1 -b .orig
  197. # )
  198. ## apply security patches
  199. %build
  200. set -x
  201. unset TEXINPUTS || :
  202. unset HOME || :
  203. %{tl11supp_source_common_sh}
  204. ## exec scripts/build.sh
  205. export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
  206. CXXFLAGS="$RPM_OPT_FLAGS" \
  207. LANG=C
  208. scripts/build.sh %{tl11supp_all_opts} || exit 1
  209. %install
  210. ## prepare %%install session
  211. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  212. set -x
  213. unset TEXINPUTS || :
  214. unset HOME || :
  215. %{tl11supp_source_common_sh}
  216. ## The following lines are useful for the call of
  217. ## "rpmbuild -ba --short-circuit ~/rpm/SPECS/texlive-vl.spec"
  218. %__rm -rf ${SRCDIR}/inst
  219. (cd ${SRCDIR}/Work
  220. %__make world
  221. )
  222. ## exec scripts/build-post.sh (Vine Linux only)
  223. scripts/build-post.sh %{tl11supp_all_opts} || exit 1
  224. [ -d $SRCDIR/inst/texmf.orig ] && %__rm -rf $SRCDIR/inst/texmf.orig || exit 1
  225. ## almostly exec scripts/texmf.sh
  226. scripts/texmf.sh %{tl11supp_all_opts} || exit 1
  227. ## almostly exec scripts/font.sh
  228. yes N | scripts/font.sh %{tl11supp_all_opts} || exit 1
  229. ## replace updmap{,-hdr}.cfg with our updmap{,-hdr}.cfg respectively
  230. %__cp -af %{SOURCE5} $SRCDIR/inst/texmf/web2c/updmap-hdr.cfg || exit 1
  231. %__cp -af %{SOURCE6} $SRCDIR/inst/texmf/web2c/updmap.cfg || exit 1
  232. ## almostly exec scripts/install.sh
  233. %__mkdir_p %{build_tex_destdir}
  234. (cd $SRCDIR/inst && tar cf - *) \
  235. | (cd %{build_tex_destdir} && tar xf -) || exit 1
  236. ## check japanese.ldf (Babel for Japanese)
  237. [ -f %{build_texmf}/tex/platex/japanese/japanese.ldf ] || exit 1
  238. [ -f %{build_texmf}/tex/platex/japanese/ptex.log ] || exit 1
  239. [ -f %{build_texmf}/tex/platex/japanese/texput.log ] && exit 1
  240. ## remove the symbolic link texmf-dist@
  241. [ -L %{build_tex_destdir}/texmf-dist ] && \
  242. %__rm -f %{build_tex_destdir}/texmf-dist || exit 1
  243. ## remove lcdf-typetools-for-tex-live directory
  244. #%__rm -r %{build_tex_destdir}/lcdf-typetools-for-tex-live || exit 1
  245. ## remove unused directories in texmf/fonts/map
  246. %__rm -rf %{build_texmf}/fonts/map/dvips/updmap || exit 1
  247. %__rm -rf %{build_texmf}/fonts/map/pdftex/updmap || exit 1
  248. ## move bin, lib include, man, info to /usr, resp.
  249. %__rm -f %{build_tex_destdir}/bin/man || exit 1
  250. %__mv %{build_tex_destdir}/bin %{buildroot}%{_bindir} || exit 1
  251. %__mv %{build_tex_destdir}/lib %{buildroot}%{_libdir} || exit 1
  252. %__mv %{build_tex_destdir}/include %{buildroot}%{_includedir} || exit 1
  253. %__cp -ar %{build_texmf}/doc/man %{buildroot}%{_mandir} || exit 1
  254. #%__mv %{build_texmf}/doc/info %{buildroot}%{_infodir} || exit 1
  255. ## move dvipdfmx/newmap/{ptex,otf} to dvipdfmx/{ptex,otf}, resp.
  256. %__mv %{build_texmf}/fonts/map/dvipdfmx/newmap/* %{build_texmf}/fonts/map/dvipdfmx/ || exit 1
  257. %__rm -rf %{build_texmf}/fonts/map/dvipdfmx/newmap
  258. ## make some fundamental texmf trees
  259. %__mkdir_p %{build_texmf}-{config,var,local,dist}
  260. %__mkdir_p %{build_texmf}/fonts/{truetype,opentype}
  261. texmf_local_dirs=(
  262. bibtex/bib/local
  263. bibtex/bst/local
  264. dvips/local
  265. fonts/source/local
  266. fonts/tfm/local
  267. fonts/opentype/local
  268. fonts/truetype/local
  269. fonts/type1/local
  270. fonts/vf/local
  271. metapost/local
  272. pbibtex/bib/local
  273. pbibtex/bst/local
  274. tex/latex/local
  275. tex/plain/local
  276. tex/platex/local
  277. web2c
  278. )
  279. for i in ${texmf_local_dirs[@]}; do
  280. %__mkdir_p %{build_texmf}-local/${i}
  281. done
  282. ## copy texmf-dist/README
  283. %__cp -a %{texlive_src}/texmf-dist/README %{build_texmf}-dist/ || exit 1
  284. ## customize updmap.cfg
  285. %__sed -i -e "s,^\(Map\|MixedMap\),#! \1,g" %{build_texmf}/web2c/updmap.cfg
  286. ## dvipdfmx: our map file
  287. %__mkdir_p %{build_texmf}/fonts/map/dvipdfmx
  288. touch %{build_texmf}/fonts/map/dvipdfmx/vine.map
  289. ## install jtygm.sty
  290. %__mkdir_p %{build_texmf}/tex/platex/base/
  291. %__install -m0644 %{SOURCE102} %{build_texmf}/tex/platex/base/ || exit 1
  292. ## relocate binaries to %{_bindir} and fix relative symlinks
  293. pushd %{buildroot}%{_bindir}
  294. for i in `find . -type l`; do
  295. if [ "`readlink $i | grep '..' | wc -l`" == "1" ]; then
  296. l=`readlink $i | sed s,../,../share/,`
  297. %__ln_s -f $l $i
  298. fi
  299. done
  300. ## if the real file of a symlink on /usr/bin is contained
  301. ## in texlive-collection-*, remove its symlink
  302. ## See __usr_bin_symlink.sh
  303. del_symlnks=(
  304. texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh
  305. texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex
  306. texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc
  307. texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro
  308. texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py
  309. texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph
  310. texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl
  311. texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl
  312. texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man
  313. texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl
  314. texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl
  315. texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl
  316. texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl
  317. texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh
  318. texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl
  319. texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180
  320. texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270
  321. texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90
  322. texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook
  323. texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl
  324. texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip
  325. texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam
  326. texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
  327. texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up
  328. texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up
  329. texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin
  330. texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup
  331. texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun
  332. texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl
  333. texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper
  334. texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps
  335. texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl
  336. texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl
  337. texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl
  338. texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff
  339. texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten
  340. texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser
  341. texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm
  342. texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst
  343. texlive-collection-fontutils,/usr/bin/cmap2enc,/usr/share/texmf-dist/scripts/fontools/cmap2enc
  344. texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl
  345. texlive-collection-fontutils,/usr/bin/font2afm,/usr/share/texmf-dist/scripts/fontools/font2afm
  346. texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font
  347. texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx
  348. texlive-collection-fontutils,/usr/bin/pfm2kpx,/usr/share/texmf-dist/scripts/fontools/pfm2kpx
  349. texlive-collection-fontutils,/usr/bin/showglyphs,/usr/share/texmf-dist/scripts/fontools/showglyphs
  350. texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp
  351. texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl
  352. texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh
  353. texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh
  354. texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh
  355. texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh
  356. texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh
  357. texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh
  358. texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh
  359. texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh
  360. texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl
  361. texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex
  362. texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py
  363. texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl
  364. texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl
  365. texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex
  366. texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries
  367. texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl
  368. texlive-collection-latexextra,/usr/bin/pdfthumb,/usr/share/texmf-dist/scripts/ppower4/pdfthumb.tlu
  369. texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl
  370. texlive-collection-latexextra,/usr/bin/ppower4,/usr/share/texmf-dist/scripts/ppower4/ppower4.tlu
  371. texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf
  372. texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl
  373. texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl
  374. texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl
  375. texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl
  376. texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua
  377. texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua
  378. texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua
  379. texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu
  380. texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb
  381. texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl
  382. texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex
  383. texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl
  384. texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf
  385. texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl
  386. )
  387. for i in ${del_symlnks[@]}; do
  388. %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1
  389. done
  390. ## remove man files of psutils
  391. %__rm \
  392. %{buildroot}%{_mandir}/man1/epsffit.1 \
  393. %{buildroot}%{_mandir}/man1/extractres.1 \
  394. %{buildroot}%{_mandir}/man1/fixdlsrps.1 \
  395. %{buildroot}%{_mandir}/man1/fixfmps.1 \
  396. %{buildroot}%{_mandir}/man1/fixpsditps.1 \
  397. %{buildroot}%{_mandir}/man1/fixpspps.1 \
  398. %{buildroot}%{_mandir}/man1/fixscribeps.1 \
  399. %{buildroot}%{_mandir}/man1/fixtpps.1 \
  400. %{buildroot}%{_mandir}/man1/fixwfwps.1 \
  401. %{buildroot}%{_mandir}/man1/fixwpps.1 \
  402. %{buildroot}%{_mandir}/man1/fixwwps.1 \
  403. %{buildroot}%{_mandir}/man1/getafm.1 \
  404. %{buildroot}%{_mandir}/man1/includeres.1 \
  405. %{buildroot}%{_mandir}/man1/psbook.1 \
  406. %{buildroot}%{_mandir}/man1/psmerge.1 \
  407. %{buildroot}%{_mandir}/man1/psnup.1 \
  408. %{buildroot}%{_mandir}/man1/psresize.1 \
  409. %{buildroot}%{_mandir}/man1/psselect.1 \
  410. %{buildroot}%{_mandir}/man1/pstops.1 \
  411. || exit 1
  412. ## remove man files of lcdf-typetools
  413. %__rm \
  414. %{buildroot}%{_mandir}/man1/cfftot1.1 \
  415. %{buildroot}%{_mandir}/man1/mmafm.1 \
  416. %{buildroot}%{_mandir}/man1/mmpfb.1 \
  417. %{buildroot}%{_mandir}/man1/otfinfo.1 \
  418. %{buildroot}%{_mandir}/man1/otftotfm.1 \
  419. %{buildroot}%{_mandir}/man1/t1dotlessj.1 \
  420. %{buildroot}%{_mandir}/man1/t1lint.1 \
  421. %{buildroot}%{_mandir}/man1/t1rawafm.1 \
  422. %{buildroot}%{_mandir}/man1/t1reencode.1 \
  423. %{buildroot}%{_mandir}/man1/t1testpage.1 \
  424. %{buildroot}%{_mandir}/man1/ttftotype42.1 \
  425. || exit 1
  426. ## remove man files of dvipng
  427. %__rm \
  428. %{buildroot}%{_mandir}/man1/dvigif.1 \
  429. %{buildroot}%{_mandir}/man1/dvipng.1 \
  430. || exit 1
  431. ## remove some files of asymptote
  432. %__rm \
  433. %{buildroot}%{_mandir}/man1/asy.1 \
  434. %{buildroot}%{_mandir}/man1/xasy.1 \
  435. %{build_texmf}/tex/latex/asymptote/asymptote.sty \
  436. %{build_texmf}/tex/latex/asymptote/ocg.sty \
  437. || exit 1
  438. ## remove a man file of latexmk
  439. %__rm \
  440. %{buildroot}%{_mandir}/man1/latexmk.1 \
  441. || exit 1
  442. ## remove a man file of detex
  443. %__rm \
  444. %{buildroot}%{_mandir}/man1/detex.1 \
  445. || exit 1
  446. # remove unpackaged files
  447. find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \;
  448. find %{buildroot}%{_datadir} -name ls-R -exec %__rm -f {} \;
  449. find %{buildroot}%{_mandir} -name Makefile -exec %__rm -f {} \;
  450. find %{buildroot}%{_mandir} -name *.pdf -exec %__rm -f {} \;
  451. # ## compress info files
  452. # %__rm -f %{buildroot}%{_infodir}/dir
  453. # %__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
  454. ## desktop things
  455. %__mkdir_p %{buildroot}%{_datadir}/applications
  456. %__install -m0644 -c %{SOURCE10} %{SOURCE11} \
  457. %{buildroot}%{_datadir}/applications/
  458. # for created fonts
  459. %__mkdir_p %{buildroot}%{vartexfonts}
  460. %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily
  461. %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/
  462. ## set executable bit for the library
  463. %if %{enable_sharedlib}
  464. %__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.*
  465. %__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.*
  466. %endif
  467. ## remove unpackaging files
  468. find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f
  469. find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f
  470. ### Files list
  471. find %{buildroot} -type f -or -type l | \
  472. %__sed -e "s|%{buildroot}||g" | \
  473. %__grep -v -e "^%{_sysconfdir}" -e ".patch$" -e "\.diff$" -e "\.orig$" | \
  474. %__grep -v "%{_includedir}" | \
  475. %__grep -v "%{_libdir}" | \
  476. %__grep -v "%{_infodir}" | \
  477. %__sed -e "s|.*\.\(cnf\|cfg\)$|%config(noreplace) &|" \
  478. -e "s|.*ls-R$|%ghost &|" \
  479. -e "s|^.*/updmap$|%config &|" \
  480. -e "s|%{texmf}*/dvips/config/\(psfonts.*\|ps2pk.*\|pdftex.*\|dvipdfm.*\|.*35\)\.map$|%ghost &|" \
  481. -e "s|%{texmf}*/web2c/.*\.\(fmt\|efmt\|log\|base\|mem\|oft\)$|%config &|" \
  482. -e "s|%{texmf}*/dvips/config/config\.\(generic\|pdf\|ps\|www\)$|%config &|" \
  483. -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \
  484. -e "s|%{texmf}*/pdftex/config/pdftex.cfg$|%config &|" \
  485. -e "s|%{texmf}*/xdvi/vfontmap$|%config &|" \
  486. -e "s|%{texmf}*/xdvi/XDvi|%config &|" \
  487. -e "s|%{_mandir}/.*|&*|" \
  488. > %{_builddir}/%{name}-%{version}/filelist.full
  489. find %{buildroot}%{texmf}* -type d | \
  490. %__sed -e "s|^%{buildroot}|%dir |" \
  491. -e "s|$|/|" >> %{_builddir}/%{name}-%{version}/filelist.full
  492. ## subpackages
  493. %__grep -e "/texmf/doc/" -e "/texdoc" %{_builddir}/%{name}-%{version}/filelist.full > %{_builddir}/%{name}-%{version}/filelist.doc
  494. cat %{_builddir}/%{name}-%{version}/filelist.doc \
  495. %{_builddir}/%{name}-%{version}/filelist.full | \
  496. sort | uniq -u > %{_builddir}/%{name}-%{version}/filelist.tmp
  497. %__mv -f %{_builddir}/%{name}-%{version}/filelist.tmp %{_builddir}/%{name}-%{version}/filelist.full
  498. %clean
  499. %__rm -rf %{buildroot}
  500. %pretrans
  501. rpm -q texlive | grep -q 2009
  502. [ $? -eq 1 ] && exit 0
  503. ## upgrade TeX Live from 2009 to 2011
  504. _trans_time=$(date +%Y%m%d)
  505. echo "Running transitional process of your TeX system ... "
  506. for dir in %{texmf}-var %{texmf}-config; do
  507. _trans_dir=${dir}.${_trans_time}.rpmorig
  508. [ -d ${_trans_dir}.old ] && \
  509. echo -n " " && \
  510. echo "Found ${_trans_dir}.old: " && \
  511. echo -n " " && \
  512. %__rm -rvf ${_trans_dir}.old
  513. [ -d ${_trans_dir} ] && \
  514. echo -n " " && \
  515. echo "Found ${_trans_dir}: " && \
  516. echo -n " " && \
  517. %__mv -v ${_trans_dir} ${_trans_dir}.old
  518. [ -d ${dir} ] && \
  519. echo -n " " && \
  520. echo "Found ${dir}: " && \
  521. echo -n " " && \
  522. %__mv -v ${dir} ${_trans_dir}
  523. done
  524. echo "done."
  525. %post
  526. ## create our own vine.map (cid-x.map) to use dvipdfmx
  527. ( %{exec_upddeffont} ) ||:
  528. %{exec_texhash}
  529. %{exec_updmap} --syncwithtrees --nomkmap &>/dev/null
  530. %{exec_updmap} --enable KanjiMap vine.map >/dev/null 2>&1
  531. exit 0
  532. %preun
  533. if [ "$1" = 0 ]; then
  534. %__rm -rf %{vartexfonts}
  535. ## dvipdfmx
  536. for i in %{texmf}/fonts/truetype/*; do
  537. if [ -L "$i" ]; then
  538. %__rm -f "$i"
  539. fi
  540. done
  541. fi
  542. %if %{enable_sharedlib}
  543. %post -n libkpathsea
  544. /sbin/ldconfig
  545. # /sbin/install-info %{_infodir}/kpathsea.info.* %{_infodir}/dir
  546. %preun -n libkpathsea
  547. # if [ "$1" = 0 ]; then
  548. # /sbin/install-info --delete %{_infodir}/kpathsea.info.* %{_infodir}/dir
  549. # fi
  550. %postun -n libkpathsea
  551. /sbin/ldconfig
  552. %post -n libptexenc
  553. /sbin/ldconfig
  554. %postun -n libptexenc
  555. /sbin/ldconfig
  556. %endif
  557. %posttrans
  558. %__mkdir_p %{vartexfonts}
  559. %__chmod 1777 %{vartexfonts}
  560. %triggerin -- ghostscript
  561. %__rm -f %{texmf}/fonts/cmap/ghostscript
  562. if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then
  563. %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{texmf}/fonts/cmap/ghostscript
  564. elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then
  565. %__ln_s %{_datadir}/ghostscript/Resource/CMap %{texmf}/fonts/cmap/ghostscript
  566. fi
  567. %{exec_texhash}
  568. %files -f %{_builddir}/%{name}-%{version}/filelist.full
  569. %defattr(-,root,root)
  570. %attr(1777,root,root) %dir %{vartexfonts}
  571. %config %{_sysconfdir}/cron.daily/texlive.cron
  572. %files doc -f %{_builddir}/%{name}-%{version}/filelist.doc
  573. %defattr(-,root,root)
  574. %if %{enable_sharedlib}
  575. %files -n libkpathsea
  576. %defattr(-,root,root)
  577. %{_libdir}/libkpathsea.so.*
  578. # %{_infodir}/kpathsea.info*
  579. %files -n libkpathsea-devel
  580. %defattr(-,root,root)
  581. %{_libdir}/libkpathsea.so
  582. %dir %{_includedir}/kpathsea
  583. %{_includedir}/kpathsea/*
  584. %files -n libptexenc
  585. %defattr(-,root,root)
  586. %{_libdir}/libptexenc.so.*
  587. %files -n libptexenc-devel
  588. %defattr(-,root,root)
  589. %{_libdir}/libptexenc.so
  590. %dir %{_includedir}/ptexenc
  591. %{_includedir}/ptexenc/*
  592. %endif
  593. %changelog
  594. * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-3
  595. - added BuildRequires: texlive-common
  596. - Babel needs docstrip.tex, which is contained in texlive-collection-latex
  597. - check japanese.ldf
  598. - updated tl11supp-111120-vine.patch
  599. - added the following options to $$TL_CONFIGURE_ARGS:
  600. --disable-detex
  601. --disable-dvipng
  602. --disable-lcdf-typetools
  603. - remove some files of asymptote
  604. - remove a man file of latexmk
  605. - remove man files of lcdf-typetools
  606. - remove man files of dvipng
  607. - remove a man file of detex
  608. * Mon Nov 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
  609. - added find-provides-texlive.sh and set it to %%__find_provides
  610. - use to find library sonames for libkpathsea and libptexenc
  611. - added cmex.enc (%%{SOURCE110})
  612. - do not install cmex.enc in our TDS, yet
  613. - removed some unused directories in texmf/fonts/map
  614. - removed man files of lcdf-typetools
  615. - moved texdoc{,tk} and its related files to texlive-doc
  616. * Wed Nov 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
  617. - TeX Live 2011 + tl11supp-111120
  618. * Thu Oct 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-22
  619. - make the directory VARTEXFONTS (%%posttrans)
  620. - dropped %%triggerpostun -- texlive < 2009-17vl6
  621. * Tue Jul 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-21
  622. - fixed ptexlive-20100711-dvipdfmx-vine.patch
  623. - for dvipdfmx.cfg, given some ps2pdf's parameters mistaked
  624. * Thu Jun 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-20
  625. - added %%pre to avoid conflictions of texmf-{config,var}
  626. * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-19
  627. - dropped Requires: texlive-common
  628. - added perl-Tk-TableMatrix
  629. - supported texdoctk
  630. - removed broken symbolic links in /usr/bin
  631. - for each these symbolic links, the package of its real file/path
  632. should be its owner.
  633. * Thu May 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-18
  634. - added %%triggerpostun -- texlive < 2009-17vl6
  635. - make the directory VARTEXFONTS
  636. * Tue May 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-17
  637. - fixed %%dir VARTEXFONTS around in %%files
  638. - dropped BuildRequires: t1utils
  639. * Tue Apr 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-16
  640. - updated texlive-20091107-texmfcnf-vine.patch, texlive.cron
  641. - changed VARTEXFONTS to /var/lib/texmf/fonts
  642. * Mon Apr 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-15
  643. - fixed updmap.cfg
  644. * Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-14
  645. - dropped Requires: texlive-macros
  646. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-13
  647. - updated ptexlive-20100711-pxdvik-vine.patch
  648. and added texlive-20091107-xdvik-vine.patch
  649. - fixed to adjust X resources in texmf/xdvi/XDvi for (p)xdvi
  650. * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-12
  651. - supported Vine Linux 5
  652. - for vl5, changed a requirement of Japanese VF package
  653. - added Requires: texlive-jvf = 2009 (vl5)
  654. - dropped dependencies of Provides:/Obsoletes: tags
  655. - merged these dependencies in texlive-common-vl.spec
  656. * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 2009-11
  657. - rebuilt with poppler-0.14.2 (libpoppler has been up to so.7)
  658. * Fri Sep 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-10
  659. - applied some security patches from Debian
  660. - texlive-2009-CVE-2010-0827.patch
  661. - texlive-2009-CVE-2010-1440.patch
  662. - applied texlive-2009-pdftexdir-libpoppler-0.12.patch from Debian
  663. - applied texlive-2009-luatexdir-libpoppler-0.12.patch
  664. based on texlive-2009-pdftexdir-libpoppler-0.12.patch
  665. - fixed some dependencies
  666. * Mon Aug 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-9
  667. - added BuildArch: noarch in %%package doc
  668. - removed some comment-out sentences
  669. * Tue Jul 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-8
  670. - separeted texmf-dist to texlive-common package
  671. * Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-7
  672. - unpacked texlive-20091107-source.tar.xz
  673. - babel is available now
  674. - applied eptex-100420 and some patches:
  675. - eptex-100420-vine.patch
  676. - eptex-100420-patch1.diff
  677. * Tue Jul 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6
  678. - updated ptexlive-20100711
  679. * Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5
  680. - customized updmap.cfg to correspond installed fonts
  681. * Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
  682. - fixed insttexfont()
  683. * Mon May 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  684. - added jvf of MORISAWA basic 5 fonts
  685. - added cm-super, mathdesign in fntlst
  686. * Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  687. - define insttexfont() in %%install
  688. - copy almost compatible tetex-3.0
  689. * Sat May 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  690. - ptexlive-20090322 + TeXLive 2009
  691. - added BuildRequires: openssl-devel
  692. * Sun Dec 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2008-0.20091206
  693. - ptexlive-20091009 + TeXLive 2008