texlive-vl.spec 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. # -*- coding: utf-8-unix -*-
  2. %bcond_with firstbuild
  3. # * depend libX*
  4. # inimf
  5. # mf
  6. # pdfclose
  7. # pdfopen
  8. # pxdvi-motif
  9. # xdvi-motif
  10. %global _use_internal_dependency_generator 0
  11. %global __find_provides %{SOURCE99}
  12. %global __find_requires %{nil}
  13. %global texlivesrcver 20130919
  14. Summary: The TeX text formatting system
  15. Summary(ja): TeX 文書整形システム
  16. Name: texlive
  17. Version: 2013
  18. Release: 2%{?_dist_release}
  19. License: distributable
  20. Group: Applications/Publishing
  21. URL: http://www.tug.org/texlive/
  22. ## original TeX Live source
  23. #Source: ftp://tug.org/historic/systems/texlive/%{version}/%{name}-%{texlivesrcver}-source.tar.xz
  24. ## snapshot
  25. # $ rsync -a --delete --exclude=.svn tug.org::tldevsrc/Build/source/ texlive-source-YYYYMMDD
  26. # $ tar -cf - texlive-source-YYYYMMDD | pxz -9 > texlive-source-YYYYMMDD.tar.xz
  27. Source: %{name}-source-%{texlivesrcver}.tar.xz
  28. ## tlptexlive: pmetapost
  29. Source1: http://www.preining.info/software/build-tlptexlive-20130815.zip
  30. Source2: http://www.tug.org/texlive/updmap-kanji.html
  31. ## our updmap{,-hdr}.cfg from collection-basic 20130823
  32. # NOTE:
  33. # * texmf.cnf: we use the conf file texmf.cnf generated from Source0
  34. Source6: updmap-hdr.cfg.texlive-%{texlivesrcver}
  35. Source7: updmap.cfg.texlive-%{texlivesrcver}
  36. ## desktop files
  37. # Source10: pxdvi.desktop
  38. Source11: texdoctk.desktop
  39. # ## pxdvi from tlptexlive 2012
  40. # Source50: texlive-source-xdvik-20130106.tar.xz
  41. # Source51: http://www.preining.info/software/build-tlptexlive-20130106.zip
  42. ## find library sonames for libkpathsea and libptexenc
  43. Source99: find-provides-texlive.sh
  44. ## etc...
  45. #Source100: texlive.cron
  46. ######
  47. # TeX patches
  48. ######
  49. ## vine
  50. Patch0: reautoconf-parallel.diff
  51. Patch1: texlive-%{texlivesrcver}-vine.patch
  52. Patch2: texlive-%{texlivesrcver}-texmfcnf-vine.patch
  53. Patch3: texlive-%{texlivesrcver}-set-selfautoparent-vine.patch
  54. #Patch10: texlive-%{texlivesrcver}-pxdvik-vine.patch
  55. ## security
  56. Requires: coreutils
  57. Requires: ed mktemp
  58. Requires: tmpwatch
  59. Requires: zlib
  60. Requires: libpng
  61. Requires: gd
  62. Requires: ncurses
  63. Requires: libjpeg
  64. Requires: t1lib
  65. Requires: freetype2
  66. Requires: openMotif
  67. Requires: poppler >= 0.20
  68. Requires: openssl
  69. Requires: libpaper
  70. Requires: fontconfig
  71. Requires: perl-Tk perl-Tk-TableMatrix
  72. Requires: nkf
  73. Requires: ghostscript >= 8.71
  74. Requires: libkpathsea = %{version}-%{release}
  75. Requires: libptexenc = %{version}-%{release}
  76. Requires: fontconfig >= 2.6.0-2
  77. Requires(post,postun): fontconfig >= 2.6.0-2
  78. Requires(post): ed mktemp
  79. Requires(post): vutils >= 7.1
  80. %{!?with_firstbuild:Requires: texlive-common = %{version}}
  81. BuildRequires: xz
  82. BuildRequires: unzip
  83. BuildRequires: bison flex
  84. BuildRequires: bzip2-devel
  85. BuildRequires: zlib-devel
  86. BuildRequires: libpng-devel
  87. BuildRequires: gd-devel
  88. BuildRequires: ncurses-devel
  89. BuildRequires: libjpeg-devel
  90. BuildRequires: t1lib-devel
  91. BuildRequires: XOrg-devel
  92. BuildRequires: freetype2-devel >= 2.1.10
  93. BuildRequires: autoconf >= 2.68
  94. BuildRequires: openMotif-devel
  95. BuildRequires: poppler-devel >= 0.20
  96. BuildRequires: openssl-devel
  97. BuildRequires: libpaper-devel
  98. BuildRequires: fontconfig-devel
  99. BuildRequires: nkf
  100. BuildRequires: texlive-vtlpkg = %{version}
  101. Buildroot: %{_tmppath}/%{name}-%{version}-root
  102. Vendor: Project Vine
  103. Distribution: Vine Linux
  104. Packager: munepi
  105. %description
  106. The TeX Live software distribution offers a complete TeX system for a
  107. variety of Unix, Macintosh, Windows and other platforms. It
  108. encompasses programs for editing, typesetting, previewing and printing
  109. of TeX documents in many different languages, and a large collection
  110. of TeX macros and font libraries.
  111. The distribution includes extensive general documentation about TeX,
  112. as well as the documentation for the included software packages.
  113. %description -l ja
  114. TeX Live ソフトウェアディストリビューションは、
  115. さまざまな Unix, Macintosh, Windows、および
  116. 他のプラットホームに対して完全な TeX システムを提供します。
  117. 多くの異なった言語を含む TeX ドキュメントの
  118. 編集、組版、閲覧、印刷するためのプログラム、
  119. そして、TeX マクロやフォントライブラリの大きなコレクションを
  120. 同梱しています。
  121. このディストリビューションは
  122. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  123. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  124. %package doc
  125. Summary: TeX Live: Documentation files of %{name}
  126. Group: Applications/Publishing
  127. Requires: %{name} = %{version}-%{release}
  128. BuildArch: noarch
  129. %description doc
  130. This package contains documentation files of %{name}.
  131. %package -n libkpathsea
  132. Summary: path search library for the TeX Live
  133. Summary(ja): TeX Live 用パス検索ライブラリ
  134. Group: System Environment/Libraries
  135. %description -n libkpathsea
  136. This package includes runtime part of the Kpathsea library.
  137. %package -n libkpathsea-devel
  138. Summary: path search libary and header files for the TeX Live
  139. Summary(ja): TeX Live 用パス検索ライブラリとヘッダファイル
  140. Group: Development/Libraries
  141. Requires: libkpathsea = %{version}-%{release}
  142. %description -n libkpathsea-devel
  143. This package includes static library and header files of the Kpathsea library.
  144. %package -n libptexenc
  145. Summary: Kanji code convert library for Japanese pTeX
  146. Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリ
  147. Group: System Environment/Libraries
  148. Requires: libkpathsea = %{version}-%{release}
  149. %description -n libptexenc
  150. This package includes runtime part of the ptexenc library.
  151. %package -n libptexenc-devel
  152. Summary: Kanji code convert library and header files for Japanese pTeX
  153. Summary(ja): 日本語 pTeX 用漢字コード変換ライブラリとヘッダファイル
  154. Group: Development/Libraries
  155. Requires: libptexenc = %{version}-%{release}
  156. %description -n libptexenc-devel
  157. This package includes header files of the ptexenc library.
  158. %prep
  159. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  160. #%setup -q -n %{name}-%{texlivesrcver}-source
  161. %setup -q -n %{name}-source-%{texlivesrcver} -a 1
  162. %patch0 -p0 -b .parallel
  163. %patch1 -p1 -b .vine
  164. %patch2 -p1 -b .vine
  165. %patch3 -p1 -b .vine
  166. ## Applying tlptexlive that provides pxdvi(k) and pmpost
  167. echo "applying patches"
  168. cat "$(pwd)/build-tlptexlive-20130815/patches/series" | while read p r ; do
  169. echo $p | grep '^#' >/dev/null || \
  170. patch -p1 $r < "$(pwd)/build-tlptexlive-20130815/patches/$p" || exit 1
  171. done
  172. # ## pxdvi from tlptexlive 2012
  173. # echo "creating pxdvi folder"
  174. # [ -d texk/pxdvik ] && exit 1
  175. # %__cp -pR texlive-source-20130106/texk/xdvik texk/pxdvik
  176. # echo "applying patches"
  177. # cat "$(pwd)/build-tlptexlive-20130106/patches/series" | \
  178. # grep -v -e freetype-modules -e pmpost -e reautoconf | while read p r ; do
  179. # echo $p | grep '^#' >/dev/null || \
  180. # patch -p1 $r < "$(pwd)/build-tlptexlive-20130106/patches/$p" || exit 1
  181. # done
  182. #
  183. # # customize pxdvik for Vine Linux
  184. # %patch10 -p1 -b .vine
  185. ## Avoid pollution from internal libraries.
  186. %__rm -rf ./libs/{cairo,expat,freetype,freetype2,gd,jpeg,libpng,libttf,ncurses,pixman,poppler,t1lib,unzip,xpdf,zlib} || exit 1
  187. # ./reautoconf || exit 1
  188. %build
  189. set -x
  190. unset TEXINPUTS || :
  191. unset HOME || :
  192. export CFLAGS="$RPM_OPT_FLAGS" \
  193. CXXFLAGS="$RPM_OPT_FLAGS" \
  194. LANG=C
  195. PREFIX=$(pwd)/work
  196. TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=motif
  197. TL_MAKE_FLAGS=-j$(/usr/bin/getconf _NPROCESSORS_ONLN)
  198. TL_CONFIGURE_ARGS=" \
  199. --disable-multiplatform \
  200. --disable-native-texlive-build \
  201. --with-banner-add=\"/Vine Linux\" \
  202. --enable-shared --disable-static \
  203. --enable-compiler-warnings=max \
  204. --without-cxx-runtime-hack \
  205. \
  206. --enable-web2c \
  207. --enable-web-progs --enable-dvipdfmx --enable-mendexk \
  208. --enable-makejvf --enable-pxdvik --enable-dvipsk \
  209. --enable-tetex --enable-texlive \
  210. \
  211. --with-system-xpdf \
  212. --with-system-gd \
  213. --with-system-t1lib \
  214. --with-system-libpng \
  215. --with-system-zlib \
  216. --with-system-freetype2 \
  217. --with-system-pixman \
  218. --with-system-poppler \
  219. --with-system-cairo \
  220. --with-freetype2-include=$(freetype-config --cflags | %__sed -e 's/-I//' -e 's/ .*//') \
  221. --with-pic \
  222. \
  223. --disable-xindy --disable-xindy-docs --disable-xindy-make-rules \
  224. --disable-dvi2tty \
  225. --disable-t1utils --disable-psutils --disable-detex \
  226. --disable-dvipng --disable-lcdf-typetools \
  227. "
  228. export TL_CONF_XDVI_TOOLKIT TL_MAKE_FLAGS TL_CONFIGURE_ARGS
  229. TL_MAKE=%__make ./Build || exit 1
  230. %install
  231. ## prepare %%install session
  232. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  233. ## copy inst directory to /usr
  234. %__mkdir_p %{buildroot}
  235. %__cp -a inst %{buildroot}%{_prefix} || exit 1
  236. %ifarch x86_64
  237. %__mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir} || exit 1
  238. %endif
  239. ## make some fundamental texmf trees
  240. %__mkdir_p %{buildroot}%{_tl_texmfvine}
  241. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  242. %__mkdir_p %{buildroot}%{_tl_texmflocal}
  243. %__mkdir_p %{buildroot}%{_tl_texmfsysconfig}
  244. %__mkdir_p %{buildroot}%{_tl_texmfsysvar}
  245. %__mkdir_p %{buildroot}%{_tl_vartexfonts}
  246. %__mkdir_p %{buildroot}%{_tl_texmfvine}/fonts/{truetype,opentype}
  247. %__mkdir_p %{buildroot}%{_tl_texmfvine}/fonts/cmap
  248. cat<<EOF>%{buildroot}%{_tl_texmfdist}/README.vine || exit 1
  249. The directory %{_tl_texmfdist} is the texmf tree of the TeX Live
  250. distribution wide.
  251. You must not do any changes in this directory.
  252. EOF
  253. cat<<EOF>%{buildroot}%{_tl_texmfvine}/README.vine || exit 1
  254. The directory %{_tl_texmfvine} is the texmf tree of our distribution wide.
  255. You should not use this directory to manage any other packages because
  256. we Project Vine use this directory to manage non-CTAN packages, some
  257. enhancement packages and so on.
  258. EOF
  259. cat<<EOF>%{buildroot}%{_tl_texmflocal}/README.vine || exit 1
  260. The directory %{_tl_texmflocal} is the texmf tree of the system wide.
  261. If you are a privileged user of this system,
  262. you can use this directory to manage your local packages.
  263. EOF
  264. ## our texmf-dist/web2c/updmap{,-hdr}.cfg
  265. %__mkdir_p %{buildroot}%{_tl_texmfdist}/web2c
  266. %__cp -a %{SOURCE6} %{buildroot}%{_tl_texmfdist}/web2c/updmap-hdr.cfg || exit 1
  267. %__cp -a %{SOURCE7} %{buildroot}%{_tl_texmfdist}/web2c/updmap.cfg || exit 1
  268. ## our map files for dvipdfmx
  269. %__mkdir_p %{buildroot}%{_tl_aliasttfdir}
  270. %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine
  271. for x in ptex uptex otf otf-up; do
  272. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine/${x}-vine.map
  273. done
  274. for x in FutoGo-Bold FutoMin-Bold Gothic-Medium MaruGo-Medium Mincho-Medium; do
  275. touch %{buildroot}%{_tl_aliasttfdir}/${x}.ttf
  276. done
  277. ## desktop things
  278. %__mkdir_p %{buildroot}%{_datadir}/applications
  279. # %__install -m0644 -c %{SOURCE10} %{buildroot}%{_datadir}/applications/
  280. %__install -m0644 -c %{SOURCE11} %{buildroot}%{_datadir}/applications/
  281. # for created fonts
  282. %__mkdir_p %{buildroot}%{_tl_vartexfonts}
  283. # %__mkdir_p %{buildroot}%{_sysconfdir}/cron.daily
  284. # %__install -m 755 %{SOURCE100} %{buildroot}%{_sysconfdir}/cron.daily/
  285. ## set executable bit for the library
  286. %__chmod a+x %{buildroot}%{_libdir}/libkpathsea.so.*.*
  287. %__chmod a+x %{buildroot}%{_libdir}/libptexenc.so.*.*
  288. # configure ConTeXt
  289. for x in context ctxtools luatools texexec texmfstart; do
  290. %__sed -i -e 's|mtxrun|export TEXMF=%{_tl_texmfconfig}:%{_tl_texmfvar}:%{_tl_texmfhome}:%{_tl_texmfsysconfig}:%{_tl_texmfsysvar}:%{_tl_texmflocal}:%{_tl_texmfvine}:%{_tl_texmfdist} TEXMFCNF=%{_tl_texmfsysvar}/web2c:%{_tl_texmflocal}/web2c:%{_tl_texmfvine}/web2c:%{_tl_texmfdist}/web2c TEXMFCACHE=%{_tl_texmfsysvar}:%{_tl_texmfvar}; mtxrun|' %{buildroot}%{_bindir}/${x} || exit 1
  291. done
  292. # touch ghosts
  293. touch %{buildroot}%{_tl_texmfvine}/ls-R
  294. touch %{buildroot}%{_tl_texmfdist}/ls-R
  295. touch %{buildroot}%{_tl_texmfsysconfig}/ls-R
  296. touch %{buildroot}%{_tl_texmfsysvar}/ls-R
  297. %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/
  298. %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/updmap/
  299. %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/pxdvi/updmap/
  300. %__mkdir_p %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/
  301. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/builtin35.map
  302. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts_t1.map
  303. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts_pk.map
  304. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/download35.map
  305. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/ps2pk.map
  306. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvips/updmap/psfonts.map
  307. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/dvipdfmx/updmap/kanjix.map
  308. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pxdvi/updmap/xdvi-ptex.map
  309. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex_dl14.map
  310. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex.map
  311. touch %{buildroot}%{_tl_texmfsysvar}/fonts/map/pdftex/updmap/pdftex_ndl14.map
  312. ## remove unpackaging files
  313. find %{buildroot} | %__grep -e "\\.\(la\|a\)$" | xargs %__rm -f || exit 1
  314. find %{buildroot} | %__grep -e "\\.\(diff\|patch\)$" | xargs %__rm -f || exit 1
  315. %__rm -f %{buildroot}%{_bindir}/tlmgr || exit 1
  316. find %{buildroot}%{_tl_texmfvine}/fonts/map -type d | %__grep "updmap" | xargs %__rm -rf || exit 1
  317. find %{buildroot} -type d | grep asymptote | xargs %__rm -rf || exit 1
  318. %__rm -f %{buildroot}%{_tl_texmfvine}/dvipdfm/config/config-win32 || exit 1
  319. %__rm -f %{buildroot}%{_infodir}/*
  320. ## use external packages
  321. %__rm %{buildroot}/usr/bin/latexmk || exit 1
  322. ### Files list
  323. find %{buildroot} -type f -or -type l | \
  324. %__sed -e "s|%{buildroot}||g" | \
  325. %__grep -v -e ".patch$" -e "\.diff$" -e "\.orig$" | \
  326. %__grep -v "%{_includedir}" | \
  327. %__grep -v "%{_libdir}" | \
  328. %__grep -v "%{_infodir}" | \
  329. %__sed -e "s|.*ls-R$|%ghost &|" \
  330. -e "s|%{_tl_texmfsysvar}/fonts/map/dvipdfmx/vine/.*\.map$|%ghost &|" \
  331. -e "s|%{_tl_aliasttfdir}/.*\.ttf$|%ghost &|" \
  332. -e "s|.*/updmap.*\.cfg$|%config(noreplace) &|" \
  333. -e "s|.*/dvipdfmx\.cfg$|%config(noreplace) &|" \
  334. -e "s|.*xdvi\.cfg$|%config(noreplace) &|" \
  335. -e "s|.*\.cnf$|%config(noreplace) &|" \
  336. -e "s|%{_tl_texmfvine}*/xdvi/XDvi|%config(noreplace) &|" \
  337. -e "s|%{_tl_texmfvine}*/web2c/texmfcnf\.lua$|%config(noreplace) &|" \
  338. -e "s|^.*/updmap/$|%config &|" \
  339. -e "s|%{_tl_texmfvine}*/texconfig/tcfmgr.map$|%config &|" \
  340. -e "s|%{_tl_texmfvine}*/dvips/config/.*$|%config &|" \
  341. -e "s|%{_tl_texmfvine}*/dvips/tetex/config.*$|%config &|" \
  342. -e "s|%{_tl_texmfvine}*/dvipdfm/config/config$|%config &|" \
  343. -e "s|%{_tl_texmfvine}*/fonts/map/dvips/tetex/.*.map$|%config &|" \
  344. -e "s|%{_tl_texmfvine}*/fonts/map/dvipdfmx/.*.map$|%config &|" \
  345. -e "s|%{_tl_texmfvine}*/tex/generic/config/.*|%config &|" \
  346. -e "s|%{_tl_texmfvine}*/ttf2pk/ttf2pk\.cfg$|%config &|" \
  347. -e "s|%{_tl_texmfvine}*/hbf2gf/.*\.cfg$|%config &|" \
  348. -e "s|%{_tl_texmfvine}*/chktex/chktexrc$|%config &|" \
  349. -e "s|%{_mandir}/.*|&*|" \
  350. > %{_builddir}/filelist.full
  351. find %{buildroot}%{_tl_texmfvine}* -type d | \
  352. %__sed -e "s|^%{buildroot}|%dir |" \
  353. -e "s|$|/|" >> %{_builddir}/filelist.full
  354. ## subpackages
  355. %__grep -e "/texmf/doc/" -e "/texmf-dist/doc/" -e "/texdoc" %{_builddir}/filelist.full > %{_builddir}/filelist.doc
  356. cat %{_builddir}/filelist.doc \
  357. %{_builddir}/filelist.full | \
  358. sort | uniq -u > %{_builddir}/filelist.tmp
  359. %__mv -f %{_builddir}/filelist.tmp %{_builddir}/filelist.full
  360. %clean
  361. %__rm -rf %{buildroot}
  362. %pretrans
  363. rpm -q texlive | grep -q -e 2009 -e 2011 -e 2012
  364. [ $? -eq 1 ] && exit 0
  365. _trans_time=$(date +%Y%m%d)
  366. echo "Running some transitional processes on your TeX system ... "
  367. x=(
  368. #/var/lib/texmf
  369. #/etc/texmf
  370. /usr/share/texmf-local
  371. /usr/share/texmf-var
  372. /usr/share/texmf-config
  373. )
  374. for dir in ${x[@]}; do
  375. _trans_dir=${dir}.${_trans_time}.rpmorig
  376. [ -d ${_trans_dir}.old ] && \
  377. echo -n " " && \
  378. echo "Found ${_trans_dir}.old: " && \
  379. echo -n " " && \
  380. %__rm -rvf ${_trans_dir}.old
  381. [ -d ${_trans_dir} ] && \
  382. echo -n " " && \
  383. echo "Found ${_trans_dir}: " && \
  384. echo -n " " && \
  385. %__mv -v ${_trans_dir} ${_trans_dir}.old
  386. [ -d ${dir} ] && \
  387. echo -n " " && \
  388. echo "Found ${dir}: " && \
  389. echo -n " " && \
  390. %__mv -v ${dir} ${_trans_dir}
  391. done
  392. echo "done."
  393. %postun
  394. if [ "$1" = 0 ]; then
  395. %__rm -rf %{_tl_vartexfonts}
  396. fi
  397. exit 0
  398. %post
  399. %_tl_touch_run texhash
  400. %_tl_touch_run updmap
  401. %_tl_touch_run mtxrun
  402. %_tl_touch_run fmtutil
  403. exit 0
  404. %posttrans
  405. %__mkdir_p %{_tl_vartexfonts}
  406. %__chmod 1777 %{_tl_vartexfonts}
  407. ## create our map files {ptex,uptex,otf,otf-up}-vine.map
  408. ( %{_tl_exec_upddeffont} ) ||:
  409. %{_tl_exec_texhash}
  410. %{_tl_exec_mtxrun}
  411. %{_tl_exec_updmap}
  412. %{_tl_exec_fmtutil}
  413. exit 0
  414. %post -n libkpathsea
  415. /sbin/ldconfig
  416. # for x in kpathsea tds web2c; do
  417. # /sbin/install-info %{_infodir}/${x}.info.* %{_infodir}/dir
  418. # done
  419. # %preun -n libkpathsea
  420. # if [ "$1" = 0 ]; then
  421. # for x in kpathsea tds web2c; do
  422. # /sbin/install-info --delete %{_infodir}/${x}.info.* %{_infodir}/dir
  423. # done
  424. # fi
  425. %postun -n libkpathsea
  426. /sbin/ldconfig
  427. %post -n libptexenc
  428. /sbin/ldconfig
  429. %postun -n libptexenc
  430. /sbin/ldconfig
  431. %triggerin -- ghostscript
  432. %__rm -f %{_tl_texmfvine}/fonts/cmap/ghostscript
  433. if [ -d "%{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap" ] ; then
  434. %__ln_s %{_datadir}/ghostscript/$(gs --version| cut -d . -f 1-2)/Resource/CMap %{_tl_texmfvine}/fonts/cmap/ghostscript
  435. elif [ -d "%{_datadir}/ghostscript/Resource/CMap" ] ; then
  436. %__ln_s %{_datadir}/ghostscript/Resource/CMap %{_tl_texmfvine}/fonts/cmap/ghostscript
  437. fi
  438. %_tl_touch_run texhash
  439. exit 0
  440. %files -f %{_builddir}/filelist.full
  441. %defattr(-,root,root)
  442. %dir %{_tl_aliasttfdir}
  443. %attr(1777,root,root) %dir %{_tl_vartexfonts}
  444. # %config %{_sysconfdir}/cron.daily/texlive.cron
  445. %files doc -f %{_builddir}/filelist.doc
  446. %defattr(-,root,root)
  447. %files -n libkpathsea
  448. %defattr(-,root,root)
  449. %{_libdir}/libkpathsea.so.*
  450. # %{_infodir}/kpathsea.info*
  451. %files -n libkpathsea-devel
  452. %defattr(-,root,root)
  453. %{_libdir}/libkpathsea.so
  454. %dir %{_includedir}/kpathsea
  455. %{_includedir}/kpathsea/*
  456. %files -n libptexenc
  457. %defattr(-,root,root)
  458. %{_libdir}/libptexenc.so.*
  459. %files -n libptexenc-devel
  460. %defattr(-,root,root)
  461. %{_libdir}/libptexenc.so
  462. %dir %{_includedir}/ptexenc
  463. %{_includedir}/ptexenc/*
  464. %changelog
  465. * Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-2
  466. - texlive-source-20130919 2014/dev + tlptexlive 20130815
  467. - correct some scripts of README.vine for each texmf trees
  468. * Fri Aug 23 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-1
  469. - upgrade to TeX Live 2013
  470. - texlive-source-20130823 2014/dev + tlptexlive 20130815
  471. - dropped Requires: jvf
  472. * Thu May 16 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2012-4
  473. - update enhancement binaries TeX Live 2013/dev 20130106 snapshot (tlptexlive-20130106)
  474. - fixed duplicated lw35 for updmap.pl
  475. - updated updmap.cfg.texlive-20120701: use ipaex as kanjiEmbed
  476. * Sat Mar 9 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2012-3
  477. - touch the map files generated by updmap-sys
  478. * Mon Nov 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-2
  479. - fixed Source7: updmap.cfg.texlive-20120701
  480. (upto /etc/texmf/web2c/updmap.cfg)
  481. - fixex %%triggerin -- ghostscript
  482. - replaced %%exec_texhash with %%touch_run texhash
  483. * Wed Nov 21 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1
  484. - TeX Live 2012 + tlptexlive 20121107
  485. * Tue Oct 30 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-7
  486. - drop BR: poppler-devel temporaly
  487. - modify tl11supp-120120-vine.patch, texlive-20110705-vine.patch to do that
  488. * Mon May 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-6
  489. - build with poppler-0.18.4
  490. - remove tlmgr
  491. * Thu Jan 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2011-5
  492. - updated to tl11supp-120120
  493. - run %%{exec_fmtutil} at %%post when upgrading
  494. * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-4
  495. - updated to tl11supp-111214
  496. * Sat Dec 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-3
  497. - added BuildRequires: texlive-common
  498. - Babel needs docstrip.tex, which is contained in texlive-collection-latex
  499. - check japanese.ldf
  500. - updated tl11supp-111120-vine.patch
  501. - added the following options to $$TL_CONFIGURE_ARGS:
  502. --disable-detex
  503. --disable-dvipng
  504. --disable-lcdf-typetools
  505. - remove some files of asymptote
  506. - remove a man file of latexmk
  507. - remove man files of lcdf-typetools
  508. - remove man files of dvipng
  509. - remove a man file of detex
  510. * Mon Nov 28 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
  511. - added find-provides-texlive.sh and set it to %%__find_provides
  512. - use to find library sonames for libkpathsea and libptexenc
  513. - added cmex.enc (%%{SOURCE110})
  514. - do not install cmex.enc in our TDS, yet
  515. - removed some unused directories in texmf/fonts/map
  516. - removed man files of lcdf-typetools
  517. - moved texdoc{,tk} and its related files to texlive-doc
  518. * Wed Nov 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
  519. - TeX Live 2011 + tl11supp-111120
  520. * Thu Oct 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-22
  521. - make the directory VARTEXFONTS (%%posttrans)
  522. - dropped %%triggerpostun -- texlive < 2009-17vl6
  523. * Tue Jul 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-21
  524. - fixed ptexlive-20100711-dvipdfmx-vine.patch
  525. - for dvipdfmx.cfg, given some ps2pdf's parameters mistaked
  526. * Thu Jun 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-20
  527. - added %%pre to avoid conflictions of texmf-{config,var}
  528. * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-19
  529. - dropped Requires: texlive-common
  530. - added perl-Tk-TableMatrix
  531. - supported texdoctk
  532. - removed broken symbolic links in /usr/bin
  533. - for each these symbolic links, the package of its real file/path
  534. should be its owner.
  535. * Thu May 19 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-18
  536. - added %%triggerpostun -- texlive < 2009-17vl6
  537. - make the directory VARTEXFONTS
  538. * Tue May 10 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-17
  539. - fixed %%dir VARTEXFONTS around in %%files
  540. - dropped BuildRequires: t1utils
  541. * Tue Apr 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-16
  542. - updated texlive-20091107-texmfcnf-vine.patch, texlive.cron
  543. - changed VARTEXFONTS to /var/lib/texmf/fonts
  544. * Mon Apr 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-15
  545. - fixed updmap.cfg
  546. * Sun Mar 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-14
  547. - dropped Requires: texlive-macros
  548. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-13
  549. - updated ptexlive-20100711-pxdvik-vine.patch
  550. and added texlive-20091107-xdvik-vine.patch
  551. - fixed to adjust X resources in texmf/xdvi/XDvi for (p)xdvi
  552. * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-12
  553. - supported Vine Linux 5
  554. - for vl5, changed a requirement of Japanese VF package
  555. - added Requires: texlive-jvf = 2009 (vl5)
  556. - dropped dependencies of Provides:/Obsoletes: tags
  557. - merged these dependencies in texlive-common-vl.spec
  558. * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 2009-11
  559. - rebuilt with poppler-0.14.2 (libpoppler has been up to so.7)
  560. * Fri Sep 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-10
  561. - applied some security patches from Debian
  562. - texlive-2009-CVE-2010-0827.patch
  563. - texlive-2009-CVE-2010-1440.patch
  564. - applied texlive-2009-pdftexdir-libpoppler-0.12.patch from Debian
  565. - applied texlive-2009-luatexdir-libpoppler-0.12.patch
  566. based on texlive-2009-pdftexdir-libpoppler-0.12.patch
  567. - fixed some dependencies
  568. * Mon Aug 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-9
  569. - added BuildArch: noarch in %%package doc
  570. - removed some comment-out sentences
  571. * Tue Jul 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-8
  572. - separeted texmf-dist to texlive-common package
  573. * Mon Jul 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-7
  574. - unpacked texlive-20091107-source.tar.xz
  575. - babel is available now
  576. - applied eptex-100420 and some patches:
  577. - eptex-100420-vine.patch
  578. - eptex-100420-patch1.diff
  579. * Tue Jul 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-6
  580. - updated ptexlive-20100711
  581. * Sat Jun 12 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-5
  582. - customized updmap.cfg to correspond installed fonts
  583. * Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
  584. - fixed insttexfont()
  585. * Mon May 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
  586. - added jvf of MORISAWA basic 5 fonts
  587. - added cm-super, mathdesign in fntlst
  588. * Sun May 16 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  589. - define insttexfont() in %%install
  590. - copy almost compatible tetex-3.0
  591. * Sat May 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  592. - ptexlive-20090322 + TeXLive 2009
  593. - added BuildRequires: openssl-devel
  594. * Sun Dec 06 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2008-0.20091206
  595. - ptexlive-20091009 + TeXLive 2008