## -*- coding: utf-8-unix -*-
## NOTE: This spec file is generated by tlpdb2rpmspec 2009-3: 
## tlpdb2rpmspec collection-langmongolian

%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 --nostop
%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

%define __find_provides	%{nil}
%define __find_requires	%{nil}
%define __perl_provides	%{nil}
%define __perl_requires	%{nil}

Autoreq: 0

Summary: TeX Live: Mongolian
Summary(ja): TeX Live: Mongolian
Name: texlive-collection-langmongolian
Version: 2009
Release: 3%{?_dist_release}
License: LPPL, GPL+, No Info
Group: Applications/Publishing
URL:http://www.tug.org/texlive/

Requires: texlive = %{version}
Requires: texlive-collection-basic = %{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 Mongolian: 
Support for typesetting Mongolian.

This package contains the following CTAN packages: 
hyphen-mongolian: 
mongolian-babel: A language definition file for Mongolian in Babel.
montex: Mongolian LaTeX.
soyombo: Fonts and a macro for Soyombo under LaTeX.

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

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

このパッケージは以下のようなパッケージ集です。
Mongolian: 
Support for typesetting Mongolian.

このパッケージは以下の CTAN パッケージを含んでいます： 
hyphen-mongolian: 
mongolian-babel: A language definition file for Mongolian in Babel.
montex: Mongolian LaTeX.
soyombo: Fonts and a macro for Soyombo under LaTeX.

%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/mongolian-babel/README
texmf-dist/doc/latex/mongolian-babel/mongolian.pdf
texmf-dist/source/latex/mongolian-babel/mongolian.dtx
texmf-dist/source/latex/mongolian-babel/mongolian.ins
texmf-dist/tex/latex/mongolian-babel/mn.def
texmf-dist/tex/latex/mongolian-babel/mongolian.ldf
texmf-dist/tex/latex/mongolian-babel/mongolian.sty
texmf-dist/doc/latex/montex/00README
texmf-dist/doc/latex/montex/00readme.mfinput.km
texmf-dist/doc/latex/montex/ANNOUNCE
texmf-dist/doc/latex/montex/EMTEX
texmf-dist/doc/latex/montex/HISTORY
texmf-dist/doc/latex/montex/INSTALL
texmf-dist/doc/latex/montex/MIKTEX
texmf-dist/doc/latex/montex/TODO
texmf-dist/doc/latex/montex/UPDATE
texmf-dist/doc/latex/montex/cyrename.pl
texmf-dist/doc/latex/montex/fontlist.tex
texmf-dist/doc/latex/montex/mfinput/bithe/testfont.input
texmf-dist/doc/latex/montex/mfinput/bithe/testfont.sh
texmf-dist/doc/latex/montex/mkmlsmf.pl
texmf-dist/doc/latex/montex/mls-diag.tex
texmf-dist/doc/latex/montex/mlsquick.pdf
texmf-dist/doc/latex/montex/mlsquick.tex
texmf-dist/doc/latex/montex/mnhyphen.tex
texmf-dist/doc/latex/montex/montex.pdf
texmf-dist/doc/latex/montex/montex.tex
texmf-dist/doc/latex/montex/montex.xml
texmf-dist/doc/latex/montex/mtdocmac.tex
texmf-dist/doc/latex/montex/testfont.input
texmf-dist/doc/latex/montex/testfont.sh
texmf-dist/doc/latex/montex/zanabazr.pdf
texmf-dist/doc/latex/montex/zanabazr.tex
texmf-dist/fonts/map/dvips/montex/mongolian.map
texmf-dist/fonts/source/public/montex/bcghsb.mf
texmf-dist/fonts/source/public/montex/bcghsm.mf
texmf-dist/fonts/source/public/montex/bcghwb.mf
texmf-dist/fonts/source/public/montex/bcghwm.mf
texmf-dist/fonts/source/public/montex/bcgvsb.mf
texmf-dist/fonts/source/public/montex/bcgvsm.mf
texmf-dist/fonts/source/public/montex/bcgvwb.mf
texmf-dist/fonts/source/public/montex/bcgvwm.mf
texmf-dist/fonts/source/public/montex/bicighb.mf
texmf-dist/fonts/source/public/montex/bicighm.mf
texmf-dist/fonts/source/public/montex/bicigvb.mf
texmf-dist/fonts/source/public/montex/bicigvm.mf
texmf-dist/fonts/source/public/montex/bthhsb.mf
texmf-dist/fonts/source/public/montex/bthhsm.mf
texmf-dist/fonts/source/public/montex/bthhwb.mf
texmf-dist/fonts/source/public/montex/bthhwm.mf
texmf-dist/fonts/source/public/montex/bthvsb.mf
texmf-dist/fonts/source/public/montex/bthvsm.mf
texmf-dist/fonts/source/public/montex/bthvwb.mf
texmf-dist/fonts/source/public/montex/bthvwm.mf
texmf-dist/fonts/source/public/montex/bxghsb.mf
texmf-dist/fonts/source/public/montex/bxghsm.mf
texmf-dist/fonts/source/public/montex/bxghwb.mf
texmf-dist/fonts/source/public/montex/bxghwm.mf
texmf-dist/fonts/source/public/montex/bxgvsb.mf
texmf-dist/fonts/source/public/montex/bxgvsm.mf
texmf-dist/fonts/source/public/montex/bxgvwb.mf
texmf-dist/fonts/source/public/montex/bxgvwm.mf
texmf-dist/fonts/source/public/montex/cyrmorec.mf
texmf-dist/fonts/source/public/montex/cyrmorei.mf
texmf-dist/fonts/source/public/montex/cyrmorel.mf
texmf-dist/fonts/source/public/montex/cyrmoreu.mf
texmf-dist/fonts/source/public/montex/kmb10.mf
texmf-dist/fonts/source/public/montex/kmbx10.mf
texmf-dist/fonts/source/public/montex/kmbx12.mf
texmf-dist/fonts/source/public/montex/kmbx5.mf
texmf-dist/fonts/source/public/montex/kmbx6.mf
texmf-dist/fonts/source/public/montex/kmbx7.mf
texmf-dist/fonts/source/public/montex/kmbx8.mf
texmf-dist/fonts/source/public/montex/kmbx9.mf
texmf-dist/fonts/source/public/montex/kmbxsl10.mf
texmf-dist/fonts/source/public/montex/kmbxti10.mf
texmf-dist/fonts/source/public/montex/kmcsc10.mf
texmf-dist/fonts/source/public/montex/kmcsc8.mf
texmf-dist/fonts/source/public/montex/kmcsc9.mf
texmf-dist/fonts/source/public/montex/kmdunh10.mf
texmf-dist/fonts/source/public/montex/kmff10.mf
texmf-dist/fonts/source/public/montex/kmfi10.mf
texmf-dist/fonts/source/public/montex/kmfib8.mf
texmf-dist/fonts/source/public/montex/kminch.mf
texmf-dist/fonts/source/public/montex/kmitt10.mf
texmf-dist/fonts/source/public/montex/kmr10.mf
texmf-dist/fonts/source/public/montex/kmr12.mf
texmf-dist/fonts/source/public/montex/kmr17.mf
texmf-dist/fonts/source/public/montex/kmr5.mf
texmf-dist/fonts/source/public/montex/kmr6.mf
texmf-dist/fonts/source/public/montex/kmr7.mf
texmf-dist/fonts/source/public/montex/kmr8.mf
texmf-dist/fonts/source/public/montex/kmr9.mf
texmf-dist/fonts/source/public/montex/kmsl10.mf
texmf-dist/fonts/source/public/montex/kmsl12.mf
texmf-dist/fonts/source/public/montex/kmsl8.mf
texmf-dist/fonts/source/public/montex/kmsl9.mf
texmf-dist/fonts/source/public/montex/kmsltt10.mf
texmf-dist/fonts/source/public/montex/kmss10.mf
texmf-dist/fonts/source/public/montex/kmss12.mf
texmf-dist/fonts/source/public/montex/kmss17.mf
texmf-dist/fonts/source/public/montex/kmss8.mf
texmf-dist/fonts/source/public/montex/kmss9.mf
texmf-dist/fonts/source/public/montex/kmssbx10.mf
texmf-dist/fonts/source/public/montex/kmssdc10.mf
texmf-dist/fonts/source/public/montex/kmssi10.mf
texmf-dist/fonts/source/public/montex/kmssi12.mf
texmf-dist/fonts/source/public/montex/kmssi17.mf
texmf-dist/fonts/source/public/montex/kmssi8.mf
texmf-dist/fonts/source/public/montex/kmssi9.mf
texmf-dist/fonts/source/public/montex/kmssq8.mf
texmf-dist/fonts/source/public/montex/kmssqi8.mf
texmf-dist/fonts/source/public/montex/kmtcsc10.mf
texmf-dist/fonts/source/public/montex/kmti10.mf
texmf-dist/fonts/source/public/montex/kmti12.mf
texmf-dist/fonts/source/public/montex/kmti7.mf
texmf-dist/fonts/source/public/montex/kmti8.mf
texmf-dist/fonts/source/public/montex/kmti9.mf
texmf-dist/fonts/source/public/montex/kmtt10.mf
texmf-dist/fonts/source/public/montex/kmtt12.mf
texmf-dist/fonts/source/public/montex/kmtt8.mf
texmf-dist/fonts/source/public/montex/kmtt9.mf
texmf-dist/fonts/source/public/montex/kmu10.mf
texmf-dist/fonts/source/public/montex/kmvtt10.mf
texmf-dist/fonts/source/public/montex/kmvtti10.mf
texmf-dist/fonts/source/public/montex/lmligs.mf
texmf-dist/fonts/source/public/montex/macodes.mf
texmf-dist/fonts/source/public/montex/maglyphs.mf
texmf-dist/fonts/source/public/montex/mantrlig.mf
texmf-dist/fonts/source/public/montex/mbatoms.mf
texmf-dist/fonts/source/public/montex/mbcodes.mf
texmf-dist/fonts/source/public/montex/mbglyphs.mf
texmf-dist/fonts/source/public/montex/mbligtbl.mf
texmf-dist/fonts/source/public/montex/mbnums.mf
texmf-dist/fonts/source/public/montex/mbparmb.mf
texmf-dist/fonts/source/public/montex/mbparmm.mf
texmf-dist/fonts/source/public/montex/mbparms.mf
texmf-dist/fonts/source/public/montex/mbpunc.mf
texmf-dist/fonts/source/public/montex/mcccscco.mf
texmf-dist/fonts/source/public/montex/mccoding.mf
texmf-dist/fonts/source/public/montex/mctextit.mf
texmf-dist/fonts/source/public/montex/mcyccsc.mf
texmf-dist/fonts/source/public/montex/mcyitall.mf
texmf-dist/fonts/source/public/montex/mcyrill.mf
texmf-dist/fonts/source/public/montex/mcyrl.mf
texmf-dist/fonts/source/public/montex/mcyrligs.mf
texmf-dist/fonts/source/public/montex/mcyrsymb.mf
texmf-dist/fonts/source/public/montex/mcyru.mf
texmf-dist/fonts/source/public/montex/mcytitle.mf
texmf-dist/fonts/source/public/montex/mlscodes.mf
texmf-dist/fonts/source/public/montex/mocodes.mf
texmf-dist/fonts/source/public/montex/moglyphs.mf
texmf-dist/fonts/source/public/montex/montrlig.mf
texmf-dist/fonts/source/public/montex/mxcodes.mf
texmf-dist/fonts/source/public/montex/mxglyphs.mf
texmf-dist/fonts/source/public/montex/mxntrlig.mf
texmf-dist/fonts/tfm/public/montex/bcghsb.tfm
texmf-dist/fonts/tfm/public/montex/bcghsm.tfm
texmf-dist/fonts/tfm/public/montex/bcghwb.tfm
texmf-dist/fonts/tfm/public/montex/bcghwm.tfm
texmf-dist/fonts/tfm/public/montex/bcgvsb.tfm
texmf-dist/fonts/tfm/public/montex/bcgvsm.tfm
texmf-dist/fonts/tfm/public/montex/bcgvwb.tfm
texmf-dist/fonts/tfm/public/montex/bcgvwm.tfm
texmf-dist/fonts/tfm/public/montex/bicighb.tfm
texmf-dist/fonts/tfm/public/montex/bicighm.tfm
texmf-dist/fonts/tfm/public/montex/bicigvb.tfm
texmf-dist/fonts/tfm/public/montex/bicigvm.tfm
texmf-dist/fonts/tfm/public/montex/bthhsb.tfm
texmf-dist/fonts/tfm/public/montex/bthhsm.tfm
texmf-dist/fonts/tfm/public/montex/bthhwb.tfm
texmf-dist/fonts/tfm/public/montex/bthhwm.tfm
texmf-dist/fonts/tfm/public/montex/bthvsb.tfm
texmf-dist/fonts/tfm/public/montex/bthvsm.tfm
texmf-dist/fonts/tfm/public/montex/bthvwb.tfm
texmf-dist/fonts/tfm/public/montex/bthvwm.tfm
texmf-dist/fonts/tfm/public/montex/bxghsb.tfm
texmf-dist/fonts/tfm/public/montex/bxghsm.tfm
texmf-dist/fonts/tfm/public/montex/bxghwb.tfm
texmf-dist/fonts/tfm/public/montex/bxghwm.tfm
texmf-dist/fonts/tfm/public/montex/bxgvsb.tfm
texmf-dist/fonts/tfm/public/montex/bxgvsm.tfm
texmf-dist/fonts/tfm/public/montex/bxgvwb.tfm
texmf-dist/fonts/tfm/public/montex/bxgvwm.tfm
texmf-dist/fonts/tfm/public/montex/kmb10.tfm
texmf-dist/fonts/tfm/public/montex/kmbx10.tfm
texmf-dist/fonts/tfm/public/montex/kmbx12.tfm
texmf-dist/fonts/tfm/public/montex/kmbx5.tfm
texmf-dist/fonts/tfm/public/montex/kmbx6.tfm
texmf-dist/fonts/tfm/public/montex/kmbx7.tfm
texmf-dist/fonts/tfm/public/montex/kmbx8.tfm
texmf-dist/fonts/tfm/public/montex/kmbx9.tfm
texmf-dist/fonts/tfm/public/montex/kmbxsl10.tfm
texmf-dist/fonts/tfm/public/montex/kmbxti10.tfm
texmf-dist/fonts/tfm/public/montex/kmcsc10.tfm
texmf-dist/fonts/tfm/public/montex/kmcsc8.tfm
texmf-dist/fonts/tfm/public/montex/kmcsc9.tfm
texmf-dist/fonts/tfm/public/montex/kmdunh10.tfm
texmf-dist/fonts/tfm/public/montex/kmff10.tfm
texmf-dist/fonts/tfm/public/montex/kmfi10.tfm
texmf-dist/fonts/tfm/public/montex/kmfib8.tfm
texmf-dist/fonts/tfm/public/montex/kminch.tfm
texmf-dist/fonts/tfm/public/montex/kmitt10.tfm
texmf-dist/fonts/tfm/public/montex/kmr10.tfm
texmf-dist/fonts/tfm/public/montex/kmr12.tfm
texmf-dist/fonts/tfm/public/montex/kmr17.tfm
texmf-dist/fonts/tfm/public/montex/kmr5.tfm
texmf-dist/fonts/tfm/public/montex/kmr6.tfm
texmf-dist/fonts/tfm/public/montex/kmr7.tfm
texmf-dist/fonts/tfm/public/montex/kmr8.tfm
texmf-dist/fonts/tfm/public/montex/kmr9.tfm
texmf-dist/fonts/tfm/public/montex/kmsl10.tfm
texmf-dist/fonts/tfm/public/montex/kmsl12.tfm
texmf-dist/fonts/tfm/public/montex/kmsl8.tfm
texmf-dist/fonts/tfm/public/montex/kmsl9.tfm
texmf-dist/fonts/tfm/public/montex/kmsltt10.tfm
texmf-dist/fonts/tfm/public/montex/kmss10.tfm
texmf-dist/fonts/tfm/public/montex/kmss12.tfm
texmf-dist/fonts/tfm/public/montex/kmss17.tfm
texmf-dist/fonts/tfm/public/montex/kmss8.tfm
texmf-dist/fonts/tfm/public/montex/kmss9.tfm
texmf-dist/fonts/tfm/public/montex/kmssbx10.tfm
texmf-dist/fonts/tfm/public/montex/kmssdc10.tfm
texmf-dist/fonts/tfm/public/montex/kmssi10.tfm
texmf-dist/fonts/tfm/public/montex/kmssi12.tfm
texmf-dist/fonts/tfm/public/montex/kmssi17.tfm
texmf-dist/fonts/tfm/public/montex/kmssi8.tfm
texmf-dist/fonts/tfm/public/montex/kmssi9.tfm
texmf-dist/fonts/tfm/public/montex/kmssq8.tfm
texmf-dist/fonts/tfm/public/montex/kmssqi8.tfm
texmf-dist/fonts/tfm/public/montex/kmtcsc10.tfm
texmf-dist/fonts/tfm/public/montex/kmti10.tfm
texmf-dist/fonts/tfm/public/montex/kmti12.tfm
texmf-dist/fonts/tfm/public/montex/kmti7.tfm
texmf-dist/fonts/tfm/public/montex/kmti8.tfm
texmf-dist/fonts/tfm/public/montex/kmti9.tfm
texmf-dist/fonts/tfm/public/montex/kmtt10.tfm
texmf-dist/fonts/tfm/public/montex/kmtt12.tfm
texmf-dist/fonts/tfm/public/montex/kmtt8.tfm
texmf-dist/fonts/tfm/public/montex/kmtt9.tfm
texmf-dist/fonts/tfm/public/montex/kmu10.tfm
texmf-dist/fonts/tfm/public/montex/kmvtt10.tfm
texmf-dist/fonts/tfm/public/montex/kmvtti10.tfm
texmf-dist/fonts/type1/public/montex/bcghsb.pfb
texmf-dist/fonts/type1/public/montex/bcghsm.pfb
texmf-dist/fonts/type1/public/montex/bcghwb.pfb
texmf-dist/fonts/type1/public/montex/bcghwm.pfb
texmf-dist/fonts/type1/public/montex/bcgvsb.pfb
texmf-dist/fonts/type1/public/montex/bcgvsm.pfb
texmf-dist/fonts/type1/public/montex/bcgvwb.pfb
texmf-dist/fonts/type1/public/montex/bcgvwm.pfb
texmf-dist/fonts/type1/public/montex/bicighb.pfb
texmf-dist/fonts/type1/public/montex/bicighm.pfb
texmf-dist/fonts/type1/public/montex/bicigvb.pfb
texmf-dist/fonts/type1/public/montex/bicigvm.pfb
texmf-dist/fonts/type1/public/montex/bthhsb.pfb
texmf-dist/fonts/type1/public/montex/bthhsm.pfb
texmf-dist/fonts/type1/public/montex/bthhwb.pfb
texmf-dist/fonts/type1/public/montex/bthhwm.pfb
texmf-dist/fonts/type1/public/montex/bthvsb.pfb
texmf-dist/fonts/type1/public/montex/bthvsm.pfb
texmf-dist/fonts/type1/public/montex/bthvwb.pfb
texmf-dist/fonts/type1/public/montex/bthvwm.pfb
texmf-dist/fonts/type1/public/montex/bxghsb.pfb
texmf-dist/fonts/type1/public/montex/bxghsm.pfb
texmf-dist/fonts/type1/public/montex/bxghwb.pfb
texmf-dist/fonts/type1/public/montex/bxghwm.pfb
texmf-dist/fonts/type1/public/montex/bxgvsb.pfb
texmf-dist/fonts/type1/public/montex/bxgvsm.pfb
texmf-dist/fonts/type1/public/montex/bxgvwb.pfb
texmf-dist/fonts/type1/public/montex/bxgvwm.pfb
texmf-dist/fonts/type1/public/montex/kmbx10.pfb
texmf-dist/fonts/type1/public/montex/kmr10.pfb
texmf-dist/fonts/type1/public/montex/kmss10.pfb
texmf-dist/tex/latex/montex/bicig.def
texmf-dist/tex/latex/montex/bithe.def
texmf-dist/tex/latex/montex/buryat.def
texmf-dist/tex/latex/montex/cpctt.def
texmf-dist/tex/latex/montex/cpdbk.def
texmf-dist/tex/latex/montex/cpibmrus.def
texmf-dist/tex/latex/montex/cpkoi.def
texmf-dist/tex/latex/montex/cpmls.def
texmf-dist/tex/latex/montex/cpmnk.def
texmf-dist/tex/latex/montex/cpmos.def
texmf-dist/tex/latex/montex/cpncc.def
texmf-dist/tex/latex/montex/english.def
texmf-dist/tex/latex/montex/kazakh.def
texmf-dist/tex/latex/montex/lmabthhs.fd
texmf-dist/tex/latex/montex/lmabthhw.fd
texmf-dist/tex/latex/montex/lmabthvs.fd
texmf-dist/tex/latex/montex/lmabthvw.fd
texmf-dist/tex/latex/montex/lmaenc.def
texmf-dist/tex/latex/montex/lmccmdh.fd
texmf-dist/tex/latex/montex/lmccmfib.fd
texmf-dist/tex/latex/montex/lmccmfr.fd
texmf-dist/tex/latex/montex/lmccmiss.fd
texmf-dist/tex/latex/montex/lmccmr.fd
texmf-dist/tex/latex/montex/lmccmss.fd
texmf-dist/tex/latex/montex/lmccmssq.fd
texmf-dist/tex/latex/montex/lmccmtt.fd
texmf-dist/tex/latex/montex/lmccmvtt.fd
texmf-dist/tex/latex/montex/lmcenc.def
texmf-dist/tex/latex/montex/lmclcmss.fd
texmf-dist/tex/latex/montex/lmobcghs.fd
texmf-dist/tex/latex/montex/lmobcghw.fd
texmf-dist/tex/latex/montex/lmobcgvs.fd
texmf-dist/tex/latex/montex/lmobcgvw.fd
texmf-dist/tex/latex/montex/lmoenc.def
texmf-dist/tex/latex/montex/lmsbcgh.fd
texmf-dist/tex/latex/montex/lmsbcgv.fd
texmf-dist/tex/latex/montex/lmsenc.def
texmf-dist/tex/latex/montex/lmubxghs.fd
texmf-dist/tex/latex/montex/lmubxghw.fd
texmf-dist/tex/latex/montex/lmubxgvs.fd
texmf-dist/tex/latex/montex/lmubxgvw.fd
texmf-dist/tex/latex/montex/lmuenc.def
texmf-dist/tex/latex/montex/mls.sty
texmf-dist/tex/latex/montex/mlsgalig.tex
texmf-dist/tex/latex/montex/mlstrans.tex
texmf-dist/tex/latex/montex/mnhyphex.tex
texmf-dist/tex/latex/montex/rlbicig.sty
texmf-dist/tex/latex/montex/russian.def
texmf-dist/tex/latex/montex/xalx.def
texmf-dist/doc/latex/soyombo/soyo4tex.dvi
texmf-dist/doc/latex/soyombo/soyo4tex.tex
texmf-dist/fonts/source/public/soyombo/soyombo.mf
texmf-dist/fonts/source/public/soyombo/soyombot.mf
texmf-dist/fonts/tfm/public/soyombo/soyombo.tfm
texmf-dist/fonts/tfm/public/soyombo/soyombot.tfm
texmf-dist/tex/latex/soyombo/soyombo.sty
)

%__mkdir_p ${PREF}/texmf-dist
for i in "${manifest[@]}"; do 
    %__install -D %{texlive_src}/$i ${PREF}/$i
done

## info
%__rm -f %{buildroot}%{_infodir}/dir
%__gzip -9nf %{buildroot}%{_infodir}/*info* ||:

## man
## man t1* files are provided by t1utils
for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
done

## man some files are provided by psutils
for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
done

## fix perl path
for i in source/metapost/expressg/expressg.dtx \
         doc/metapost/expressg/n2mpsprl.prl \
         doc/latex/songbook/contrib/crd2sb/crd2sb; do 
    [ -f %{build_texmf}-dist/${i} ] && \
        %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
done

## remove asymptote directries, which provides asymptote package
find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
# find %{buildroot} -name "Makefile" | xargs %__rm -f

# ## remove xindy
# find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf

# ## remove tex4ht
# find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf

## remove arch dependent binaries
%__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386

## remove unpackaging files
find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f

## 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 mongolian.map" && \
    echo -n "    " && \
    echo -n "Running updmap: enable mongolian.map ... " && \
    %{exec_updmap} --nomkmap --enable MixedMap mongolian.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}

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

echo -n "    "
echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done."

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 mongolian.map" && \
        echo -n "    " && \
        echo -n "Running updmap: disable mongolian.map ... " && \
        %{exec_updmap} --nomkmap --disable mongolian.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
* Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
- generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-langmongolian
- improved %%post

* Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
- generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-langmongolian
- 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-langmongolian
