texlive-vl.spec 32 KB

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