texlive-collection-context-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2014-1:
  3. ## tlpdb2rpmspec collection-context
  4. %global _use_internal_dependency_generator 0
  5. %global __find_provides %{nil}
  6. %global __find_requires %{nil}
  7. Summary: TeX Live: ConTeXt and packages
  8. Summary(ja): TeX Live: ConTeXt and packages
  9. Name: texlive-collection-context
  10. Version: 2014
  11. Release: 1%{?_dist_release}
  12. License: Freely redistributable without restriction, Public Domain, GPL+, BSD, GPLv2+
  13. Group: Applications/Publishing
  14. URL:http://www.tug.org/texlive/
  15. Source0: context.doc.tar.xz
  16. Source1: context.tar.xz
  17. Source2: jmn.tar.xz
  18. Source3: context-account.doc.tar.xz
  19. Source4: context-account.tar.xz
  20. Source5: context-algorithmic.tar.xz
  21. Source6: context-bnf.doc.tar.xz
  22. Source7: context-bnf.tar.xz
  23. Source8: context-chromato.doc.tar.xz
  24. Source9: context-chromato.tar.xz
  25. Source10: context-construction-plan.doc.tar.xz
  26. Source11: context-construction-plan.tar.xz
  27. Source12: context-cyrillicnumbers.doc.tar.xz
  28. Source13: context-cyrillicnumbers.tar.xz
  29. Source14: context-degrade.doc.tar.xz
  30. Source15: context-degrade.tar.xz
  31. Source16: context-filter.doc.tar.xz
  32. Source17: context-filter.tar.xz
  33. Source18: context-fixme.tar.xz
  34. Source19: context-french.doc.tar.xz
  35. Source20: context-french.tar.xz
  36. Source21: context-fullpage.doc.tar.xz
  37. Source22: context-fullpage.tar.xz
  38. Source23: context-games.doc.tar.xz
  39. Source24: context-games.tar.xz
  40. Source25: context-gantt.doc.tar.xz
  41. Source26: context-gantt.tar.xz
  42. Source27: context-gnuplot.doc.tar.xz
  43. Source28: context-gnuplot.tar.xz
  44. Source29: context-letter.doc.tar.xz
  45. Source30: context-letter.tar.xz
  46. Source31: context-lettrine.doc.tar.xz
  47. Source32: context-lettrine.tar.xz
  48. Source33: context-lilypond.doc.tar.xz
  49. Source34: context-lilypond.tar.xz
  50. Source35: context-mathsets.doc.tar.xz
  51. Source36: context-mathsets.tar.xz
  52. Source37: context-notes-zh-cn.doc.tar.xz
  53. Source38: context-notes-zh-cn.tar.xz
  54. Source39: context-rst.doc.tar.xz
  55. Source40: context-rst.tar.xz
  56. Source41: context-ruby.doc.tar.xz
  57. Source42: context-ruby.tar.xz
  58. Source43: context-simplefonts.doc.tar.xz
  59. Source44: context-simplefonts.tar.xz
  60. Source45: context-simpleslides.doc.tar.xz
  61. Source46: context-simpleslides.tar.xz
  62. Source47: context-transliterator.doc.tar.xz
  63. Source48: context-transliterator.tar.xz
  64. Source49: context-typearea.doc.tar.xz
  65. Source50: context-typearea.tar.xz
  66. Source51: context-typescripts.doc.tar.xz
  67. Source52: context-typescripts.tar.xz
  68. Source53: context-vim.doc.tar.xz
  69. Source54: context-vim.tar.xz
  70. Requires: texlive = %{version}
  71. Requires: texlive-collection-basic = %{version}
  72. Requires(post): texlive = %{version}
  73. Requires(postun): texlive = %{version}
  74. BuildArch: noarch
  75. Buildroot: %{_tmppath}/%{name}-%{version}-root
  76. Vendor: Project Vine
  77. Distribution: Vine Linux
  78. Packager: munepi
  79. %description
  80. The TeX Live software distribution offers a complete TeX system for a
  81. variety of Unix, Macintosh, Windows and other platforms. It
  82. encompasses programs for editing, typesetting, previewing and printing
  83. of TeX documents in many different languages, and a large collection
  84. of TeX macros and font libraries.
  85. The distribution includes extensive general documentation about TeX,
  86. as well as the documentation for the included software packages.
  87. This package is a collection of ConTeXt and packages:
  88. Hans Hagen's powerful ConTeXt system, http://pragma-ade.com.
  89. Also includes third-party ConTeXt packages.
  90. This package contains the following CTAN packages:
  91. context: The ConTeXt macro package.
  92. jmn:
  93. context-account: A simple accounting package.
  94. context-algorithmic: Algorithm handling in ConTeXt.
  95. context-bnf: A BNF module for Context.
  96. context-chromato: ConTeXt macros for chromatograms.
  97. context-construction-plan: Construction plans in ConTeXt.
  98. context-cyrillicnumbers: Write numbers as cyrillic glyphs.
  99. context-degrade: Degrading JPEG images in ConTeXt.
  100. context-filter: Run external programs on the contents of a start-stop environment.
  101. context-fixme: Make editorial marks on a document.
  102. context-french: Support for writing French in ConTeXt.
  103. context-fullpage: Overfull pages with ConTeXt
  104. context-games:
  105. context-gantt: GANTT module for ConTeXt.
  106. context-gnuplot: Inclusion of Gnuplot graphs in ConTeXt.
  107. context-letter: Context package for writing letters.
  108. context-lettrine: A ConTeXt implementation of lettrines.
  109. context-lilypond: Lilypond code in ConTeXt.
  110. context-mathsets: Set notation in ConTeXt.
  111. context-notes-zh-cn: Notes on using ConTeXt MkIV.
  112. context-rst: Process reStructuredText with ConTeXt.
  113. context-ruby: Ruby annotations in ConTeXt.
  114. context-simplefonts: Simplified font usage for ConTeXt.
  115. context-simpleslides:
  116. context-transliterator: Transliterate text from 'other' alphabets.
  117. context-typearea: Something like Koma-Script typearea.
  118. context-typescripts: Small modules to load various fonts for use in ConTeXt.
  119. context-vim: Generate Context syntax highlighting code from vim.
  120. %description -l ja
  121. TeX Live ソフトウェアディストリビューションは、
  122. さまざまな Unix, Macintosh, Windows、および
  123. 他のプラットホームに対して完全な TeX システムを提供します。
  124. 多くの異なった言語を含む TeX ドキュメントの
  125. 編集、組版、閲覧、印刷するためのプログラム、
  126. そして、TeX マクロやフォントライブラリの大きなコレクションを
  127. 同梱しています。
  128. このディストリビューションは
  129. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  130. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  131. このパッケージは以下のようなパッケージ集です。
  132. ConTeXt and packages:
  133. Hans Hagen's powerful ConTeXt system, http://pragma-ade.com.
  134. Also includes third-party ConTeXt packages.
  135. このパッケージは以下の CTAN パッケージを含んでいます:
  136. context: The ConTeXt macro package.
  137. jmn:
  138. context-account: A simple accounting package.
  139. context-algorithmic: Algorithm handling in ConTeXt.
  140. context-bnf: A BNF module for Context.
  141. context-chromato: ConTeXt macros for chromatograms.
  142. context-construction-plan: Construction plans in ConTeXt.
  143. context-cyrillicnumbers: Write numbers as cyrillic glyphs.
  144. context-degrade: Degrading JPEG images in ConTeXt.
  145. context-filter: Run external programs on the contents of a start-stop environment.
  146. context-fixme: Make editorial marks on a document.
  147. context-french: Support for writing French in ConTeXt.
  148. context-fullpage: Overfull pages with ConTeXt
  149. context-games:
  150. context-gantt: GANTT module for ConTeXt.
  151. context-gnuplot: Inclusion of Gnuplot graphs in ConTeXt.
  152. context-letter: Context package for writing letters.
  153. context-lettrine: A ConTeXt implementation of lettrines.
  154. context-lilypond: Lilypond code in ConTeXt.
  155. context-mathsets: Set notation in ConTeXt.
  156. context-notes-zh-cn: Notes on using ConTeXt MkIV.
  157. context-rst: Process reStructuredText with ConTeXt.
  158. context-ruby: Ruby annotations in ConTeXt.
  159. context-simplefonts: Simplified font usage for ConTeXt.
  160. context-simpleslides:
  161. context-transliterator: Transliterate text from 'other' alphabets.
  162. context-typearea: Something like Koma-Script typearea.
  163. context-typescripts: Small modules to load various fonts for use in ConTeXt.
  164. context-vim: Generate Context syntax highlighting code from vim.
  165. %package doc
  166. Summary: TeX Live: Documentation files of %{name}
  167. Group: Applications/Publishing
  168. Requires: %{name} = %{version}-%{release}
  169. %description doc
  170. This package contains documentation files of %{name}.
  171. %prep
  172. %setup -c -n %{name}-%{version}
  173. %__tar -xvf %{SOURCE1}
  174. %__tar -xvf %{SOURCE2}
  175. %__tar -xvf %{SOURCE3}
  176. %__tar -xvf %{SOURCE4}
  177. %__tar -xvf %{SOURCE5}
  178. %__tar -xvf %{SOURCE6}
  179. %__tar -xvf %{SOURCE7}
  180. %__tar -xvf %{SOURCE8}
  181. %__tar -xvf %{SOURCE9}
  182. %__tar -xvf %{SOURCE10}
  183. %__tar -xvf %{SOURCE11}
  184. %__tar -xvf %{SOURCE12}
  185. %__tar -xvf %{SOURCE13}
  186. %__tar -xvf %{SOURCE14}
  187. %__tar -xvf %{SOURCE15}
  188. %__tar -xvf %{SOURCE16}
  189. %__tar -xvf %{SOURCE17}
  190. %__tar -xvf %{SOURCE18}
  191. %__tar -xvf %{SOURCE19}
  192. %__tar -xvf %{SOURCE20}
  193. %__tar -xvf %{SOURCE21}
  194. %__tar -xvf %{SOURCE22}
  195. %__tar -xvf %{SOURCE23}
  196. %__tar -xvf %{SOURCE24}
  197. %__tar -xvf %{SOURCE25}
  198. %__tar -xvf %{SOURCE26}
  199. %__tar -xvf %{SOURCE27}
  200. %__tar -xvf %{SOURCE28}
  201. %__tar -xvf %{SOURCE29}
  202. %__tar -xvf %{SOURCE30}
  203. %__tar -xvf %{SOURCE31}
  204. %__tar -xvf %{SOURCE32}
  205. %__tar -xvf %{SOURCE33}
  206. %__tar -xvf %{SOURCE34}
  207. %__tar -xvf %{SOURCE35}
  208. %__tar -xvf %{SOURCE36}
  209. %__tar -xvf %{SOURCE37}
  210. %__tar -xvf %{SOURCE38}
  211. %__tar -xvf %{SOURCE39}
  212. %__tar -xvf %{SOURCE40}
  213. %__tar -xvf %{SOURCE41}
  214. %__tar -xvf %{SOURCE42}
  215. %__tar -xvf %{SOURCE43}
  216. %__tar -xvf %{SOURCE44}
  217. %__tar -xvf %{SOURCE45}
  218. %__tar -xvf %{SOURCE46}
  219. %__tar -xvf %{SOURCE47}
  220. %__tar -xvf %{SOURCE48}
  221. %__tar -xvf %{SOURCE49}
  222. %__tar -xvf %{SOURCE50}
  223. %__tar -xvf %{SOURCE51}
  224. %__tar -xvf %{SOURCE52}
  225. %__tar -xvf %{SOURCE53}
  226. %__tar -xvf %{SOURCE54}
  227. %build
  228. %install
  229. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  230. %__mkdir_p %{buildroot}%{_datadir}
  231. ## move texmf-dist to /usr/share/texmf-dist
  232. [ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
  233. ## move texmf to /usr/share/texmf
  234. [ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
  235. ## move tlpkg to /usr/share/tlpkg
  236. [ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
  237. ## move all non-arch binaries to /usr/bin
  238. [ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
  239. ## move others into /usr/share/texmf-dist
  240. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  241. %__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
  242. %__rm -rf * ||:
  243. ## remove duplicated files between texlive and texlive-collection-*
  244. ## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
  245. ## remove unpacked files
  246. x=(
  247. # scripts/texlive/tlmgr.pl
  248. # scripts/texlive/updmap.pl
  249. # scripts/fontools/autoinst
  250. # scripts/glossaries/makeglossaries
  251. # scripts/m-tx/m-tx.lua
  252. # scripts/musixtex/musixtex.lua
  253. # scripts/pmx/pmx2pdf.lua
  254. # scripts/latexmk/latexmk.pl
  255. # scripts/jfontmaps/kanji-config-updmap.pl
  256. # scripts/jfontmaps/kanji-fontmap-creator.pl
  257. # scripts/latexpand/latexpand
  258. # scripts/epstopdf/epstopdf.pl
  259. # scripts/convbkmk/convbkmk.rb
  260. # scripts/jfontmaps/kanji-config-updmap-sys.sh
  261. # scripts/luaotfload/luaotfload-tool.lua
  262. # texconfig/tcfmgr
  263. # texconfig/tcfmgr.map
  264. # web2c/fmtutil.cnf
  265. # web2c/mktex.opt
  266. # web2c/mktexdir
  267. # web2c/mktexdir.opt
  268. # web2c/mktexnam
  269. # web2c/mktexnam.opt
  270. # web2c/mktexupd
  271. # web2c/texmf.cnf
  272. # web2c/updmap.cfg
  273. # web2c/updmap-hdr.cfg
  274. # doc/chktex/ChkTeX.pdf
  275. install-tl
  276. )
  277. if [ -d %{buildroot}%{_tl_texmfdist} ]; then
  278. pushd %{buildroot}%{_tl_texmfdist}
  279. %__rm -f ${x[@]} ||:
  280. popd
  281. fi
  282. ## Files list
  283. find %{buildroot} -type f -or -type l | \
  284. %__sed -e "s|%{buildroot}||g" > filelist.full
  285. find %{buildroot}%{_tl_texmfdist} -type d | \
  286. %__sed -e "s|^%{buildroot}|%dir |" \
  287. -e "s|$|/|" >> filelist.full
  288. ## subpackages
  289. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  290. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  291. %__mv -f filelist.tmp filelist.full
  292. %clean
  293. %__rm -rf %{buildroot}
  294. %post
  295. %_tl_touch_run texhash
  296. %_tl_touch_run mtxrun
  297. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  298. %_tl_enable_map Map original-context-symbol.map
  299. %_tl_touch_run fmtutil
  300. exit 0
  301. %postun
  302. if [ "$1" = 0 ]; then
  303. %_tl_touch_run texhash
  304. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  305. %_tl_disable_map original-context-symbol.map
  306. fi
  307. exit 0
  308. %posttrans
  309. %{_tl_exec_texhash}
  310. %{_tl_exec_mtxrun}
  311. %{_tl_exec_updmap}
  312. %{_tl_exec_fmtutil}
  313. exit 0
  314. %files -f filelist.full
  315. %defattr(-,root,root,-)
  316. %files -f filelist.doc doc
  317. %defattr(-,root,root,-)
  318. %changelog
  319. * Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
  320. - TLNET 20140524