texlive-collection-music-vl.spec 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. ## -*- coding: utf-8-unix -*-
  2. ## NOTE: This spec file is generated by tlpdb2rpmspec 2014-1:
  3. ## tlpdb2rpmspec collection-music
  4. %global _use_internal_dependency_generator 0
  5. %global __find_provides %{nil}
  6. %global __find_requires %{nil}
  7. Summary: TeX Live: Music packages
  8. Summary(ja): TeX Live: Music packages
  9. Name: texlive-collection-music
  10. Version: 2014
  11. Release: 1%{?_dist_release}
  12. License: LPPL 1.2, LPPL, GPL+, LPPL 1.3, GPLv2+, LGPLv2+
  13. Group: Applications/Publishing
  14. URL:http://www.tug.org/texlive/
  15. Source0: abc.doc.tar.xz
  16. Source1: abc.source.tar.xz
  17. Source2: abc.tar.xz
  18. Source3: figbas.doc.tar.xz
  19. Source4: figbas.tar.xz
  20. Source5: gchords.doc.tar.xz
  21. Source6: gchords.tar.xz
  22. Source7: gtrcrd.doc.tar.xz
  23. Source8: gtrcrd.tar.xz
  24. Source9: guitar.doc.tar.xz
  25. Source10: guitar.source.tar.xz
  26. Source11: guitar.tar.xz
  27. Source12: guitarchordschemes.doc.tar.xz
  28. Source13: guitarchordschemes.tar.xz
  29. Source14: harmony.doc.tar.xz
  30. Source15: harmony.tar.xz
  31. Source16: lilyglyphs.doc.tar.xz
  32. Source17: lilyglyphs.source.tar.xz
  33. Source18: lilyglyphs.tar.xz
  34. Source19: m-tx.doc.tar.xz
  35. Source20: m-tx.tar.xz
  36. Source21: musixguit.doc.tar.xz
  37. Source22: musixguit.tar.xz
  38. Source23: musixtex.doc.tar.xz
  39. Source24: musixtex.source.tar.xz
  40. Source25: musixtex.tar.xz
  41. Source26: musixtex-fonts.doc.tar.xz
  42. Source27: musixtex-fonts.tar.xz
  43. Source28: pmx.doc.tar.xz
  44. Source29: pmx.tar.xz
  45. Source30: pmxchords.doc.tar.xz
  46. Source31: pmxchords.tar.xz
  47. Source32: songbook.doc.tar.xz
  48. Source33: songbook.source.tar.xz
  49. Source34: songbook.tar.xz
  50. Source35: songs.doc.tar.xz
  51. Source36: songs.source.tar.xz
  52. Source37: songs.tar.xz
  53. Requires: texlive = %{version}
  54. Requires: texlive-collection-latex = %{version}
  55. Requires(post): texlive = %{version}
  56. Requires(postun): texlive = %{version}
  57. BuildArch: noarch
  58. Buildroot: %{_tmppath}/%{name}-%{version}-root
  59. Vendor: Project Vine
  60. Distribution: Vine Linux
  61. Packager: munepi
  62. %description
  63. The TeX Live software distribution offers a complete TeX system for a
  64. variety of Unix, Macintosh, Windows and other platforms. It
  65. encompasses programs for editing, typesetting, previewing and printing
  66. of TeX documents in many different languages, and a large collection
  67. of TeX macros and font libraries.
  68. The distribution includes extensive general documentation about TeX,
  69. as well as the documentation for the included software packages.
  70. This package is a collection of Music packages:
  71. Music-related fonts and packages.
  72. This package contains the following CTAN packages:
  73. abc: Support ABC music notation in LaTeX.
  74. figbas: Mini-fonts for figured-bass notation in music.
  75. gchords: Typeset guitar chords.
  76. gtrcrd: Add chords to lyrics.
  77. guitar: Guitar chords and song texts.
  78. guitarchordschemes: Guitar Chord and Scale Tablatures.
  79. harmony: Typeset harmony symbols, etc., for musicology.
  80. lilyglyphs: Access lilypond fragments and glyphs, in LaTeX.
  81. m-tx: A preprocessor for pmx.
  82. musixguit: Easy notation for guitar music, in MusixTeX.
  83. musixtex: Sophisticated music typesetting
  84. musixtex-fonts: Fonts used by MusixTeX.
  85. pmx: Preprocessor for MusiXTeX.
  86. pmxchords: Produce chord information to go with pmx output.
  87. songbook: Package for typesetting song lyrics and chord books.
  88. songs: Produce song books for church or fellowship.
  89. %description -l ja
  90. TeX Live ソフトウェアディストリビューションは、
  91. さまざまな Unix, Macintosh, Windows、および
  92. 他のプラットホームに対して完全な TeX システムを提供します。
  93. 多くの異なった言語を含む TeX ドキュメントの
  94. 編集、組版、閲覧、印刷するためのプログラム、
  95. そして、TeX マクロやフォントライブラリの大きなコレクションを
  96. 同梱しています。
  97. このディストリビューションは
  98. 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
  99. TeX に関するたくさんの一般的なドキュメントを含んでいます。
  100. このパッケージは以下のようなパッケージ集です。
  101. Music packages:
  102. Music-related fonts and packages.
  103. このパッケージは以下の CTAN パッケージを含んでいます:
  104. abc: Support ABC music notation in LaTeX.
  105. figbas: Mini-fonts for figured-bass notation in music.
  106. gchords: Typeset guitar chords.
  107. gtrcrd: Add chords to lyrics.
  108. guitar: Guitar chords and song texts.
  109. guitarchordschemes: Guitar Chord and Scale Tablatures.
  110. harmony: Typeset harmony symbols, etc., for musicology.
  111. lilyglyphs: Access lilypond fragments and glyphs, in LaTeX.
  112. m-tx: A preprocessor for pmx.
  113. musixguit: Easy notation for guitar music, in MusixTeX.
  114. musixtex: Sophisticated music typesetting
  115. musixtex-fonts: Fonts used by MusixTeX.
  116. pmx: Preprocessor for MusiXTeX.
  117. pmxchords: Produce chord information to go with pmx output.
  118. songbook: Package for typesetting song lyrics and chord books.
  119. songs: Produce song books for church or fellowship.
  120. %package doc
  121. Summary: TeX Live: Documentation files of %{name}
  122. Group: Applications/Publishing
  123. Requires: %{name} = %{version}-%{release}
  124. %description doc
  125. This package contains documentation files of %{name}.
  126. %prep
  127. %setup -c -n %{name}-%{version}
  128. %__tar -xvf %{SOURCE1}
  129. %__tar -xvf %{SOURCE2}
  130. %__tar -xvf %{SOURCE3}
  131. %__tar -xvf %{SOURCE4}
  132. %__tar -xvf %{SOURCE5}
  133. %__tar -xvf %{SOURCE6}
  134. %__tar -xvf %{SOURCE7}
  135. %__tar -xvf %{SOURCE8}
  136. %__tar -xvf %{SOURCE9}
  137. %__tar -xvf %{SOURCE10}
  138. %__tar -xvf %{SOURCE11}
  139. %__tar -xvf %{SOURCE12}
  140. %__tar -xvf %{SOURCE13}
  141. %__tar -xvf %{SOURCE14}
  142. %__tar -xvf %{SOURCE15}
  143. %__tar -xvf %{SOURCE16}
  144. %__tar -xvf %{SOURCE17}
  145. %__tar -xvf %{SOURCE18}
  146. %__tar -xvf %{SOURCE19}
  147. %__tar -xvf %{SOURCE20}
  148. %__tar -xvf %{SOURCE21}
  149. %__tar -xvf %{SOURCE22}
  150. %__tar -xvf %{SOURCE23}
  151. %__tar -xvf %{SOURCE24}
  152. %__tar -xvf %{SOURCE25}
  153. %__tar -xvf %{SOURCE26}
  154. %__tar -xvf %{SOURCE27}
  155. %__tar -xvf %{SOURCE28}
  156. %__tar -xvf %{SOURCE29}
  157. %__tar -xvf %{SOURCE30}
  158. %__tar -xvf %{SOURCE31}
  159. %__tar -xvf %{SOURCE32}
  160. %__tar -xvf %{SOURCE33}
  161. %__tar -xvf %{SOURCE34}
  162. %__tar -xvf %{SOURCE35}
  163. %__tar -xvf %{SOURCE36}
  164. %__tar -xvf %{SOURCE37}
  165. %build
  166. %install
  167. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  168. %__mkdir_p %{buildroot}%{_datadir}
  169. ## move texmf-dist to /usr/share/texmf-dist
  170. [ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
  171. ## move texmf to /usr/share/texmf
  172. [ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
  173. ## move tlpkg to /usr/share/tlpkg
  174. [ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
  175. ## move all non-arch binaries to /usr/bin
  176. [ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
  177. ## move others into /usr/share/texmf-dist
  178. %__mkdir_p %{buildroot}%{_tl_texmfdist}
  179. %__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
  180. %__rm -rf * ||:
  181. ## remove duplicated files between texlive and texlive-collection-*
  182. ## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
  183. ## remove unpacked files
  184. x=(
  185. # scripts/texlive/tlmgr.pl
  186. # scripts/texlive/updmap.pl
  187. # scripts/fontools/autoinst
  188. # scripts/glossaries/makeglossaries
  189. # scripts/m-tx/m-tx.lua
  190. # scripts/musixtex/musixtex.lua
  191. # scripts/pmx/pmx2pdf.lua
  192. # scripts/latexmk/latexmk.pl
  193. # scripts/jfontmaps/kanji-config-updmap.pl
  194. # scripts/jfontmaps/kanji-fontmap-creator.pl
  195. # scripts/latexpand/latexpand
  196. # scripts/epstopdf/epstopdf.pl
  197. # scripts/convbkmk/convbkmk.rb
  198. # scripts/jfontmaps/kanji-config-updmap-sys.sh
  199. # scripts/luaotfload/luaotfload-tool.lua
  200. # texconfig/tcfmgr
  201. # texconfig/tcfmgr.map
  202. # web2c/fmtutil.cnf
  203. # web2c/mktex.opt
  204. # web2c/mktexdir
  205. # web2c/mktexdir.opt
  206. # web2c/mktexnam
  207. # web2c/mktexnam.opt
  208. # web2c/mktexupd
  209. # web2c/texmf.cnf
  210. # web2c/updmap.cfg
  211. # web2c/updmap-hdr.cfg
  212. # doc/chktex/ChkTeX.pdf
  213. install-tl
  214. )
  215. if [ -d %{buildroot}%{_tl_texmfdist} ]; then
  216. pushd %{buildroot}%{_tl_texmfdist}
  217. %__rm -f ${x[@]} ||:
  218. popd
  219. fi
  220. ## Files list
  221. find %{buildroot} -type f -or -type l | \
  222. %__sed -e "s|%{buildroot}||g" > filelist.full
  223. find %{buildroot}%{_tl_texmfdist} -type d | \
  224. %__sed -e "s|^%{buildroot}|%dir |" \
  225. -e "s|$|/|" >> filelist.full
  226. ## subpackages
  227. grep "/texmf-dist/doc/" filelist.full > filelist.doc
  228. cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
  229. %__mv -f filelist.tmp filelist.full
  230. %clean
  231. %__rm -rf %{buildroot}
  232. %post
  233. %_tl_touch_run texhash
  234. %_tl_touch_run mtxrun
  235. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  236. %_tl_enable_map MixedMap musix.map
  237. exit 0
  238. %postun
  239. if [ "$1" = 0 ]; then
  240. %_tl_touch_run texhash
  241. [ -f %{_tl_texmfdist}/web2c/updmap.cfg ] || exit 0
  242. %_tl_disable_map musix.map
  243. fi
  244. exit 0
  245. %posttrans
  246. %{_tl_exec_texhash}
  247. %{_tl_exec_mtxrun}
  248. %{_tl_exec_updmap}
  249. %{_tl_exec_fmtutil}
  250. exit 0
  251. %files -f filelist.full
  252. %defattr(-,root,root,-)
  253. %files -f filelist.doc doc
  254. %defattr(-,root,root,-)
  255. %changelog
  256. * Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
  257. - TLNET 20140524