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

%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: Chinese documentation
Summary(ja): TeX Live: Chinese documentation
Name: texlive-collection-documentation-chinese
Version: 2009
Release: 3%{?_dist_release}
License: LPPL, GPL+, LGPLv2+, GFDL
Group: Applications/Publishing
URL:http://www.tug.org/texlive/

Requires: texlive = %{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 Chinese documentation: 


This package contains the following CTAN packages: 
asymptote-faq-zh-cn: Asymptote FAQ (Chinese translation).
asymptote-by-example-zh-cn: Asymptote by example.
asymptote-manual-zh-cn: A Chinese translation of the asymptote manual.
ctex-faq: LaTeX FAQ by the Chinese TeX Society (ctex.org).
latex-notes-zh-cn: Chinese Introduction to TeX and LaTeX.
lshort-chinese: Introduction to LaTeX, in Chinese.
texlive-zh-cn: TeX Live manual (Chinese)

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

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

このパッケージは以下のようなパッケージ集です。
Chinese documentation: 


このパッケージは以下の CTAN パッケージを含んでいます: 
asymptote-faq-zh-cn: Asymptote FAQ (Chinese translation).
asymptote-by-example-zh-cn: Asymptote by example.
asymptote-manual-zh-cn: A Chinese translation of the asymptote manual.
ctex-faq: LaTeX FAQ by the Chinese TeX Society (ctex.org).
latex-notes-zh-cn: Chinese Introduction to TeX and LaTeX.
lshort-chinese: Introduction to LaTeX, in Chinese.
texlive-zh-cn: TeX Live manual (Chinese)

%prep

%build

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

PREF=%{buildroot}%{tex_destdir}

manifest=(
texmf-dist/doc/support/asymptote-faq-zh-cn/README
texmf-dist/doc/support/asymptote-faq-zh-cn/asymptote-faq-zh-cn.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/asy-faq.tex
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-1.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-1.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-2.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-2.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-7.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-7.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-8.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-8.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-9.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/4-9.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/5-1a.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/5-1a.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/5-2.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/5-2.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/5-4.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/5-4.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-1.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-1.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-11a.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-11a.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-11b.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-11b.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-12.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-12.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-14.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-14.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-15.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-15.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-19.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-19.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-2.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-2.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-3.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-3.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-4.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-4.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-5.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-5.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-6.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-6.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-7b.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-7b.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-7c.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-7c.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-8b.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-8b.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-8c.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-8c.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-9.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/6-9.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-4.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-4.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-8a.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-8a.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-8b.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-8b.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-8c.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-8c.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-8d.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-8d.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-9a.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-9a.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-9b.asy
texmf-dist/doc/support/asymptote-faq-zh-cn/src/figures/8-9b.pdf
texmf-dist/doc/support/asymptote-faq-zh-cn/src/preamble_newnew.tex
texmf-dist/doc/support/asymptote-by-example-zh-cn/README
texmf-dist/doc/support/asymptote-by-example-zh-cn/asymptote-by-example-zh-cn.pdf
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/CLEAN.bat
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/MAKEPDF.bat
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/asy.bib
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/asymptote.sty
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/asysyntex.sty
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/cleantmp
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/CJKmove.sty
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/area.asy
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/hanoi.asy
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/hyper.asy
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/movie15.sty
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/recplot.asy
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/stars.asy
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/tiling.asy
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/figure-src/xiantu.asy
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/gpl-3.0.tex
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/main.tex
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/makepdf
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/myfonts.sty
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/tiling.pdf
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/tiling.tex
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/xiantu-ancient.pdf
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/xiantu.pdf
texmf-dist/doc/support/asymptote-by-example-zh-cn/src/xiantu.tex
texmf-dist/doc/support/asymptote-manual-zh-cn/README
texmf-dist/doc/support/asymptote-manual-zh-cn/asymptote-manual-zh-cn.pdf
texmf-dist/doc/support/asymptote-manual-zh-cn/src/CDlabel.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/CLEAN.bat
texmf-dist/doc/support/asymptote-manual-zh-cn/src/Coons.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/Gouraud.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/MAKEPDF.bat
texmf-dist/doc/support/asymptote-manual-zh-cn/src/Pythagoras.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/adobefonts.tex
texmf-dist/doc/support/asymptote-manual-zh-cn/src/asycolors.sty
texmf-dist/doc/support/asymptote-manual-zh-cn/src/asysyntex.tex
texmf-dist/doc/support/asymptote-manual-zh-cn/src/axialshade.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/bezier2.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/beziercurve.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/bigsquare.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/cleantmp
texmf-dist/doc/support/asymptote-manual-zh-cn/src/clippath.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/colons.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/colors.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/cube.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/diagonal.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/dots.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/fzfonts.tex
texmf-dist/doc/support/asymptote-manual-zh-cn/src/hatch.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/join.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/labelalign.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/labelsquare.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/latticeshading.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/linecap.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/linejoin.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/linetype.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/logo.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/main.tex
texmf-dist/doc/support/asymptote-manual-zh-cn/src/makepdf
texmf-dist/doc/support/asymptote-manual-zh-cn/src/makepen.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/mexicanhat.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/quartercircle.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/shadedtiling.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/shadestroke.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/square.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/subpictures.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/superpath.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/tile.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/transparency.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/windingnumber.asy
texmf-dist/doc/support/asymptote-manual-zh-cn/src/winfonts.tex
texmf-dist/doc/latex/ctex-faq/README
texmf-dist/doc/latex/ctex-faq/ctex-faq.pdf
texmf-dist/doc/latex/ctex-faq/src/ctex-faq.sty
texmf-dist/doc/latex/ctex-faq/src/ctex-faq.tex
texmf-dist/doc/latex/ctex-faq/src/make.bat
texmf-dist/doc/generic/latex-notes-zh-cn/README
texmf-dist/doc/generic/latex-notes-zh-cn/history.txt
texmf-dist/doc/generic/latex-notes-zh-cn/latex-notes-zh-cn.pdf
texmf-dist/doc/generic/latex-notes-zh-cn/license.txt
texmf-dist/doc/generic/latex-notes-zh-cn/src/basics.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/dscf4684.jpg
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/arrow.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/color.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/colors.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/curve.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/dashed.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/dot.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/fill.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/label.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/line.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/loop.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/path.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/predefined.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_arc.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_arrow.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_axis.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_bezier.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_circle.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_color.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_curve.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_dot.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_fill.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_frame.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_grid.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_label.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_line.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_linestyle.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_origin.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_parabola.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_polygon.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_rput.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/pst_uput.eps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/subfig.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/subfig_left.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/subfig_right.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/transform.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/examples/uline.mps
texmf-dist/doc/generic/latex-notes-zh-cn/src/fonts.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/graphics.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/i18n.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/introduction.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/lnotes.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/math.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/misc.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/postcript.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/preface.tex
texmf-dist/doc/generic/latex-notes-zh-cn/src/reading.bib
texmf-dist/doc/generic/latex-notes-zh-cn/src/tables.tex
texmf-dist/doc/latex/lshort-chinese/README
texmf-dist/doc/latex/lshort-chinese/lshort-zh-cn.pdf
texmf-dist/doc/latex/lshort-chinese/src/biblio.tex
texmf-dist/doc/latex/lshort-chinese/src/contrib.tex
texmf-dist/doc/latex/lshort-chinese/src/custom.tex
texmf-dist/doc/latex/lshort-chinese/src/fancyhea.sty
texmf-dist/doc/latex/lshort-chinese/src/graphic.tex
texmf-dist/doc/latex/lshort-chinese/src/lshort-a5.tex
texmf-dist/doc/latex/lshort-chinese/src/lshort-base.tex
texmf-dist/doc/latex/lshort-chinese/src/lshort.sty
texmf-dist/doc/latex/lshort-chinese/src/lshort.tex
texmf-dist/doc/latex/lshort-chinese/src/lssym.tex
texmf-dist/doc/latex/lshort-chinese/src/math.tex
texmf-dist/doc/latex/lshort-chinese/src/myclass.sty
texmf-dist/doc/latex/lshort-chinese/src/mylayout.sty
texmf-dist/doc/latex/lshort-chinese/src/overview.tex
texmf-dist/doc/latex/lshort-chinese/src/spec.tex
texmf-dist/doc/latex/lshort-chinese/src/test.tex
texmf-dist/doc/latex/lshort-chinese/src/things.tex
texmf-dist/doc/latex/lshort-chinese/src/title.tex
texmf-dist/doc/latex/lshort-chinese/src/typeset.tex
texmf-dist/doc/latex/lshort-chinese/src/usefulmacros.sty
texmf-dist/doc/latex/lshort-chinese/src/zhfont.sty
texmf-dist/doc/latex/lshort-chinese/src/zhmath.sty
texmf-dist/doc/latex/lshort-chinese/src/zhspacing.sty
texmf-dist/doc/latex/lshort-chinese/src/zhulem.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

%clean
%__rm -rf %{buildroot}

%post
%{exec_texhash}

exit 0


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

fi

exit 0

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

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

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