texlive-vl.spec 29 KB

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