texlive-vl.spec 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  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 120120
  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: 5%{?_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. %if %{without firstbuild}
  238. [ -f %{build_texmf}/tex/platex/japanese/japanese.ldf ] || exit 1
  239. [ -f %{build_texmf}/tex/platex/japanese/ptex.log ] || exit 1
  240. [ -f %{build_texmf}/tex/platex/japanese/texput.log ] && exit 1
  241. %endif
  242. ## remove the symbolic link texmf-dist@
  243. [ -L %{build_tex_destdir}/texmf-dist ] && \
  244. %__rm -f %{build_tex_destdir}/texmf-dist || exit 1
  245. ## remove lcdf-typetools-for-tex-live directory
  246. #%__rm -r %{build_tex_destdir}/lcdf-typetools-for-tex-live || exit 1
  247. ## remove unused directories in texmf/fonts/map
  248. %__rm -rf %{build_texmf}/fonts/map/dvips/updmap || exit 1
  249. %__rm -rf %{build_texmf}/fonts/map/pdftex/updmap || exit 1
  250. ## move bin, lib include, man, info to /usr, resp.
  251. %__rm -f %{build_tex_destdir}/bin/man || exit 1
  252. %__mv %{build_tex_destdir}/bin %{buildroot}%{_bindir} || exit 1
  253. %__mv %{build_tex_destdir}/lib %{buildroot}%{_libdir} || exit 1
  254. %__mv %{build_tex_destdir}/include %{buildroot}%{_includedir} || exit 1
  255. %__cp -ar %{build_texmf}/doc/man %{buildroot}%{_mandir} || exit 1
  256. #%__mv %{build_texmf}/doc/info %{buildroot}%{_infodir} || exit 1
  257. ## move dvipdfmx/newmap/{ptex,otf} to dvipdfmx/{ptex,otf}, resp.
  258. %__mv %{build_texmf}/fonts/map/dvipdfmx/newmap/* %{build_texmf}/fonts/map/dvipdfmx/ || exit 1
  259. %__rm -rf %{build_texmf}/fonts/map/dvipdfmx/newmap
  260. ## make some fundamental texmf trees
  261. %__mkdir_p %{build_texmf}-{config,var,local,dist}
  262. %__mkdir_p %{build_texmf}/fonts/{truetype,opentype}
  263. texmf_local_dirs=(
  264. bibtex/bib/local
  265. bibtex/bst/local
  266. dvips/local
  267. fonts/source/local
  268. fonts/tfm/local
  269. fonts/opentype/local
  270. fonts/truetype/local
  271. fonts/type1/local
  272. fonts/vf/local
  273. metapost/local
  274. pbibtex/bib/local
  275. pbibtex/bst/local
  276. tex/latex/local
  277. tex/plain/local
  278. tex/platex/local
  279. web2c
  280. )
  281. for i in ${texmf_local_dirs[@]}; do
  282. %__mkdir_p %{build_texmf}-local/${i}
  283. done
  284. ## copy texmf-dist/README
  285. %__cp -a %{texlive_src}/texmf-dist/README %{build_texmf}-dist/ || exit 1
  286. ## customize updmap.cfg
  287. %__sed -i -e "s,^\(Map\|MixedMap\),#! \1,g" %{build_texmf}/web2c/updmap.cfg
  288. ## dvipdfmx: our map file
  289. %__mkdir_p %{build_texmf}/fonts/map/dvipdfmx
  290. touch %{build_texmf}/fonts/map/dvipdfmx/vine.map
  291. ## install jtygm.sty
  292. %__mkdir_p %{build_texmf}/tex/platex/base/
  293. %__install -m0644 %{SOURCE102} %{build_texmf}/tex/platex/base/ || exit 1
  294. ## relocate binaries to %{_bindir} and fix relative symlinks
  295. pushd %{buildroot}%{_bindir}
  296. for i in `find . -type l`; do
  297. if [ "`readlink $i | grep '..' | wc -l`" == "1" ]; then
  298. l=`readlink $i | sed s,../,../share/,`
  299. %__ln_s -f $l $i
  300. fi
  301. done
  302. ## if the real file of a symlink on /usr/bin is contained
  303. ## in texlive-collection-*, remove its symlink
  304. ## See __usr_bin_symlink.sh
  305. del_symlnks=(
  306. texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh
  307. texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex
  308. texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc
  309. texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro
  310. texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py
  311. texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph
  312. texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl
  313. texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl
  314. texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man
  315. texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl
  316. texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl
  317. texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl
  318. texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl
  319. texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh
  320. texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl
  321. texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180
  322. texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270
  323. texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90
  324. texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook
  325. texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl
  326. texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip
  327. texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam
  328. texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
  329. texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up
  330. texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up
  331. texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin
  332. texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup
  333. texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun
  334. texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl
  335. texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper
  336. texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps
  337. texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl
  338. texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl
  339. texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl
  340. texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff
  341. texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten
  342. texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser
  343. texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm
  344. texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst
  345. texlive-collection-fontutils,/usr/bin/cmap2enc,/usr/share/texmf-dist/scripts/fontools/cmap2enc
  346. texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl
  347. texlive-collection-fontutils,/usr/bin/font2afm,/usr/share/texmf-dist/scripts/fontools/font2afm
  348. texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font
  349. texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx
  350. texlive-collection-fontutils,/usr/bin/pfm2kpx,/usr/share/texmf-dist/scripts/fontools/pfm2kpx
  351. texlive-collection-fontutils,/usr/bin/showglyphs,/usr/share/texmf-dist/scripts/fontools/showglyphs
  352. texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp
  353. texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl
  354. texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh
  355. texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh
  356. texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh
  357. texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh
  358. texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh
  359. texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh
  360. texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh
  361. texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh
  362. texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl
  363. texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex
  364. texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py
  365. texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl
  366. texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl
  367. texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex
  368. texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries
  369. texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl
  370. texlive-collection-latexextra,/usr/bin/pdfthumb,/usr/share/texmf-dist/scripts/ppower4/pdfthumb.tlu
  371. texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl
  372. texlive-collection-latexextra,/usr/bin/ppower4,/usr/share/texmf-dist/scripts/ppower4/ppower4.tlu
  373. texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf
  374. texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl
  375. texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl
  376. texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl
  377. texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl
  378. texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua
  379. texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua
  380. texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua
  381. texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu
  382. texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb
  383. texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl
  384. texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex
  385. texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl
  386. texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf
  387. texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl
  388. )
  389. for i in ${del_symlnks[@]}; do
  390. %__rm -f %{buildroot}$(echo $i | cut -f 2 -d",") || exit 1
  391. done
  392. ## remove man files of psutils
  393. %__rm \
  394. %{buildroot}%{_mandir}/man1/epsffit.1 \
  395. %{buildroot}%{_mandir}/man1/extractres.1 \
  396. %{buildroot}%{_mandir}/man1/fixdlsrps.1 \
  397. %{buildroot}%{_mandir}/man1/fixfmps.1 \
  398. %{buildroot}%{_mandir}/man1/fixpsditps.1 \
  399. %{buildroot}%{_mandir}/man1/fixpspps.1 \
  400. %{buildroot}%{_mandir}/man1/fixscribeps.1 \
  401. %{buildroot}%{_mandir}/man1/fixtpps.1 \
  402. %{buildroot}%{_mandir}/man1/fixwfwps.1 \
  403. %{buildroot}%{_mandir}/man1/fixwpps.1 \
  404. %{buildroot}%{_mandir}/man1/fixwwps.1 \
  405. %{buildroot}%{_mandir}/man1/getafm.1 \
  406. %{buildroot}%{_mandir}/man1/includeres.1 \
  407. %{buildroot}%{_mandir}/man1/psbook.1 \
  408. %{buildroot}%{_mandir}/man1/psmerge.1 \
  409. %{buildroot}%{_mandir}/man1/psnup.1 \
  410. %{buildroot}%{_mandir}/man1/psresize.1 \
  411. %{buildroot}%{_mandir}/man1/psselect.1 \
  412. %{buildroot}%{_mandir}/man1/pstops.1 \
  413. || exit 1
  414. ## remove man files of lcdf-typetools
  415. %__rm \
  416. %{buildroot}%{_mandir}/man1/cfftot1.1 \
  417. %{buildroot}%{_mandir}/man1/mmafm.1 \
  418. %{buildroot}%{_mandir}/man1/mmpfb.1 \
  419. %{buildroot}%{_mandir}/man1/otfinfo.1 \
  420. %{buildroot}%{_mandir}/man1/otftotfm.1 \
  421. %{buildroot}%{_mandir}/man1/t1dotlessj.1 \
  422. %{buildroot}%{_mandir}/man1/t1lint.1 \
  423. %{buildroot}%{_mandir}/man1/t1rawafm.1 \
  424. %{buildroot}%{_mandir}/man1/t1reencode.1 \
  425. %{buildroot}%{_mandir}/man1/t1testpage.1 \
  426. %{buildroot}%{_mandir}/man1/ttftotype42.1 \
  427. || exit 1
  428. ## remove man files of dvipng
  429. %__rm \
  430. %{buildroot}%{_mandir}/man1/dvigif.1 \
  431. %{buildroot}%{_mandir}/man1/dvipng.1 \
  432. || exit 1
  433. ## remove some files of asymptote
  434. %__rm \
  435. %{buildroot}%{_mandir}/man1/asy.1 \
  436. %{buildroot}%{_mandir}/man1/xasy.1 \
  437. %{build_texmf}/tex/latex/asymptote/asymptote.sty \
  438. %{build_texmf}/tex/latex/asymptote/ocg.sty \
  439. || exit 1
  440. ## remove a man file of latexmk
  441. %__rm \
  442. %{buildroot}%{_mandir}/man1/latexmk.1 \
  443. || exit 1
  444. ## remove a man file of detex
  445. %__rm \
  446. %{buildroot}%{_mandir}/man1/detex.1 \
  447. || exit 1
  448. # remove unpackaged files
  449. find $RPM_BUILD_ROOT -name *.la -exec %__rm -f {} \;
  450. find %{buildroot}%{_datadir} -name ls-R -exec %__rm -f {} \;
  451. find %{buildroot}%{_mandir} -name Makefile -exec %__rm -f {} \;
  452. find %{buildroot}%{_mandir} -name *.pdf -exec %__rm -f {} \;
  453. # ## compress info files
  454. # %__rm -f %{buildroot}%{_infodir}/dir
  455. # %__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
  456. ## desktop things
  457. %__mkdir_p %{buildroot}%{_datadir}/applications
  458. %__install -m0644 -c %{SOURCE10} %{SOURCE11} \
  459. %{buildroot}%{_datadir}/applications/
  460. # for created fonts
  461. %__mkdir_p %{buildroot}%{vartexfonts}
  462. %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily
  463. %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/
  464. ## set executable bit for the library
  465. %if %{enable_sharedlib}
  466. %__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.*
  467. %__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.*
  468. %endif
  469. ## remove unpackaging files
  470. find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f
  471. find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f
  472. ### Files list
  473. find %{buildroot} -type f -or -type l | \
  474. %__sed -e "s|%{buildroot}||g" | \
  475. %__grep -v -e "^%{_sysconfdir}" -e ".patch$" -e "\.diff$" -e "\.orig$" | \
  476. %__grep -v "%{_includedir}" | \
  477. %__grep -v "%{_libdir}" | \
  478. %__grep -v "%{_infodir}" | \
  479. %__sed -e "s|.*\.\(cnf\|cfg\)$|%config(noreplace) &|" \
  480. -e "s|.*ls-R$|%ghost &|" \
  481. -e "s|^.*/updmap$|%config &|" \
  482. -e "s|%{texmf}*/dvips/config/\(psfonts.*\|ps2pk.*\|pdftex.*\|dvipdfm.*\|.*35\)\.map$|%ghost &|" \
  483. -e "s|%{texmf}*/web2c/.*\.\(fmt\|efmt\|log\|base\|mem\|oft\)$|%config &|" \
  484. -e "s|%{texmf}*/dvips/config/config\.\(generic\|pdf\|ps\|www\)$|%config &|" \
  485. -e "s|%{texmf}*/tex/generic/config/.*|%config &|" \
  486. -e "s|%{texmf}*/pdftex/config/pdftex.cfg$|%config &|" \
  487. -e "s|%{texmf}*/xdvi/vfontmap$|%config &|" \
  488. -e "s|%{texmf}*/xdvi/XDvi|%config &|" \
  489. -e "s|%{_mandir}/.*|&*|" \
  490. > %{_builddir}/%{name}-%{version}/filelist.full
  491. find %{buildroot}%{texmf}* -type d | \
  492. %__sed -e "s|^%{buildroot}|%dir |" \
  493. -e "s|$|/|" >> %{_builddir}/%{name}-%{version}/filelist.full
  494. ## subpackages
  495. %__grep -e "/texmf/doc/" -e "/texdoc" %{_builddir}/%{name}-%{version}/filelist.full > %{_builddir}/%{name}-%{version}/filelist.doc
  496. cat %{_builddir}/%{name}-%{version}/filelist.doc \
  497. %{_builddir}/%{name}-%{version}/filelist.full | \
  498. sort | uniq -u > %{_builddir}/%{name}-%{version}/filelist.tmp
  499. %__mv -f %{_builddir}/%{name}-%{version}/filelist.tmp %{_builddir}/%{name}-%{version}/filelist.full
  500. %clean
  501. %__rm -rf %{buildroot}
  502. %pretrans
  503. rpm -q texlive | grep -q 2009
  504. [ $? -eq 1 ] && exit 0
  505. ## upgrade TeX Live from 2009 to 2011
  506. _trans_time=$(date +%Y%m%d)
  507. echo "Running transitional process of your TeX system ... "
  508. for dir in %{texmf}-var %{texmf}-config; do
  509. _trans_dir=${dir}.${_trans_time}.rpmorig
  510. [ -d ${_trans_dir}.old ] && \
  511. echo -n " " && \
  512. echo "Found ${_trans_dir}.old: " && \
  513. echo -n " " && \
  514. %__rm -rvf ${_trans_dir}.old
  515. [ -d ${_trans_dir} ] && \
  516. echo -n " " && \
  517. echo "Found ${_trans_dir}: " && \
  518. echo -n " " && \
  519. %__mv -v ${_trans_dir} ${_trans_dir}.old
  520. [ -d ${dir} ] && \
  521. echo -n " " && \
  522. echo "Found ${dir}: " && \
  523. echo -n " " && \
  524. %__mv -v ${dir} ${_trans_dir}
  525. done
  526. echo "done."
  527. %post
  528. ## create our own vine.map (cid-x.map) to use dvipdfmx
  529. ( %{exec_upddeffont} ) ||:
  530. %{exec_texhash}
  531. %{exec_updmap} --syncwithtrees --nomkmap &>/dev/null
  532. %{exec_updmap} --enable KanjiMap vine.map >/dev/null 2>&1
  533. if [ "$1" = 2 ]; then
  534. %{exec_fmtutil} 2>&1
  535. fi
  536. exit 0
  537. %preun
  538. if [ "$1" = 0 ]; then
  539. %__rm -rf %{vartexfonts}
  540. ## dvipdfmx
  541. for i in %{texmf}/fonts/truetype/*; do
  542. if [ -L "$i" ]; then
  543. %__rm -f "$i"
  544. fi
  545. done
  546. fi
  547. %if %{enable_sharedlib}
  548. %post -n libkpathsea
  549. /sbin/ldconfig
  550. # /sbin/install-info %{_infodir}/kpathsea.info.* %{_infodir}/dir
  551. %preun -n libkpathsea
  552. # if [ "$1" = 0 ]; then
  553. # /sbin/install-info --delete %{_infodir}/kpathsea.info.* %{_infodir}/dir
  554. # fi
  555. %postun -n libkpathsea
  556. /sbin/ldconfig
  557. %post -n libptexenc
  558. /sbin/ldconfig
  559. %postun -n libptexenc
  560. /sbin/ldconfig
  561. %endif
  562. %posttrans
  563. %__mkdir_p %{vartexfonts}
  564. %__chmod 1777 %{vartexfonts}
  565. %triggerin -- ghostscript
  566. %__rm -f %{texmf}/fonts/cmap/ghostscript
  567. if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then
  568. %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{texmf}/fonts/cmap/ghostscript
  569. elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then
  570. %__ln_s %{_datadir}/ghostscript/Resource/CMap %{texmf}/fonts/cmap/ghostscript
  571. fi
  572. %{exec_texhash}
  573. %files -f %{_builddir}/%{name}-%{version}/filelist.full
  574. %defattr(-,root,root)
  575. %attr(1777,root,root) %dir %{vartexfonts}
  576. %config %{_sysconfdir}/cron.daily/texlive.cron
  577. %files doc -f %{_builddir}/%{name}-%{version}/filelist.doc
  578. %defattr(-,root,root)
  579. %if %{enable_sharedlib}
  580. %files -n libkpathsea
  581. %defattr(-,root,root)
  582. %{_libdir}/libkpathsea.so.*
  583. # %{_infodir}/kpathsea.info*
  584. %files -n libkpathsea-devel
  585. %defattr(-,root,root)
  586. %{_libdir}/libkpathsea.so
  587. %dir %{_includedir}/kpathsea
  588. %{_includedir}/kpathsea/*
  589. %files -n libptexenc
  590. %defattr(-,root,root)
  591. %{_libdir}/libptexenc.so.*
  592. %files -n libptexenc-devel
  593. %defattr(-,root,root)
  594. %{_libdir}/libptexenc.so
  595. %dir %{_includedir}/ptexenc
  596. %{_includedir}/ptexenc/*
  597. %endif
  598. %changelog
  599. * Thu Jan 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-5
  600. - updated to tl11supp-120120
  601. - run %%{exec_fmtutil} at %%post when upgrading
  602. * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-4
  603. - updated to tl11supp-111214
  604. * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-3
  605. - added BuildRequires: texlive-common
  606. - Babel needs docstrip.tex, which is contained in texlive-collection-latex
  607. - check japanese.ldf
  608. - updated tl11supp-111120-vine.patch
  609. - added the following options to $$TL_CONFIGURE_ARGS:
  610. --disable-detex
  611. --disable-dvipng
  612. --disable-lcdf-typetools
  613. - remove some files of asymptote
  614. - remove a man file of latexmk
  615. - remove man files of lcdf-typetools
  616. - remove man files of dvipng
  617. - remove a man file of detex
  618. * Mon Nov 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
  619. - added find-provides-texlive.sh and set it to %%__find_provides
  620. - use to find library sonames for libkpathsea and libptexenc
  621. - added cmex.enc (%%{SOURCE110})
  622. - do not install cmex.enc in our TDS, yet
  623. - removed some unused directories in texmf/fonts/map
  624. - removed man files of lcdf-typetools
  625. - moved texdoc{,tk} and its related files to texlive-doc
  626. * Wed Nov 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
  627. - TeX Live 2011 + tl11supp-111120
  628. * Thu Oct 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-22
  629. - make the directory VARTEXFONTS (%%posttrans)
  630. - dropped %%triggerpostun -- texlive < 2009-17vl6
  631. * Tue Jul 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-21
  632. - fixed ptexlive-20100711-dvipdfmx-vine.patch
  633. - for dvipdfmx.cfg, given some ps2pdf's parameters mistaked
  634. * Thu Jun 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-20
  635. - added %%pre to avoid conflictions of texmf-{config,var}
  636. * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-19
  637. - dropped Requires: texlive-common
  638. - added perl-Tk-TableMatrix
  639. - supported texdoctk
  640. - removed broken symbolic links in /usr/bin
  641. - for each these symbolic links, the package of its real file/path
  642. should be its owner.
  643. * Thu May 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-18
  644. - added %%triggerpostun -- texlive < 2009-17vl6
  645. - make the directory VARTEXFONTS
  646. * Tue May 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-17
  647. - fixed %%dir VARTEXFONTS around in %%files
  648. - dropped BuildRequires: t1utils
  649. * Tue Apr 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-16
  650. - updated texlive-20091107-texmfcnf-vine.patch, texlive.cron
  651. - changed VARTEXFONTS to /var/lib/texmf/fonts
  652. * Mon Apr 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-15
  653. - fixed updmap.cfg
  654. * Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-14
  655. - dropped Requires: texlive-macros
  656. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-13
  657. - updated ptexlive-20100711-pxdvik-vine.patch
  658. and added texlive-20091107-xdvik-vine.patch
  659. - fixed to adjust X resources in texmf/xdvi/XDvi for (p)xdvi
  660. * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-12
  661. - supported Vine Linux 5
  662. - for vl5, changed a requirement of Japanese VF package
  663. - added Requires: texlive-jvf = 2009 (vl5)
  664. - dropped dependencies of Provides:/Obsoletes: tags
  665. - merged these dependencies in texlive-common-vl.spec
  666. * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 2009-11
  667. - rebuilt with poppler-0.14.2 (libpoppler has been up to so.7)
  668. * Fri Sep 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-10
  669. - applied some security patches from Debian
  670. - texlive-2009-CVE-2010-0827.patch
  671. - texlive-2009-CVE-2010-1440.patch
  672. - applied texlive-2009-pdftexdir-libpoppler-0.12.patch from Debian
  673. - applied texlive-2009-luatexdir-libpoppler-0.12.patch
  674. based on texlive-2009-pdftexdir-libpoppler-0.12.patch
  675. - fixed some dependencies
  676. * Mon Aug 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-9
  677. - added BuildArch: noarch in %%package doc
  678. - removed some comment-out sentences
  679. * Tue Jul 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-8
  680. - separeted texmf-dist to texlive-common package
  681. * Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-7
  682. - unpacked texlive-20091107-source.tar.xz
  683. - babel is available now
  684. - applied eptex-100420 and some patches:
  685. - eptex-100420-vine.patch
  686. - eptex-100420-patch1.diff
  687. * Tue Jul 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6
  688. - updated ptexlive-20100711
  689. * Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5
  690. - customized updmap.cfg to correspond installed fonts
  691. * Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
  692. - fixed insttexfont()
  693. * Mon May 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  694. - added jvf of MORISAWA basic 5 fonts
  695. - added cm-super, mathdesign in fntlst
  696. * Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  697. - define insttexfont() in %%install
  698. - copy almost compatible tetex-3.0
  699. * Sat May 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  700. - ptexlive-20090322 + TeXLive 2009
  701. - added BuildRequires: openssl-devel
  702. * Sun Dec 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2008-0.20091206
  703. - ptexlive-20091009 + TeXLive 2008