texlive-collection-music-vl.spec 7.7 KB

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