texlive-collection-latex-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2014-1:
  3. ## tlpdb2rpmspec collection-latex
  4. %global _use_internal_dependency_generator 0
  5. %global __find_provides %{nil}
  6. %global __find_requires %{nil}
  7. Summary: TeX Live: LaTeX fundamental packages
  8. Summary(ja): TeX Live: LaTeX fundamental packages
  9. Name: texlive-collection-latex
  10. Version: 2014
  11. Release: 1%{?_dist_release}
  12. License: LPPL, LPPL 1.3, Public Domain
  13. Group: Applications/Publishing
  14. URL:http://www.tug.org/texlive/
  15. Source0: ae.doc.tar.xz
  16. Source1: ae.source.tar.xz
  17. Source2: ae.tar.xz
  18. Source3: amscls.doc.tar.xz
  19. Source4: amscls.source.tar.xz
  20. Source5: amscls.tar.xz
  21. Source6: amsmath.doc.tar.xz
  22. Source7: amsmath.source.tar.xz
  23. Source8: amsmath.tar.xz
  24. Source9: babel.doc.tar.xz
  25. Source10: babel.source.tar.xz
  26. Source11: babel.tar.xz
  27. Source12: babel-english.doc.tar.xz
  28. Source13: babel-english.source.tar.xz
  29. Source14: babel-english.tar.xz
  30. Source15: babelbib.doc.tar.xz
  31. Source16: babelbib.tar.xz
  32. Source17: carlisle.doc.tar.xz
  33. Source18: carlisle.source.tar.xz
  34. Source19: carlisle.tar.xz
  35. Source20: colortbl.doc.tar.xz
  36. Source21: colortbl.source.tar.xz
  37. Source22: colortbl.tar.xz
  38. Source23: fancyhdr.doc.tar.xz
  39. Source24: fancyhdr.tar.xz
  40. Source25: fix2col.doc.tar.xz
  41. Source26: fix2col.source.tar.xz
  42. Source27: fix2col.tar.xz
  43. Source28: geometry.doc.tar.xz
  44. Source29: geometry.source.tar.xz
  45. Source30: geometry.tar.xz
  46. Source31: graphics.doc.tar.xz
  47. Source32: graphics.source.tar.xz
  48. Source33: graphics.tar.xz
  49. Source34: hyperref.doc.tar.xz
  50. Source35: hyperref.source.tar.xz
  51. Source36: hyperref.tar.xz
  52. Source37: latex.doc.tar.xz
  53. Source38: latex.source.tar.xz
  54. Source39: latex.tar.xz
  55. Source40: latex-bin.doc.tar.xz
  56. Source41: latex-bin.tar.xz
  57. Source42: latex-fonts.doc.tar.xz
  58. Source43: latex-fonts.tar.xz
  59. Source44: latexconfig.tar.xz
  60. Source45: ltxmisc.tar.xz
  61. Source46: mfnfss.doc.tar.xz
  62. Source47: mfnfss.source.tar.xz
  63. Source48: mfnfss.tar.xz
  64. Source49: mptopdf.doc.tar.xz
  65. Source50: mptopdf.tar.xz
  66. Source51: natbib.doc.tar.xz
  67. Source52: natbib.source.tar.xz
  68. Source53: natbib.tar.xz
  69. Source54: oberdiek.doc.tar.xz
  70. Source55: oberdiek.source.tar.xz
  71. Source56: oberdiek.tar.xz
  72. Source57: pdftex-def.tar.xz
  73. Source58: pslatex.source.tar.xz
  74. Source59: pslatex.tar.xz
  75. Source60: psnfss.doc.tar.xz
  76. Source61: psnfss.source.tar.xz
  77. Source62: psnfss.tar.xz
  78. Source63: pspicture.doc.tar.xz
  79. Source64: pspicture.source.tar.xz
  80. Source65: pspicture.tar.xz
  81. Source66: tools.doc.tar.xz
  82. Source67: tools.source.tar.xz
  83. Source68: tools.tar.xz
  84. Source69: url.doc.tar.xz
  85. Source70: url.tar.xz
  86. Requires: texlive = %{version}
  87. Requires: texlive-collection-basic = %{version}
  88. Requires(post): texlive = %{version}
  89. Requires(postun): texlive = %{version}
  90. BuildArch: noarch
  91. Buildroot: %{_tmppath}/%{name}-%{version}-root
  92. Vendor: Project Vine
  93. Distribution: Vine Linux
  94. Packager: munepi
  95. %description
  96. The TeX Live software distribution offers a complete TeX system for a
  97. variety of Unix, Macintosh, Windows and other platforms. It
  98. encompasses programs for editing, typesetting, previewing and printing
  99. of TeX documents in many different languages, and a large collection
  100. of TeX macros and font libraries.
  101. The distribution includes extensive general documentation about TeX,
  102. as well as the documentation for the included software packages.
  103. This package is a collection of LaTeX fundamental packages:
  104. These packages are either mandated by the core LaTeX team, or
  105. very widely used and strongly recommended in practice.
  106. This package contains the following CTAN packages:
  107. ae: Virtual fonts for T1 encoded CMR-fonts.
  108. amscls: AMS document classes for LaTeX.
  109. amsmath: AMS mathematical facilities for LaTeX.
  110. babel: Multilingual support for Plain TeX or LaTeX.
  111. babel-english: Babel support for English.
  112. babelbib: Multilingual bibliographies.
  113. carlisle: David Carlisle's small packages.
  114. colortbl: Add colour to LaTeX tables.
  115. fancyhdr: Extensive control of page headers and footers in LaTeX2e.
  116. fix2col: Fix miscellaneous two column mode features.
  117. geometry: Flexible and complete interface to document dimensions.
  118. graphics: Standard LaTeX graphics.
  119. hyperref: Extensive support for hypertext in LaTeX.
  120. latex: A TeX macro package that defines LaTeX.
  121. latex-bin: LaTeX executables and man pages.
  122. latex-fonts: A collection of fonts used in LaTeX distributions.
  123. latexconfig:
  124. ltxmisc: Miscellaneous LaTeX packages, etc.
  125. mfnfss: Packages to typeset oldgerman and pandora fonts in LaTeX.
  126. mptopdf: mpost to PDF, native MetaPost graphics inclusion
  127. natbib: Flexible bibliography support.
  128. oberdiek: A bundle of packages submitted by Heiko Oberdiek.
  129. pdftex-def: Colour and Graphics support for PDFTeX.
  130. pslatex: Use PostScript fonts by default.
  131. psnfss: Font support for common PostScript fonts.
  132. pspicture: PostScript picture support.
  133. tools: The LaTeX standard tools bundle.
  134. url: Verbatim with URL-sensitive line breaks.
  135. %description -l ja
  136. TeX Live ソフトウェアディストリビューションは、
  137. さまざまな Unix, Macintosh, Windows、および
  138. 他のプラットホームに対して完全な TeX システムを提供します。
  139. 多くの異なった言語を含む TeX ドキュメントの
  140. 編集、組版、閲覧、印刷するためのプログラム、
  141. そして、TeX マクロやフォントライブラリの大きなコレクションを
  142. 同梱しています。
  143. このディストリビューションは
  144. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  145. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  146. このパッケージは以下のようなパッケージ集です。
  147. LaTeX fundamental packages:
  148. These packages are either mandated by the core LaTeX team, or
  149. very widely used and strongly recommended in practice.
  150. このパッケージは以下の CTAN パッケージを含んでいます:
  151. ae: Virtual fonts for T1 encoded CMR-fonts.
  152. amscls: AMS document classes for LaTeX.
  153. amsmath: AMS mathematical facilities for LaTeX.
  154. babel: Multilingual support for Plain TeX or LaTeX.
  155. babel-english: Babel support for English.
  156. babelbib: Multilingual bibliographies.
  157. carlisle: David Carlisle's small packages.
  158. colortbl: Add colour to LaTeX tables.
  159. fancyhdr: Extensive control of page headers and footers in LaTeX2e.
  160. fix2col: Fix miscellaneous two column mode features.
  161. geometry: Flexible and complete interface to document dimensions.
  162. graphics: Standard LaTeX graphics.
  163. hyperref: Extensive support for hypertext in LaTeX.
  164. latex: A TeX macro package that defines LaTeX.
  165. latex-bin: LaTeX executables and man pages.
  166. latex-fonts: A collection of fonts used in LaTeX distributions.
  167. latexconfig:
  168. ltxmisc: Miscellaneous LaTeX packages, etc.
  169. mfnfss: Packages to typeset oldgerman and pandora fonts in LaTeX.
  170. mptopdf: mpost to PDF, native MetaPost graphics inclusion
  171. natbib: Flexible bibliography support.
  172. oberdiek: A bundle of packages submitted by Heiko Oberdiek.
  173. pdftex-def: Colour and Graphics support for PDFTeX.
  174. pslatex: Use PostScript fonts by default.
  175. psnfss: Font support for common PostScript fonts.
  176. pspicture: PostScript picture support.
  177. tools: The LaTeX standard tools bundle.
  178. url: Verbatim with URL-sensitive line breaks.
  179. %package doc
  180. Summary: TeX Live: Documentation files of %{name}
  181. Group: Applications/Publishing
  182. Requires: %{name} = %{version}-%{release}
  183. %description doc
  184. This package contains documentation files of %{name}.
  185. %prep
  186. %setup -c -n %{name}-%{version}
  187. %__tar -xvf %{SOURCE1}
  188. %__tar -xvf %{SOURCE2}
  189. %__tar -xvf %{SOURCE3}
  190. %__tar -xvf %{SOURCE4}
  191. %__tar -xvf %{SOURCE5}
  192. %__tar -xvf %{SOURCE6}
  193. %__tar -xvf %{SOURCE7}
  194. %__tar -xvf %{SOURCE8}
  195. %__tar -xvf %{SOURCE9}
  196. %__tar -xvf %{SOURCE10}
  197. %__tar -xvf %{SOURCE11}
  198. %__tar -xvf %{SOURCE12}
  199. %__tar -xvf %{SOURCE13}
  200. %__tar -xvf %{SOURCE14}
  201. %__tar -xvf %{SOURCE15}
  202. %__tar -xvf %{SOURCE16}
  203. %__tar -xvf %{SOURCE17}
  204. %__tar -xvf %{SOURCE18}
  205. %__tar -xvf %{SOURCE19}
  206. %__tar -xvf %{SOURCE20}
  207. %__tar -xvf %{SOURCE21}
  208. %__tar -xvf %{SOURCE22}
  209. %__tar -xvf %{SOURCE23}
  210. %__tar -xvf %{SOURCE24}
  211. %__tar -xvf %{SOURCE25}
  212. %__tar -xvf %{SOURCE26}
  213. %__tar -xvf %{SOURCE27}
  214. %__tar -xvf %{SOURCE28}
  215. %__tar -xvf %{SOURCE29}
  216. %__tar -xvf %{SOURCE30}
  217. %__tar -xvf %{SOURCE31}
  218. %__tar -xvf %{SOURCE32}
  219. %__tar -xvf %{SOURCE33}
  220. %__tar -xvf %{SOURCE34}
  221. %__tar -xvf %{SOURCE35}
  222. %__tar -xvf %{SOURCE36}
  223. %__tar -xvf %{SOURCE37}
  224. %__tar -xvf %{SOURCE38}
  225. %__tar -xvf %{SOURCE39}
  226. %__tar -xvf %{SOURCE40}
  227. %__tar -xvf %{SOURCE41}
  228. %__tar -xvf %{SOURCE42}
  229. %__tar -xvf %{SOURCE43}
  230. %__tar -xvf %{SOURCE44}
  231. %__tar -xvf %{SOURCE45}
  232. %__tar -xvf %{SOURCE46}
  233. %__tar -xvf %{SOURCE47}
  234. %__tar -xvf %{SOURCE48}
  235. %__tar -xvf %{SOURCE49}
  236. %__tar -xvf %{SOURCE50}
  237. %__tar -xvf %{SOURCE51}
  238. %__tar -xvf %{SOURCE52}
  239. %__tar -xvf %{SOURCE53}
  240. %__tar -xvf %{SOURCE54}
  241. %__tar -xvf %{SOURCE55}
  242. %__tar -xvf %{SOURCE56}
  243. %__tar -xvf %{SOURCE57}
  244. %__tar -xvf %{SOURCE58}
  245. %__tar -xvf %{SOURCE59}
  246. %__tar -xvf %{SOURCE60}
  247. %__tar -xvf %{SOURCE61}
  248. %__tar -xvf %{SOURCE62}
  249. %__tar -xvf %{SOURCE63}
  250. %__tar -xvf %{SOURCE64}
  251. %__tar -xvf %{SOURCE65}
  252. %__tar -xvf %{SOURCE66}
  253. %__tar -xvf %{SOURCE67}
  254. %__tar -xvf %{SOURCE68}
  255. %__tar -xvf %{SOURCE69}
  256. %__tar -xvf %{SOURCE70}
  257. %build
  258. %install
  259. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  260. %__mkdir_p %{buildroot}%{_datadir}
  261. ## move texmf-dist to /usr/share/texmf-dist
  262. [ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
  263. ## move texmf to /usr/share/texmf
  264. [ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
  265. ## move tlpkg to /usr/share/tlpkg
  266. [ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
  267. ## move all non-arch binaries to /usr/bin
  268. [ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
  269. ## move others into /usr/share/texmf-dist
  270. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  271. %__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
  272. %__rm -rf * ||:
  273. ## remove duplicated files between texlive and texlive-collection-*
  274. ## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
  275. ## remove unpacked files
  276. x=(
  277. # scripts/texlive/tlmgr.pl
  278. # scripts/texlive/updmap.pl
  279. # scripts/fontools/autoinst
  280. # scripts/glossaries/makeglossaries
  281. # scripts/m-tx/m-tx.lua
  282. # scripts/musixtex/musixtex.lua
  283. # scripts/pmx/pmx2pdf.lua
  284. # scripts/latexmk/latexmk.pl
  285. # scripts/jfontmaps/kanji-config-updmap.pl
  286. # scripts/jfontmaps/kanji-fontmap-creator.pl
  287. # scripts/latexpand/latexpand
  288. # scripts/epstopdf/epstopdf.pl
  289. # scripts/convbkmk/convbkmk.rb
  290. # scripts/jfontmaps/kanji-config-updmap-sys.sh
  291. # scripts/luaotfload/luaotfload-tool.lua
  292. # texconfig/tcfmgr
  293. # texconfig/tcfmgr.map
  294. # web2c/fmtutil.cnf
  295. # web2c/mktex.opt
  296. # web2c/mktexdir
  297. # web2c/mktexdir.opt
  298. # web2c/mktexnam
  299. # web2c/mktexnam.opt
  300. # web2c/mktexupd
  301. # web2c/texmf.cnf
  302. # web2c/updmap.cfg
  303. # web2c/updmap-hdr.cfg
  304. # doc/chktex/ChkTeX.pdf
  305. install-tl
  306. )
  307. if [ -d %{buildroot}%{_tl_texmfdist} ]; then
  308. pushd %{buildroot}%{_tl_texmfdist}
  309. %__rm -f ${x[@]} ||:
  310. popd
  311. fi
  312. ## Files list
  313. find %{buildroot} -type f -or -type l | \
  314. %__sed -e "s|%{buildroot}||g" > filelist.full
  315. find %{buildroot}%{_tl_texmfdist} -type d | \
  316. %__sed -e "s|^%{buildroot}|%dir |" \
  317. -e "s|$|/|" >> filelist.full
  318. ## subpackages
  319. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  320. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  321. %__mv -f filelist.tmp filelist.full
  322. %clean
  323. %__rm -rf %{buildroot}
  324. %post
  325. %_tl_touch_run texhash
  326. %_tl_touch_run mtxrun
  327. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  328. %_tl_enable_map Map charter.map
  329. %_tl_enable_map Map fpls.map
  330. %_tl_enable_map Map pazo.map
  331. %_tl_enable_map Map utopia.map
  332. %_tl_touch_run fmtutil
  333. exit 0
  334. %postun
  335. if [ "$1" = 0 ]; then
  336. %_tl_touch_run texhash
  337. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  338. %_tl_disable_map charter.map
  339. %_tl_disable_map fpls.map
  340. %_tl_disable_map pazo.map
  341. %_tl_disable_map utopia.map
  342. fi
  343. exit 0
  344. %posttrans
  345. %{_tl_exec_texhash}
  346. %{_tl_exec_mtxrun}
  347. %{_tl_exec_updmap}
  348. %{_tl_exec_fmtutil}
  349. exit 0
  350. %files -f filelist.full
  351. %defattr(-,root,root,-)
  352. %files -f filelist.doc doc
  353. %defattr(-,root,root,-)
  354. %changelog
  355. * Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
  356. - TLNET 20140524