## -*- coding: utf-8-unix -*-
## NOTE: This spec file is generated by tlpdb2rpmspec 2011-1: 
## tlpdb2rpmspec collection-music

%global _use_internal_dependency_generator 0
%global __find_provides %{nil}
%global __find_requires %{nil}

%bcond_with firstbuild

%define tex_destdir	%{_datadir}
%define texmf		%{tex_destdir}/texmf
%define texlive_src	%{tex_destdir}/texlive-sources
%define build_tex_destdir	%{buildroot}%{tex_destdir}
%define build_texmf	%{buildroot}%{texmf}

%define exec_mktexlsr  [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash
%define exec_texhash  [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
%define exec_updmap   [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys
%define exec_fmtutil  [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null 2>&1
%define exec_upddeffont    [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
%define vartexfonts %{_var}/lib/texmf/fonts

Summary: TeX Live: Music typesetting
Summary(ja): TeX Live: Music typesetting
Name: texlive-collection-music
Version: 2011
Release: 1%{?_dist_release}
License: LPPL, GPL+, LGPLv2+
Group: Applications/Publishing
URL:http://www.tug.org/texlive/

Requires: texlive = %{version}
Requires: texlive-collection-latex = %{version}

Requires(post):		texlive = %{version}
Requires(postun):	texlive = %{version}
BuildRequires:		texlive-sources = %{version}

BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}-root

Vendor:		Project Vine
Distribution:	Vine Linux
Packager:	munepi

%description
The TeX Live software distribution offers a complete TeX system for a
variety of Unix, Macintosh, Windows and other platforms. It
encompasses programs for editing, typesetting, previewing and printing
of TeX documents in many different languages, and a large collection
of TeX macros and font libraries.

The distribution includes extensive general documentation about TeX,
as well as the documentation for the included software packages.

This package is a collection of Music typesetting: 
Music-related fonts and packages.

This package contains the following CTAN packages: 
abc: Support ABC music notation in LaTeX.
figbas: Mini-fonts for figured-bass notation in music.
gchords: Typeset guitar chords.
guitar: Guitar chords and song texts.
harmony: Typeset harmony symbols, etc., for musicology.
musixguit: Easy notation for guitar music, in MusixTeX.
musixtex: Sophisticated music typesetting
songbook: Package for typesetting song lyrics and chord books.

%description -l ja
TeX Live ソフトウェアディストリビューションは、
さまざまな Unix, Macintosh, Windows、および
他のプラットホームに対して完全な TeX システムを提供します。
多くの異なった言語を含む TeX ドキュメントの
編集、組版、閲覧、印刷するためのプログラム、
そして、TeX マクロやフォントライブラリの大きなコレクションを
同梱しています。

このディストリビューションは
同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
TeX に関するたくさんの一般的なドキュメントを含んでいます。

このパッケージは以下のようなパッケージ集です。
Music typesetting: 
Music-related fonts and packages.

このパッケージは以下の CTAN パッケージを含んでいます： 
abc: Support ABC music notation in LaTeX.
figbas: Mini-fonts for figured-bass notation in music.
gchords: Typeset guitar chords.
guitar: Guitar chords and song texts.
harmony: Typeset harmony symbols, etc., for musicology.
musixguit: Easy notation for guitar music, in MusixTeX.
musixtex: Sophisticated music typesetting
songbook: Package for typesetting song lyrics and chord books.

%package doc
Summary: TeX Live: Documentation files of %{name}
Group: Applications/Publishing
Requires: %{name} = %{version}-%{release}

%description doc
This package contains documentation files of %{name}.

%prep

%build

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}

PREF=%{buildroot}%{tex_destdir}

manifest=(
texmf-dist/doc/latex/abc/README
texmf-dist/doc/latex/abc/abc.pdf
texmf-dist/doc/latex/abc/example.tex
texmf-dist/doc/latex/abc/mupexa.tex
texmf-dist/doc/latex/abc/poll.abc
texmf-dist/doc/latex/abc/simple.mup
texmf-dist/source/latex/abc/abc.dtx
texmf-dist/source/latex/abc/abc.ins
texmf-dist/tex/latex/abc/abc.sty
texmf-dist/tex/latex/abc/mup.sty
texmf-dist/fonts/afm/public/figbas/cmrj.afm
texmf-dist/fonts/afm/public/figbas/cmssj.afm
texmf-dist/fonts/afm/public/figbas/plrj.afm
texmf-dist/fonts/map/dvips/figbas/figbas.map
texmf-dist/fonts/tfm/public/figbas/cmrj.tfm
texmf-dist/fonts/tfm/public/figbas/cmssj.tfm
texmf-dist/fonts/tfm/public/figbas/plrj.tfm
texmf-dist/fonts/type1/public/figbas/cmrj.pfb
texmf-dist/fonts/type1/public/figbas/cmssj.pfb
texmf-dist/fonts/type1/public/figbas/plrj.pfb
texmf-dist/doc/latex/gchords/README
texmf-dist/doc/latex/gchords/chordbox.tcl
texmf-dist/doc/latex/gchords/gchords_doc.pdf
texmf-dist/doc/latex/gchords/gchords_doc.tex
texmf-dist/doc/latex/gchords/get2knowu.tex
texmf-dist/tex/latex/gchords/gchords.sty
texmf-dist/doc/latex/guitar/guitar.pdf
texmf-dist/doc/latex/guitar/guitar.tex
texmf-dist/doc/latex/guitar/guitar.txt
texmf-dist/source/latex/guitar/guitar.dtx
texmf-dist/source/latex/guitar/guitar.ins
texmf-dist/tex/latex/guitar/guitar.sty
texmf-dist/doc/latex/harmony/README
texmf-dist/doc/latex/harmony/harmony.pdf
texmf-dist/doc/latex/harmony/harmony.tex
texmf-dist/tex/latex/harmony/harmony.sty
texmf-dist/doc/latex/musixguit/README
texmf-dist/doc/latex/musixguit/musixguit_de.pdf
texmf-dist/doc/latex/musixguit/musixguit_de.tex
texmf-dist/tex/latex/musixguit/musixguit.sty
texmf-dist/doc/generic/musixtex/ChangeLog-115.txt
texmf-dist/doc/generic/musixtex/ChangeLog-T114.txt
texmf-dist/doc/generic/musixtex/ChangeLog-musixdoc-115.txt
texmf-dist/doc/generic/musixtex/addons/curly.tex
texmf-dist/doc/generic/musixtex/addons/tuplet.tex
texmf-dist/doc/generic/musixtex/addons/underbracket.sty
texmf-dist/doc/generic/musixtex/examples/8bitchar.tex
texmf-dist/doc/generic/musixtex/examples/adagio.tex
texmf-dist/doc/generic/musixtex/examples/albinoni.tex
texmf-dist/doc/generic/musixtex/examples/angescam.tex
texmf-dist/doc/generic/musixtex/examples/angescao.tex
texmf-dist/doc/generic/musixtex/examples/angescax.tex
texmf-dist/doc/generic/musixtex/examples/avemaria.tex
texmf-dist/doc/generic/musixtex/examples/avemarid.tex
texmf-dist/doc/generic/musixtex/examples/avemaril.tex
texmf-dist/doc/generic/musixtex/examples/avemario.tex
texmf-dist/doc/generic/musixtex/examples/avemarix.tex
texmf-dist/doc/generic/musixtex/examples/avemaroo.tex
texmf-dist/doc/generic/musixtex/examples/aveverch.tex
texmf-dist/doc/generic/musixtex/examples/aveverdd.tex
texmf-dist/doc/generic/musixtex/examples/aveveruc.tex
texmf-dist/doc/generic/musixtex/examples/aveverud.tex
texmf-dist/doc/generic/musixtex/examples/aveverum.tex
texmf-dist/doc/generic/musixtex/examples/changecontext.tex
texmf-dist/doc/generic/musixtex/examples/chanson.tex
texmf-dist/doc/generic/musixtex/examples/coulhack.tex
texmf-dist/doc/generic/musixtex/examples/dissonan.tex
texmf-dist/doc/generic/musixtex/examples/fantaisc.tex
texmf-dist/doc/generic/musixtex/examples/fantaisd.tex
texmf-dist/doc/generic/musixtex/examples/fantaisi.tex
texmf-dist/doc/generic/musixtex/examples/fantcmol.tex
texmf-dist/doc/generic/musixtex/examples/fantfuga.tex
texmf-dist/doc/generic/musixtex/examples/fugcmoll.tex
texmf-dist/doc/generic/musixtex/examples/fugue.tex
texmf-dist/doc/generic/musixtex/examples/gloriab.tex
texmf-dist/doc/generic/musixtex/examples/glorias.tex
texmf-dist/doc/generic/musixtex/examples/gloriax.tex
texmf-dist/doc/generic/musixtex/examples/gymnoman.tex
texmf-dist/doc/generic/musixtex/examples/ilestne.tex
texmf-dist/doc/generic/musixtex/examples/ilestnex.tex
texmf-dist/doc/generic/musixtex/examples/ilfaitda.tex
texmf-dist/doc/generic/musixtex/examples/ilfaitdx.tex
texmf-dist/doc/generic/musixtex/examples/kv315.tex
texmf-dist/doc/generic/musixtex/examples/kv315f.tex
texmf-dist/doc/generic/musixtex/examples/kv315h.tex
texmf-dist/doc/generic/musixtex/examples/kv315o.tex
texmf-dist/doc/generic/musixtex/examples/kv315org.tex
texmf-dist/doc/generic/musixtex/examples/marcello.tex
texmf-dist/doc/generic/musixtex/examples/marcon1.tex
texmf-dist/doc/generic/musixtex/examples/marcon2.tex
texmf-dist/doc/generic/musixtex/examples/marcon3.tex
texmf-dist/doc/generic/musixtex/examples/marconf.tex
texmf-dist/doc/generic/musixtex/examples/marconh.tex
texmf-dist/doc/generic/musixtex/examples/marcono.tex
texmf-dist/doc/generic/musixtex/examples/musixdbrexample.tex
texmf-dist/doc/generic/musixtex/examples/onuitbri.tex
texmf-dist/doc/generic/musixtex/examples/onuitbrr.tex
texmf-dist/doc/generic/musixtex/examples/onuitbrx.tex
texmf-dist/doc/generic/musixtex/examples/ossiaexa.tex
texmf-dist/doc/generic/musixtex/examples/ostinato.tex
texmf-dist/doc/generic/musixtex/examples/pacifiqb.tex
texmf-dist/doc/generic/musixtex/examples/pacifiqn.tex
texmf-dist/doc/generic/musixtex/examples/pacifiqt.tex
texmf-dist/doc/generic/musixtex/examples/parnasum.tex
texmf-dist/doc/generic/musixtex/examples/partitur.tex
texmf-dist/doc/generic/musixtex/examples/prelfug.tex
texmf-dist/doc/generic/musixtex/examples/prelude.tex
texmf-dist/doc/generic/musixtex/examples/pslurvgap.tex
texmf-dist/doc/generic/musixtex/examples/quod.tex
texmf-dist/doc/generic/musixtex/examples/racine.tex
texmf-dist/doc/generic/musixtex/examples/recit.tex
texmf-dist/doc/generic/musixtex/examples/recueil.tex
texmf-dist/doc/generic/musixtex/examples/rests.tex
texmf-dist/doc/generic/musixtex/examples/reves.tex
texmf-dist/doc/generic/musixtex/examples/romances.tex
texmf-dist/doc/generic/musixtex/examples/scale.tex
texmf-dist/doc/generic/musixtex/examples/souvenir.tex
texmf-dist/doc/generic/musixtex/examples/souvenix.tex
texmf-dist/doc/generic/musixtex/examples/tierce.tex
texmf-dist/doc/generic/musixtex/examples/traeumer.tex
texmf-dist/doc/generic/musixtex/examples/widor.tex
texmf-dist/doc/generic/musixtex/examples/widor_16.tex
texmf-dist/doc/generic/musixtex/examples/widor_20.tex
texmf-dist/doc/generic/musixtex/musixcrd/README.musixcrd
texmf-dist/doc/generic/musixtex/musixcrd/doc.pdf
texmf-dist/doc/generic/musixtex/musixdoc.pdf
texmf-dist/doc/generic/musixtex/musixdoc.sty
texmf-dist/doc/generic/musixtex/musixdoc.tex
texmf-dist/doc/generic/musixtex/musixlyr/README.musixlyr
texmf-dist/doc/generic/musixtex/musixlyr/examples/nonmoriar.dvi
texmf-dist/doc/generic/musixtex/musixlyr/examples/nonmoriar.pdf
texmf-dist/doc/generic/musixtex/musixlyr/examples/nonmoriar.tex
texmf-dist/doc/generic/musixtex/musixlyr/mxlyrdoc.dvi
texmf-dist/doc/generic/musixtex/musixlyr/mxlyrdoc.pdf
texmf-dist/doc/generic/musixtex/musixlyr/mxlyrdoc.tex
texmf-dist/doc/generic/musixtex/notationMistakes/coulhack.tex
texmf-dist/doc/generic/musixtex/notationMistakes/sottieng.pdf
texmf-dist/doc/generic/musixtex/notationMistakes/sottieng.tex
texmf-dist/doc/generic/musixtex/notationMistakes/sottiger.pdf
texmf-dist/doc/generic/musixtex/notationMistakes/sottiger.tex
texmf-dist/doc/generic/musixtex/notationMistakes/sottigra.pdf
texmf-dist/doc/generic/musixtex/notationMistakes/sottigra.tex
texmf-dist/doc/generic/musixtex/psfonts/CHANGES.psfonts
texmf-dist/doc/generic/musixtex/psfonts/README.psfonts
texmf-dist/doc/generic/musixtex/psslurs/README.psslurs
texmf-dist/doc/generic/musixtex/psslurs/slurs.pdf
texmf-dist/doc/generic/musixtex/psslurs/slurs.tex
texmf-dist/doc/generic/musixtex/reference/musixre1.pdf
texmf-dist/doc/generic/musixtex/reference/musixre1.tex
texmf-dist/source/generic/musixtex/musixcrd/doc.tex
texmf-dist/source/generic/musixtex/musixcrd/makefile
texmf-dist/source/generic/musixtex/musixcrd/musixcrd.dtx
texmf-dist/source/generic/musixtex/musixcrd/readme
texmf-dist/source/generic/musixtex/musixcrd/strip.tex
texmf-dist/fonts/map/dvips/musixtex/musix.map
texmf-dist/fonts/source/public/musixtex/musexgen.mf
texmf-dist/fonts/source/public/musixtex/musix11.mf
texmf-dist/fonts/source/public/musixtex/musix13.mf
texmf-dist/fonts/source/public/musixtex/musix16.mf
texmf-dist/fonts/source/public/musixtex/musix20.mf
texmf-dist/fonts/source/public/musixtex/musix24.mf
texmf-dist/fonts/source/public/musixtex/musix25.mf
texmf-dist/fonts/source/public/musixtex/musix29.mf
texmf-dist/fonts/source/public/musixtex/musixgen.mf
texmf-dist/fonts/source/public/musixtex/musixsps.mf
texmf-dist/fonts/source/public/musixtex/musixspx.mf
texmf-dist/fonts/source/public/musixtex/mxsk.mf
texmf-dist/fonts/source/public/musixtex/xdrawsl.mf
texmf-dist/fonts/source/public/musixtex/xdrawzl.mf
texmf-dist/fonts/source/public/musixtex/xgreg11.mf
texmf-dist/fonts/source/public/musixtex/xgreg13.mf
texmf-dist/fonts/source/public/musixtex/xgreg16.mf
texmf-dist/fonts/source/public/musixtex/xgreg20.mf
texmf-dist/fonts/source/public/musixtex/xgreg24.mf
texmf-dist/fonts/source/public/musixtex/xgreg25.mf
texmf-dist/fonts/source/public/musixtex/xgreg29.mf
texmf-dist/fonts/source/public/musixtex/xgreggen.mf
texmf-dist/fonts/source/public/musixtex/xsld11.mf
texmf-dist/fonts/source/public/musixtex/xsld11d.mf
texmf-dist/fonts/source/public/musixtex/xsld13.mf
texmf-dist/fonts/source/public/musixtex/xsld13d.mf
texmf-dist/fonts/source/public/musixtex/xsld16.mf
texmf-dist/fonts/source/public/musixtex/xsld16d.mf
texmf-dist/fonts/source/public/musixtex/xsld20.mf
texmf-dist/fonts/source/public/musixtex/xsld20d.mf
texmf-dist/fonts/source/public/musixtex/xsld24.mf
texmf-dist/fonts/source/public/musixtex/xsld24d.mf
texmf-dist/fonts/source/public/musixtex/xsld29.mf
texmf-dist/fonts/source/public/musixtex/xsld29d.mf
texmf-dist/fonts/source/public/musixtex/xsldd20.mf
texmf-dist/fonts/source/public/musixtex/xsldu20.mf
texmf-dist/fonts/source/public/musixtex/xslgen.mf
texmf-dist/fonts/source/public/musixtex/xslgend.mf
texmf-dist/fonts/source/public/musixtex/xslgenu.mf
texmf-dist/fonts/source/public/musixtex/xslhd.mf
texmf-dist/fonts/source/public/musixtex/xslhd11.mf
texmf-dist/fonts/source/public/musixtex/xslhd11d.mf
texmf-dist/fonts/source/public/musixtex/xslhd13.mf
texmf-dist/fonts/source/public/musixtex/xslhd13d.mf
texmf-dist/fonts/source/public/musixtex/xslhd16.mf
texmf-dist/fonts/source/public/musixtex/xslhd16d.mf
texmf-dist/fonts/source/public/musixtex/xslhd20.mf
texmf-dist/fonts/source/public/musixtex/xslhd20d.mf
texmf-dist/fonts/source/public/musixtex/xslhd24.mf
texmf-dist/fonts/source/public/musixtex/xslhd24d.mf
texmf-dist/fonts/source/public/musixtex/xslhd29.mf
texmf-dist/fonts/source/public/musixtex/xslhd29d.mf
texmf-dist/fonts/source/public/musixtex/xslhu.mf
texmf-dist/fonts/source/public/musixtex/xslhu11.mf
texmf-dist/fonts/source/public/musixtex/xslhu11d.mf
texmf-dist/fonts/source/public/musixtex/xslhu13.mf
texmf-dist/fonts/source/public/musixtex/xslhu13d.mf
texmf-dist/fonts/source/public/musixtex/xslhu16.mf
texmf-dist/fonts/source/public/musixtex/xslhu16d.mf
texmf-dist/fonts/source/public/musixtex/xslhu20.mf
texmf-dist/fonts/source/public/musixtex/xslhu20d.mf
texmf-dist/fonts/source/public/musixtex/xslhu24.mf
texmf-dist/fonts/source/public/musixtex/xslhu24d.mf
texmf-dist/fonts/source/public/musixtex/xslhu29.mf
texmf-dist/fonts/source/public/musixtex/xslhu29d.mf
texmf-dist/fonts/source/public/musixtex/xslhz-o.mf
texmf-dist/fonts/source/public/musixtex/xslhz.mf
texmf-dist/fonts/source/public/musixtex/xslhz20.mf
texmf-dist/fonts/source/public/musixtex/xslhz20d.mf
texmf-dist/fonts/source/public/musixtex/xslu11.mf
texmf-dist/fonts/source/public/musixtex/xslu11d.mf
texmf-dist/fonts/source/public/musixtex/xslu13.mf
texmf-dist/fonts/source/public/musixtex/xslu13d.mf
texmf-dist/fonts/source/public/musixtex/xslu16.mf
texmf-dist/fonts/source/public/musixtex/xslu16d.mf
texmf-dist/fonts/source/public/musixtex/xslu20.mf
texmf-dist/fonts/source/public/musixtex/xslu20d.mf
texmf-dist/fonts/source/public/musixtex/xslu24.mf
texmf-dist/fonts/source/public/musixtex/xslu24d.mf
texmf-dist/fonts/source/public/musixtex/xslu29.mf
texmf-dist/fonts/source/public/musixtex/xslu29d.mf
texmf-dist/fonts/source/public/musixtex/xslud20.mf
texmf-dist/fonts/source/public/musixtex/xslup20.mf
texmf-dist/fonts/source/public/musixtex/xslz.mf
texmf-dist/fonts/source/public/musixtex/xslz20.mf
texmf-dist/fonts/source/public/musixtex/xslz20d.mf
texmf-dist/fonts/source/public/musixtex/xtie20.mf
texmf-dist/fonts/tfm/public/musixtex/musix11.tfm
texmf-dist/fonts/tfm/public/musixtex/musix13.tfm
texmf-dist/fonts/tfm/public/musixtex/musix16.tfm
texmf-dist/fonts/tfm/public/musixtex/musix20.tfm
texmf-dist/fonts/tfm/public/musixtex/musix24.tfm
texmf-dist/fonts/tfm/public/musixtex/musix25.tfm
texmf-dist/fonts/tfm/public/musixtex/musix29.tfm
texmf-dist/fonts/tfm/public/musixtex/musixsps.tfm
texmf-dist/fonts/tfm/public/musixtex/musixspx.tfm
texmf-dist/fonts/tfm/public/musixtex/mxsk.tfm
texmf-dist/fonts/tfm/public/musixtex/xgreg11.tfm
texmf-dist/fonts/tfm/public/musixtex/xgreg13.tfm
texmf-dist/fonts/tfm/public/musixtex/xgreg16.tfm
texmf-dist/fonts/tfm/public/musixtex/xgreg20.tfm
texmf-dist/fonts/tfm/public/musixtex/xgreg24.tfm
texmf-dist/fonts/tfm/public/musixtex/xgreg29.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld11.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld11d.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld13.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld13d.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld16.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld16d.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld20.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld20d.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld24.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld24d.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld29.tfm
texmf-dist/fonts/tfm/public/musixtex/xsld29d.tfm
texmf-dist/fonts/tfm/public/musixtex/xsldd20.tfm
texmf-dist/fonts/tfm/public/musixtex/xsldu20.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd11.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd11d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd13.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd13d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd16.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd16d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd20.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd20d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd24.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd24d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd29.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhd29d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu11.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu11d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu13.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu13d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu16.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu16d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu20.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu20d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu20m.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu24.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu24d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu29.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhu29d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhz20.tfm
texmf-dist/fonts/tfm/public/musixtex/xslhz20d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu11.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu11d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu13.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu13d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu16.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu16d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu20.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu20d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu24.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu24d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu29.tfm
texmf-dist/fonts/tfm/public/musixtex/xslu29d.tfm
texmf-dist/fonts/tfm/public/musixtex/xslud20.tfm
texmf-dist/fonts/tfm/public/musixtex/xslup20.tfm
texmf-dist/fonts/tfm/public/musixtex/xslz20.tfm
texmf-dist/fonts/tfm/public/musixtex/xslz20d.tfm
texmf-dist/fonts/tfm/public/musixtex/xtie20.tfm
texmf-dist/fonts/type1/public/musixtex/musix11.pfb
texmf-dist/fonts/type1/public/musixtex/musix13.pfb
texmf-dist/fonts/type1/public/musixtex/musix16.pfb
texmf-dist/fonts/type1/public/musixtex/musix20.pfb
texmf-dist/fonts/type1/public/musixtex/musix24.pfb
texmf-dist/fonts/type1/public/musixtex/musix29.pfb
texmf-dist/fonts/type1/public/musixtex/musixsps.pfb
texmf-dist/fonts/type1/public/musixtex/musixspx.pfb
texmf-dist/fonts/type1/public/musixtex/mxsk.pfb
texmf-dist/fonts/type1/public/musixtex/xgreg11.pfb
texmf-dist/fonts/type1/public/musixtex/xgreg13.pfb
texmf-dist/fonts/type1/public/musixtex/xgreg16.pfb
texmf-dist/fonts/type1/public/musixtex/xgreg20.pfb
texmf-dist/fonts/type1/public/musixtex/xgreg24.pfb
texmf-dist/fonts/type1/public/musixtex/xgreg29.pfb
texmf-dist/fonts/type1/public/musixtex/xsld11.pfb
texmf-dist/fonts/type1/public/musixtex/xsld11d.pfb
texmf-dist/fonts/type1/public/musixtex/xsld13.pfb
texmf-dist/fonts/type1/public/musixtex/xsld13d.pfb
texmf-dist/fonts/type1/public/musixtex/xsld16.pfb
texmf-dist/fonts/type1/public/musixtex/xsld16d.pfb
texmf-dist/fonts/type1/public/musixtex/xsld20.pfb
texmf-dist/fonts/type1/public/musixtex/xsld20d.pfb
texmf-dist/fonts/type1/public/musixtex/xsld24.pfb
texmf-dist/fonts/type1/public/musixtex/xsld24d.pfb
texmf-dist/fonts/type1/public/musixtex/xsld29.pfb
texmf-dist/fonts/type1/public/musixtex/xsld29d.pfb
texmf-dist/fonts/type1/public/musixtex/xsldd20.pfb
texmf-dist/fonts/type1/public/musixtex/xsldu20.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd11.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd11d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd13.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd13d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd16.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd16d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd20.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd20d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd24.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd24d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd29.pfb
texmf-dist/fonts/type1/public/musixtex/xslhd29d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu11.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu11d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu13.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu13d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu16.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu16d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu20.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu20d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu24.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu24d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu29.pfb
texmf-dist/fonts/type1/public/musixtex/xslhu29d.pfb
texmf-dist/fonts/type1/public/musixtex/xslhz20.pfb
texmf-dist/fonts/type1/public/musixtex/xslhz20d.pfb
texmf-dist/fonts/type1/public/musixtex/xslu11.pfb
texmf-dist/fonts/type1/public/musixtex/xslu11d.pfb
texmf-dist/fonts/type1/public/musixtex/xslu13.pfb
texmf-dist/fonts/type1/public/musixtex/xslu13d.pfb
texmf-dist/fonts/type1/public/musixtex/xslu16.pfb
texmf-dist/fonts/type1/public/musixtex/xslu16d.pfb
texmf-dist/fonts/type1/public/musixtex/xslu20.pfb
texmf-dist/fonts/type1/public/musixtex/xslu20d.pfb
texmf-dist/fonts/type1/public/musixtex/xslu24.pfb
texmf-dist/fonts/type1/public/musixtex/xslu24d.pfb
texmf-dist/fonts/type1/public/musixtex/xslu29.pfb
texmf-dist/fonts/type1/public/musixtex/xslu29d.pfb
texmf-dist/fonts/type1/public/musixtex/xslud20.pfb
texmf-dist/fonts/type1/public/musixtex/xslup20.pfb
texmf-dist/fonts/type1/public/musixtex/xslz20.pfb
texmf-dist/fonts/type1/public/musixtex/xslz20d.pfb
texmf-dist/fonts/type1/public/musixtex/xtie20.pfb
texmf-dist/scripts/musixtex/Windows/musixflx.bat
texmf-dist/scripts/musixtex/Windows/musixtex.bat
texmf-dist/scripts/musixtex/doc/musixflx.1
texmf-dist/scripts/musixtex/doc/musixflx.pdf
texmf-dist/scripts/musixtex/doc/musixtex.1
texmf-dist/scripts/musixtex/doc/musixtex.pdf
texmf-dist/scripts/musixtex/musixflx.lua
texmf-dist/scripts/musixtex/musixtex.lua
texmf-dist/tex/generic/musixtex/musixadd.tex
texmf-dist/tex/generic/musixtex/musixbar.tex
texmf-dist/tex/generic/musixtex/musixbbm.tex
texmf-dist/tex/generic/musixtex/musixblx.tex
texmf-dist/tex/generic/musixtex/musixbm.tex
texmf-dist/tex/generic/musixtex/musixcho.tex
texmf-dist/tex/generic/musixtex/musixcpt.tex
texmf-dist/tex/generic/musixtex/musixcrd.tex
texmf-dist/tex/generic/musixtex/musixdat.tex
texmf-dist/tex/generic/musixtex/musixdbr.tex
texmf-dist/tex/generic/musixtex/musixdia.tex
texmf-dist/tex/generic/musixtex/musixeng.tex
texmf-dist/tex/generic/musixtex/musixesf.tex
texmf-dist/tex/generic/musixtex/musixevo.tex
texmf-dist/tex/generic/musixtex/musixext.tex
texmf-dist/tex/generic/musixtex/musixfll.sty
texmf-dist/tex/generic/musixtex/musixfll.tex
texmf-dist/tex/generic/musixtex/musixgre.tex
texmf-dist/tex/generic/musixtex/musixgui.tex
texmf-dist/tex/generic/musixtex/musixhor.tex
texmf-dist/tex/generic/musixtex/musixhou.tex
texmf-dist/tex/generic/musixtex/musixinv.tex
texmf-dist/tex/generic/musixtex/musixlit.tex
texmf-dist/tex/generic/musixtex/musixlyr.tex
texmf-dist/tex/generic/musixtex/musixmad.tex
texmf-dist/tex/generic/musixtex/musixper.tex
texmf-dist/tex/generic/musixtex/musixpoi.tex
texmf-dist/tex/generic/musixtex/musixps.tex
texmf-dist/tex/generic/musixtex/musixref.tex
texmf-dist/tex/generic/musixtex/musixslu.tex
texmf-dist/tex/generic/musixtex/musixsqr.tex
texmf-dist/tex/generic/musixtex/musixste.tex
texmf-dist/tex/generic/musixtex/musixstf.tex
texmf-dist/tex/generic/musixtex/musixstr.tex
texmf-dist/tex/generic/musixtex/musixsty.tex
texmf-dist/tex/generic/musixtex/musixtex.tex
texmf-dist/tex/generic/musixtex/musixtmr.tex
texmf-dist/tex/generic/musixtex/musixtri.tex
texmf-dist/tex/latex/musixtex/musixcpt.sty
texmf-dist/tex/latex/musixtex/musixcrd.sty
texmf-dist/tex/latex/musixtex/musixltx.tex
texmf-dist/tex/latex/musixtex/musixtex.sty
texmf-dist/doc/latex/songbook/LesserGPL.txt
texmf-dist/doc/latex/songbook/README
texmf-dist/doc/latex/songbook/contrib/CarolBook/CarolBook.tex
texmf-dist/doc/latex/songbook/contrib/CarolBook/CarolBookOH.pdf
texmf-dist/doc/latex/songbook/contrib/CarolBook/CarolBookWB.pdf
texmf-dist/doc/latex/songbook/contrib/README
texmf-dist/doc/latex/songbook/contrib/crd2sb/NothingButTheBlood.crd
texmf-dist/doc/latex/songbook/contrib/crd2sb/crd2sb
texmf-dist/doc/latex/songbook/contrib/crd2sb/crd2sb.txt
texmf-dist/doc/latex/songbook/contrib/modulate
texmf-dist/doc/latex/songbook/contrib/texchord.sty
texmf-dist/doc/latex/songbook/install.txt
texmf-dist/doc/latex/songbook/mksbadx
texmf-dist/doc/latex/songbook/mksbkdx
texmf-dist/doc/latex/songbook/mksbtdx
texmf-dist/doc/latex/songbook/sample-sb.tex
texmf-dist/doc/latex/songbook/sampleAdx.pdf
texmf-dist/doc/latex/songbook/sampleAdx.tex
texmf-dist/doc/latex/songbook/sampleCBK.pdf
texmf-dist/doc/latex/songbook/sampleCSBK.pdf
texmf-dist/doc/latex/songbook/sampleKdx.pdf
texmf-dist/doc/latex/songbook/sampleKdx.tex
texmf-dist/doc/latex/songbook/sampleOH.pdf
texmf-dist/doc/latex/songbook/sampleTdx.pdf
texmf-dist/doc/latex/songbook/sampleTdx.tex
texmf-dist/doc/latex/songbook/sampleToc.pdf
texmf-dist/doc/latex/songbook/sampleToc.tex
texmf-dist/doc/latex/songbook/sampleWBK.pdf
texmf-dist/doc/latex/songbook/songbook.pdf
texmf-dist/source/latex/songbook/songbook.dtx
texmf-dist/source/latex/songbook/songbook.ins
texmf-dist/makeindex/songbook/songbook.ist
texmf-dist/tex/latex/songbook/conditionals.sty
texmf-dist/tex/latex/songbook/songbook.sty
)

%__mkdir_p ${PREF}/texmf-dist
for i in "${manifest[@]}"; do 
    %__install -m $(stat -c %a %{texlive_src}/$i) -p -D %{texlive_src}/$i ${PREF}/$i
done
## make symlinks of core script utils
mk_symlinks=(
texlive-collection-bibtexextra,/usr/bin/bibexport,/usr/share/texmf-dist/scripts/bibexport/bibexport.sh
texlive-collection-binextra,/usr/bin/arlatex,/usr/share/texmf-dist/scripts/bundledoc/arlatex
texlive-collection-binextra,/usr/bin/bundledoc,/usr/share/texmf-dist/scripts/bundledoc/bundledoc
texlive-collection-binextra,/usr/bin/de-macro,/usr/share/texmf-dist/scripts/de-macro/de-macro
texlive-collection-binextra,/usr/bin/dviasm,/usr/share/texmf-dist/scripts/dviasm/dviasm.py
texlive-collection-binextra,/usr/bin/findhyph,/usr/share/texmf-dist/scripts/findhyph/findhyph
texlive-collection-binextra,/usr/bin/fragmaster,/usr/share/texmf-dist/scripts/fragmaster/fragmaster.pl
texlive-collection-binextra,/usr/bin/installfont-tl,/usr/share/texmf-dist/scripts/installfont/installfont-tl
texlive-collection-binextra,/usr/bin/latex2man,/usr/share/texmf-dist/scripts/latex2man/latex2man
texlive-collection-binextra,/usr/bin/latexdiff,/usr/share/texmf-dist/scripts/latexdiff/latexdiff.pl
texlive-collection-binextra,/usr/bin/latexdiff-vc,/usr/share/texmf-dist/scripts/latexdiff/latexdiff-vc.pl
texlive-collection-binextra,/usr/bin/latexmk,/usr/share/texmf-dist/scripts/latexmk/latexmk.pl
texlive-collection-binextra,/usr/bin/latexrevise,/usr/share/texmf-dist/scripts/latexdiff/latexrevise.pl
texlive-collection-binextra,/usr/bin/listings-ext.sh,/usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh
texlive-collection-binextra,/usr/bin/mkjobtexmf,/usr/share/texmf-dist/scripts/mkjobtexmf/mkjobtexmf.pl
texlive-collection-binextra,/usr/bin/pdf180,/usr/share/texmf-dist/scripts/pdfjam/pdf180
texlive-collection-binextra,/usr/bin/pdf270,/usr/share/texmf-dist/scripts/pdfjam/pdf270
texlive-collection-binextra,/usr/bin/pdf90,/usr/share/texmf-dist/scripts/pdfjam/pdf90
texlive-collection-binextra,/usr/bin/pdfbook,/usr/share/texmf-dist/scripts/pdfjam/pdfbook
texlive-collection-binextra,/usr/bin/pdfcrop,/usr/share/texmf-dist/scripts/pdfcrop/pdfcrop.pl
texlive-collection-binextra,/usr/bin/pdfflip,/usr/share/texmf-dist/scripts/pdfjam/pdfflip
texlive-collection-binextra,/usr/bin/pdfjam,/usr/share/texmf-dist/scripts/pdfjam/pdfjam
texlive-collection-binextra,/usr/bin/pdfjam-pocketmod,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-pocketmod
texlive-collection-binextra,/usr/bin/pdfjam-slides3up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides3up
texlive-collection-binextra,/usr/bin/pdfjam-slides6up,/usr/share/texmf-dist/scripts/pdfjam/pdfjam-slides6up
texlive-collection-binextra,/usr/bin/pdfjoin,/usr/share/texmf-dist/scripts/pdfjam/pdfjoin
texlive-collection-binextra,/usr/bin/pdfnup,/usr/share/texmf-dist/scripts/pdfjam/pdfnup
texlive-collection-binextra,/usr/bin/pdfpun,/usr/share/texmf-dist/scripts/pdfjam/pdfpun
texlive-collection-binextra,/usr/bin/pkfix,/usr/share/texmf-dist/scripts/pkfix/pkfix.pl
texlive-collection-binextra,/usr/bin/pkfix-helper,/usr/share/texmf-dist/scripts/pkfix-helper/pkfix-helper
texlive-collection-binextra,/usr/bin/purifyeps,/usr/share/texmf-dist/scripts/purifyeps/purifyeps
texlive-collection-binextra,/usr/bin/sty2dtx,/usr/share/texmf-dist/scripts/sty2dtx/sty2dtx.pl
texlive-collection-binextra,/usr/bin/texcount,/usr/share/texmf-dist/scripts/texcount/texcount.pl
texlive-collection-binextra,/usr/bin/texdef,/usr/share/texmf-dist/scripts/texdef/texdef.pl
texlive-collection-binextra,/usr/bin/texdiff,/usr/share/texmf-dist/scripts/texdiff/texdiff
texlive-collection-binextra,/usr/bin/texdirflatten,/usr/share/texmf-dist/scripts/texdirflatten/texdirflatten
texlive-collection-binextra,/usr/bin/texloganalyser,/usr/share/texmf-dist/scripts/texloganalyser/texloganalyser
texlive-collection-fontutils,/usr/bin/afm2afm,/usr/share/texmf-dist/scripts/fontools/afm2afm
texlive-collection-fontutils,/usr/bin/autoinst,/usr/share/texmf-dist/scripts/fontools/autoinst
texlive-collection-fontutils,/usr/bin/cmap2enc,/usr/share/texmf-dist/scripts/fontools/cmap2enc
texlive-collection-fontutils,/usr/bin/epstopdf,/usr/share/texmf-dist/scripts/epstopdf/epstopdf.pl
texlive-collection-fontutils,/usr/bin/font2afm,/usr/share/texmf-dist/scripts/fontools/font2afm
texlive-collection-fontutils,/usr/bin/mkt1font,/usr/share/texmf-dist/scripts/accfonts/mkt1font
texlive-collection-fontutils,/usr/bin/ot2kpx,/usr/share/texmf-dist/scripts/fontools/ot2kpx
texlive-collection-fontutils,/usr/bin/pfm2kpx,/usr/share/texmf-dist/scripts/fontools/pfm2kpx
texlive-collection-fontutils,/usr/bin/showglyphs,/usr/share/texmf-dist/scripts/fontools/showglyphs
texlive-collection-fontutils,/usr/bin/vpl2ovp,/usr/share/texmf-dist/scripts/accfonts/vpl2ovp
texlive-collection-fontutils,/usr/bin/vpl2vpl,/usr/share/texmf-dist/scripts/accfonts/vpl2vpl
texlive-collection-htmlxml,/usr/bin/ht,/usr/share/texmf-dist/scripts/tex4ht/ht.sh
texlive-collection-htmlxml,/usr/bin/htcontext,/usr/share/texmf-dist/scripts/tex4ht/htcontext.sh
texlive-collection-htmlxml,/usr/bin/htlatex,/usr/share/texmf-dist/scripts/tex4ht/htlatex.sh
texlive-collection-htmlxml,/usr/bin/htmex,/usr/share/texmf-dist/scripts/tex4ht/htmex.sh
texlive-collection-htmlxml,/usr/bin/httex,/usr/share/texmf-dist/scripts/tex4ht/httex.sh
texlive-collection-htmlxml,/usr/bin/httexi,/usr/share/texmf-dist/scripts/tex4ht/httexi.sh
texlive-collection-htmlxml,/usr/bin/htxelatex,/usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh
texlive-collection-htmlxml,/usr/bin/htxetex,/usr/share/texmf-dist/scripts/tex4ht/htxetex.sh
texlive-collection-htmlxml,/usr/bin/mk4ht,/usr/share/texmf-dist/scripts/tex4ht/mk4ht.pl
texlive-collection-langgreek,/usr/bin/mkgrkindex,/usr/share/texmf-dist/scripts/mkgrkindex/mkgrkindex
texlive-collection-langindic,/usr/bin/ebong,/usr/share/texmf-dist/scripts/ebong/ebong.py
texlive-collection-latex,/usr/bin/mptopdf,/usr/share/texmf-dist/scripts/context/perl/mptopdf.pl
texlive-collection-latex,/usr/bin/pdfatfi,/usr/share/texmf-dist/scripts/oberdiek/pdfatfi.pl
texlive-collection-latexextra,/usr/bin/authorindex,/usr/share/texmf-dist/scripts/authorindex/authorindex
texlive-collection-latexextra,/usr/bin/makeglossaries,/usr/share/texmf-dist/scripts/glossaries/makeglossaries
texlive-collection-latexextra,/usr/bin/pdfannotextractor,/usr/share/texmf-dist/scripts/pax/pdfannotextractor.pl
texlive-collection-latexextra,/usr/bin/pdfthumb,/usr/share/texmf-dist/scripts/ppower4/pdfthumb.tlu
texlive-collection-latexextra,/usr/bin/perltex,/usr/share/texmf-dist/scripts/perltex/perltex.pl
texlive-collection-latexextra,/usr/bin/ppower4,/usr/share/texmf-dist/scripts/ppower4/ppower4.tlu
texlive-collection-latexextra,/usr/bin/ps4pdf,/usr/share/texmf-dist/scripts/pst-pdf/ps4pdf
texlive-collection-latexextra,/usr/bin/splitindex,/usr/share/texmf-dist/scripts/splitindex/perl/splitindex.pl
texlive-collection-latexextra,/usr/bin/svn-multi,/usr/share/texmf-dist/scripts/svn-multi/svn-multi.pl
texlive-collection-latexextra,/usr/bin/vpe,/usr/share/texmf-dist/scripts/vpe/vpe.pl
texlive-collection-latexrecommended,/usr/bin/thumbpdf,/usr/share/texmf-dist/scripts/thumbpdf/thumbpdf.pl
texlive-collection-luatex,/usr/bin/mkluatexfontdb,/usr/share/texmf-dist/scripts/luaotfload/mkluatexfontdb.lua
texlive-collection-music,/usr/bin/musixflx,/usr/share/texmf-dist/scripts/musixtex/musixflx.lua
texlive-collection-music,/usr/bin/musixtex,/usr/share/texmf-dist/scripts/musixtex/musixtex.lua
texlive-collection-pictures,/usr/bin/cachepic,/usr/share/texmf-dist/scripts/cachepic/cachepic.tlu
texlive-collection-pictures,/usr/bin/epspdf,/usr/share/texmf-dist/scripts/epspdf/epspdf.rb
texlive-collection-pictures,/usr/bin/epspdftk,/usr/share/texmf-dist/scripts/epspdf/epspdftk.tcl
texlive-collection-pictures,/usr/bin/fig4latex,/usr/share/texmf-dist/scripts/fig4latex/fig4latex
texlive-collection-pictures,/usr/bin/mathspic,/usr/share/texmf-dist/scripts/mathspic/mathspic.pl
texlive-collection-pstricks,/usr/bin/pst2pdf,/usr/share/texmf-dist/scripts/pst2pdf/pst2pdf
texlive-collection-science,/usr/bin/ulqda,/usr/share/texmf-dist/scripts/ulqda/ulqda.pl
)
%__mkdir_p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    for i in "${mk_symlinks[@]}"; do 
        tlc=$(echo $i | cut -f 1 -d",")
        lnk=$(echo $i | cut -f 2 -d"," | %__sed -e "s|/usr/bin/||")
        rlnk=$(echo $i | cut -f 3 -d"," | %__sed -e "s|/usr/|../|")

        [ "%{name}" = "$tlc" ] || continue
        [ -f $rlnk ] || exit 1
        %__ln_s $rlnk $lnk || exit 1
    done
popd
## Files list
find %{buildroot} -type f -or -type l | \
    %__sed -e "s|%{buildroot}||g" > filelist.full

find %{buildroot}%{texmf}-dist -type d | \
    %__sed -e "s|^%{buildroot}|%dir |" \
           -e "s|$|/|"             >> filelist.full

## subpackages
grep "/texmf-dist/doc/" filelist.full > filelist.doc
cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
%__mv -f filelist.tmp filelist.full

%clean
%__rm -rf %{buildroot}

%post
%{exec_texhash}

[ -f %{texmf}/web2c/updmap.cfg ] || exit 0

updmap_lock=%{texmf}/updmap.lock
%{exec_updmap} --listmaps 2>/dev/null | egrep -q "^#! MixedMap musix.map" && \
    echo -n "    " && \
    echo -n "Running updmap: enable musix.map ... " && \
    %{exec_updmap} --nomkmap --enable MixedMap musix.map >/dev/null 2>&1 && \
    echo "done." && \
    touch ${updmap_lock}

rpm -q --quiet texlive-common || exit 0

[ -f ${updmap_lock} ] && \
    echo -n "    " && \
    echo -n "Running updmap: recreate map files ... " && \
    %{exec_updmap} >/dev/null 2>&1 && \
    echo "done." && \
    rm -f ${updmap_lock}

exit 0


%postun
if [ "$1" = 0 ]; then
    %{exec_texhash}

    [ -f %{texmf}/web2c/updmap.cfg ] || exit 0

    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^MixedMap musix.map" && \
        echo -n "    " && \
        echo -n "Running updmap: disable musix.map ... " && \
        %{exec_updmap} --nomkmap --disable musix.map >/dev/null 2>&1 && \
        echo "done."
    echo -n "    " && \
        echo -n "Running updmap: recreate map files ... " && \
        %{exec_updmap} >/dev/null 2>&1 && \
        echo "done."

fi

exit 0

%files -f filelist.full
%defattr(-,root,root,-)

%files -f filelist.doc doc
%defattr(-,root,root,-)

%changelog
* Sun Oct 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
- generated by tlpdb2rpmspec 2011-1: tlpdb2rpmspec collection-music

* Mon Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
- generated by tlpdb2rpmspec 2009-4: tlpdb2rpmspec collection-music
- make symlinks of core script utils (texlive-collection-binextra, 
  texlive-collection-context, texlive-collection-fontutils, 
  texlive-collection-langgreek, texlive-collection-langindic, 
  texlive-collection-latex, texlive-collection-latexextra, 
  texlive-collection-latexrecommended, texlive-collection-pictures, 
  texlive-collection-pstricks, texlive-collection-science)

* Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
- generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-music
- improved %%post

* Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
- generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-music
- removed arch dependent binaries (texlive-collection-latexextra)
- fixed perl path
- improved updmap process in %%post and %%postun

* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
- generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-music
