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

%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: Games typesetting
Summary(ja): TeX Live: Games typesetting
Name: texlive-collection-games
Version: 2009
Release: 3%{?_dist_release}
License: No Info, Public Domain, Freely redistributable without restriction, LPPL, GPL+
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 Games typesetting: 
Setups for typesetting various games, including chess.

This package contains the following CTAN packages: 
cchess: Chinese chess.
chess: Fonts for typesetting chess boards.
chess-problem-diagrams: A package for typesetting chess problem diagrams.
chessboard: Print chess boards.
chessfss: A package to handle chess fonts.
crossword: Typeset crossword puzzles.
crosswrd: Macros for typesetting crossword puzzles.
egameps: LaTeX package for typesetting extensive games.
go: Fonts and macros for typesetting go games.
hexgame: Provide an environment to draw a hexgame-board.
jeopardy: Build a jeopardy game in LaTeX.
othello: Create othello boards in LaTeX.
psgo: Typeset go diagrams with PSTricks.
sgame: LaTeX style for typesetting strategic games.
skak: Fonts and macros for typesetting chess games.
skaknew: The skak chess fonts redone in Adobe Type 1.
sudoku: Create sudoku grids.
sudokubundle: A set of sudoku-related packages.
xq: Support for writing about xiangqi.
xskak: An extension to the skak package for chess typesetting.

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

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

このパッケージは以下のようなパッケージ集です。
Games typesetting: 
Setups for typesetting various games, including chess.

このパッケージは以下の CTAN パッケージを含んでいます： 
cchess: Chinese chess.
chess: Fonts for typesetting chess boards.
chess-problem-diagrams: A package for typesetting chess problem diagrams.
chessboard: Print chess boards.
chessfss: A package to handle chess fonts.
crossword: Typeset crossword puzzles.
crosswrd: Macros for typesetting crossword puzzles.
egameps: LaTeX package for typesetting extensive games.
go: Fonts and macros for typesetting go games.
hexgame: Provide an environment to draw a hexgame-board.
jeopardy: Build a jeopardy game in LaTeX.
othello: Create othello boards in LaTeX.
psgo: Typeset go diagrams with PSTricks.
sgame: LaTeX style for typesetting strategic games.
skak: Fonts and macros for typesetting chess games.
skaknew: The skak chess fonts redone in Adobe Type 1.
sudoku: Create sudoku grids.
sudokubundle: A set of sudoku-related packages.
xq: Support for writing about xiangqi.
xskak: An extension to the skak package for chess typesetting.

%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/fonts/source/public/cchess/cchess46.mf
texmf-dist/fonts/source/public/cchess/ccpieces.mf
texmf-dist/fonts/tfm/public/cchess/cchess46.tfm
texmf-dist/tex/latex/cchess/cchess.sty
texmf-dist/fonts/source/public/chess/chess10.mf
texmf-dist/fonts/source/public/chess/chess20.mf
texmf-dist/fonts/source/public/chess/chess30.mf
texmf-dist/fonts/source/public/chess/chessbase.mf
texmf-dist/fonts/source/public/chess/chessdiag.mf
texmf-dist/fonts/source/public/chess/chessf10.mf
texmf-dist/fonts/source/public/chess/chessfig10.mf
texmf-dist/fonts/source/public/chess/chesspieces.mf
texmf-dist/fonts/source/public/chess/empty.mf
texmf-dist/tex/latex/chess/bdfchess.sty
texmf-dist/tex/latex/chess/chess.sty
texmf-dist/tex/latex/chess/chessboa.sty
texmf-dist/tex/latex/chess/chesskey.sty
texmf-dist/tex/latex/chess/chessmg.sty
texmf-dist/doc/latex/chess-problem-diagrams/README
texmf-dist/doc/latex/chess-problem-diagrams/diagram.pdf
texmf-dist/doc/latex/chess-problem-diagrams/fonts.zip
texmf-dist/source/latex/chess-problem-diagrams/diagram.dtx
texmf-dist/source/latex/chess-problem-diagrams/diagram.ins
texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty
texmf-dist/doc/latex/chessboard/README
texmf-dist/doc/latex/chessboard/README.TEXLIVE
texmf-dist/source/latex/chessboard/chessboard-src.dtx
texmf-dist/source/latex/chessboard/chessboard.ins
texmf-dist/tex/latex/chessboard/chessboard-keys-main.sty
texmf-dist/tex/latex/chessboard/chessboard-keys-pgf.sty
texmf-dist/tex/latex/chessboard/chessboard-pgf.sty
texmf-dist/tex/latex/chessboard/chessboard.sty
texmf-dist/doc/latex/chessfss/README
texmf-dist/doc/latex/chessfss/README.TEXLIVE
texmf-dist/source/latex/chessfss/chessfss-src.dtx
texmf-dist/source/latex/chessfss/chessfss.ins
texmf-dist/fonts/enc/dvips/chessfss/chess-board-example-enc.enc
texmf-dist/fonts/enc/dvips/chessfss/chess-fig-example-enc.enc
texmf-dist/tex/latex/chessfss/chessfss.sty
texmf-dist/tex/latex/chessfss/lsb1enc.def
texmf-dist/tex/latex/chessfss/lsb1skak.fd
texmf-dist/tex/latex/chessfss/lsb1skaknew.fd
texmf-dist/tex/latex/chessfss/lsb2enc.def
texmf-dist/tex/latex/chessfss/lsb2skak.fd
texmf-dist/tex/latex/chessfss/lsb2skaknew.fd
texmf-dist/tex/latex/chessfss/lsb3enc.def
texmf-dist/tex/latex/chessfss/lsb3skak.fd
texmf-dist/tex/latex/chessfss/lsb3skaknew.fd
texmf-dist/tex/latex/chessfss/lsbc1enc.def
texmf-dist/tex/latex/chessfss/lsbc1skaknew.fd
texmf-dist/tex/latex/chessfss/lsbc2enc.def
texmf-dist/tex/latex/chessfss/lsbc2skaknew.fd
texmf-dist/tex/latex/chessfss/lsbc3enc.def
texmf-dist/tex/latex/chessfss/lsbc3skaknew.fd
texmf-dist/tex/latex/chessfss/lsbc4enc.def
texmf-dist/tex/latex/chessfss/lsbc4skaknew.fd
texmf-dist/tex/latex/chessfss/lsbc5enc.def
texmf-dist/tex/latex/chessfss/lsbc5skaknew.fd
texmf-dist/tex/latex/chessfss/lsbenc.def
texmf-dist/tex/latex/chessfss/lsbskak.fd
texmf-dist/tex/latex/chessfss/lsbskaknew.fd
texmf-dist/tex/latex/chessfss/lsfenc.def
texmf-dist/tex/latex/chessfss/lsfskak.fd
texmf-dist/tex/latex/chessfss/lsfskaknew.fd
texmf-dist/tex/latex/chessfss/lsienc.def
texmf-dist/tex/latex/chessfss/lsiskak.fd
texmf-dist/tex/latex/chessfss/lsiskaknew.fd
texmf-dist/doc/latex/crossword/README
texmf-dist/doc/latex/crossword/cwpuzzle.pdf
texmf-dist/source/latex/crossword/Makefile
texmf-dist/source/latex/crossword/cwpuzzle.dtx
texmf-dist/source/latex/crossword/cwpuzzle.ins
texmf-dist/tex/latex/crossword/cwpuzzle.sty
texmf-dist/doc/latex/crosswrd/README
texmf-dist/doc/latex/crosswrd/crosswrd.pdf
texmf-dist/doc/latex/crosswrd/grid0.tex
texmf-dist/doc/latex/crosswrd/grid1.tex
texmf-dist/doc/latex/crosswrd/test0.tex
texmf-dist/doc/latex/crosswrd/test1.tex
texmf-dist/source/latex/crosswrd/crosswrd.dtx
texmf-dist/source/latex/crosswrd/crosswrd.ins
texmf-dist/tex/latex/crosswrd/crosswrd.sty
texmf-dist/doc/latex/egameps/README
texmf-dist/doc/latex/egameps/egameps.pdf
texmf-dist/doc/latex/egameps/egameps.tex
texmf-dist/tex/latex/egameps/egameps.sty
texmf-dist/source/latex/go/gomaps.ltx
texmf-dist/fonts/source/public/go/go.mf
texmf-dist/fonts/source/public/go/go10.mf
texmf-dist/fonts/source/public/go/go15.mf
texmf-dist/fonts/source/public/go/go1bla10.mf
texmf-dist/fonts/source/public/go/go1bla15.mf
texmf-dist/fonts/source/public/go/go1bla20.mf
texmf-dist/fonts/source/public/go/go1black.mf
texmf-dist/fonts/source/public/go/go1whi10.mf
texmf-dist/fonts/source/public/go/go1whi15.mf
texmf-dist/fonts/source/public/go/go1whi20.mf
texmf-dist/fonts/source/public/go/go1white.mf
texmf-dist/fonts/source/public/go/go20.mf
texmf-dist/fonts/source/public/go/go2bla10.mf
texmf-dist/fonts/source/public/go/go2bla15.mf
texmf-dist/fonts/source/public/go/go2bla20.mf
texmf-dist/fonts/source/public/go/go2black.mf
texmf-dist/fonts/source/public/go/go2whi10.mf
texmf-dist/fonts/source/public/go/go2whi15.mf
texmf-dist/fonts/source/public/go/go2whi20.mf
texmf-dist/fonts/source/public/go/go2white.mf
texmf-dist/fonts/source/public/go/gosign50.mf
texmf-dist/fonts/tfm/public/go/go10.tfm
texmf-dist/fonts/tfm/public/go/go15.tfm
texmf-dist/fonts/tfm/public/go/go1bla10.tfm
texmf-dist/fonts/tfm/public/go/go1bla15.tfm
texmf-dist/fonts/tfm/public/go/go1bla20.tfm
texmf-dist/fonts/tfm/public/go/go1whi10.tfm
texmf-dist/fonts/tfm/public/go/go1whi15.tfm
texmf-dist/fonts/tfm/public/go/go1whi20.tfm
texmf-dist/fonts/tfm/public/go/go20.tfm
texmf-dist/fonts/tfm/public/go/go2bla10.tfm
texmf-dist/fonts/tfm/public/go/go2bla15.tfm
texmf-dist/fonts/tfm/public/go/go2bla20.tfm
texmf-dist/fonts/tfm/public/go/go2whi10.tfm
texmf-dist/fonts/tfm/public/go/go2whi15.tfm
texmf-dist/fonts/tfm/public/go/go2whi20.tfm
texmf-dist/fonts/tfm/public/go/gosign50.tfm
texmf-dist/tex/latex/go/go.sty
texmf-dist/doc/latex/hexgame/README
texmf-dist/doc/latex/hexgame/hexgame.pdf
texmf-dist/doc/latex/hexgame/hexgame.tex
texmf-dist/tex/latex/hexgame/hexgame.sty
texmf-dist/doc/latex/jeopardy/README
texmf-dist/doc/latex/jeopardy/example/aleq.jpg
texmf-dist/doc/latex/jeopardy/example/blackpanel.tex
texmf-dist/doc/latex/jeopardy/example/game1-two.pdf
texmf-dist/doc/latex/jeopardy/example/game1-two.tex
texmf-dist/doc/latex/jeopardy/example/game1.pdf
texmf-dist/doc/latex/jeopardy/example/game1.tex
texmf-dist/doc/latex/jeopardy/example/game1a.pdf
texmf-dist/doc/latex/jeopardy/example/game1a.tex
texmf-dist/doc/latex/jeopardy/example/game2.pdf
texmf-dist/doc/latex/jeopardy/example/game2.tex
texmf-dist/doc/latex/jeopardy/example/game2a.pdf
texmf-dist/doc/latex/jeopardy/example/game2a.tex
texmf-dist/doc/latex/jeopardy/example/game3.pdf
texmf-dist/doc/latex/jeopardy/example/game3.tex
texmf-dist/doc/latex/jeopardy/example/game4.pdf
texmf-dist/doc/latex/jeopardy/example/game4.tex
texmf-dist/doc/latex/jeopardy/example/jeopardy-CZ.pdf
texmf-dist/doc/latex/jeopardy/example/jeopardy-CZ.tex
texmf-dist/doc/latex/jeopardy/example/joke.jpg
texmf-dist/doc/latex/jeopardy/example/logo-bc.jpg
texmf-dist/doc/latex/jeopardy/example/pdfscreen.cfg
texmf-dist/doc/latex/jeopardy/example/picture.jpg
texmf-dist/doc/latex/jeopardy/jeopardy.pdf
texmf-dist/source/latex/jeopardy/jeopardy.dtx
texmf-dist/source/latex/jeopardy/jeopardy.ins
texmf-dist/tex/latex/jeopardy/jeopardy.cfg
texmf-dist/tex/latex/jeopardy/jeopardy.sty
texmf-dist/doc/latex/othello/boards.tex
texmf-dist/doc/latex/othello/ot.bat
texmf-dist/doc/latex/othello/ot1.bat.bat
texmf-dist/doc/latex/othello/othello.tex
texmf-dist/fonts/source/public/othello/ot.mf
texmf-dist/fonts/source/public/othello/ot10.mf
texmf-dist/fonts/source/public/othello/ot15.mf
texmf-dist/fonts/source/public/othello/ot1bla10.mf
texmf-dist/fonts/source/public/othello/ot1bla15.mf
texmf-dist/fonts/source/public/othello/ot1bla20.mf
texmf-dist/fonts/source/public/othello/ot1black.mf
texmf-dist/fonts/source/public/othello/ot1neu.mf
texmf-dist/fonts/source/public/othello/ot1neu10.mf
texmf-dist/fonts/source/public/othello/ot1neu15.mf
texmf-dist/fonts/source/public/othello/ot1neu20.mf
texmf-dist/fonts/source/public/othello/ot1whi10.mf
texmf-dist/fonts/source/public/othello/ot1whi15.mf
texmf-dist/fonts/source/public/othello/ot1whi20.mf
texmf-dist/fonts/source/public/othello/ot1white.mf
texmf-dist/fonts/tfm/public/othello/ot10.tfm
texmf-dist/fonts/tfm/public/othello/ot15.tfm
texmf-dist/fonts/tfm/public/othello/ot1bla10.tfm
texmf-dist/fonts/tfm/public/othello/ot1bla15.tfm
texmf-dist/fonts/tfm/public/othello/ot1bla20.tfm
texmf-dist/fonts/tfm/public/othello/ot1neu10.tfm
texmf-dist/fonts/tfm/public/othello/ot1neu15.tfm
texmf-dist/fonts/tfm/public/othello/ot1neu20.tfm
texmf-dist/fonts/tfm/public/othello/ot1whi10.tfm
texmf-dist/fonts/tfm/public/othello/ot1whi15.tfm
texmf-dist/fonts/tfm/public/othello/ot1whi20.tfm
texmf-dist/tex/latex/othello/othello.sty
texmf-dist/doc/latex/psgo/Changes
texmf-dist/doc/latex/psgo/README
texmf-dist/doc/latex/psgo/psgomanual.pdf
texmf-dist/doc/latex/psgo/psgomanual.tex
texmf-dist/tex/latex/psgo/psgo.sty
texmf-dist/doc/latex/sgame/README
texmf-dist/doc/latex/sgame/sgame.pdf
texmf-dist/doc/latex/sgame/sgame.tex
texmf-dist/tex/latex/sgame/sgame.sty
texmf-dist/tex/latex/sgame/sgamevar.sty
texmf-dist/doc/latex/skak/README
texmf-dist/doc/latex/skak/WC-2004-S-00007.tex
texmf-dist/doc/latex/skak/_region_.tex
texmf-dist/doc/latex/skak/andreas_wilm_1.tex
texmf-dist/doc/latex/skak/angletst.tex
texmf-dist/doc/latex/skak/debug_storegame.tex
texmf-dist/doc/latex/skak/demo-symbols.tex
texmf-dist/doc/latex/skak/fen_with_black.tex
texmf-dist/doc/latex/skak/font.tex
texmf-dist/doc/latex/skak/font2.tex
texmf-dist/doc/latex/skak/hightest.tex
texmf-dist/doc/latex/skak/informator.pdf
texmf-dist/doc/latex/skak/informator.tex
texmf-dist/doc/latex/skak/ingo-bug1.tex
texmf-dist/doc/latex/skak/lambda.tex
texmf-dist/doc/latex/skak/longmoves.tex
texmf-dist/doc/latex/skak/makefile
texmf-dist/doc/latex/skak/promotion_problem_Ulrike.tex
texmf-dist/doc/latex/skak/refman.pdf
texmf-dist/doc/latex/skak/refman.tex
texmf-dist/doc/latex/skak/show.tex
texmf-dist/doc/latex/skak/skakdoc.pdf
texmf-dist/doc/latex/skak/skakdoc.tex
texmf-dist/doc/latex/skak/syntax.tex
texmf-dist/doc/latex/skak/test1.tex
texmf-dist/doc/latex/skak/test2.tex
texmf-dist/doc/latex/skak/test_capture.tex
texmf-dist/doc/latex/skak/tuggame.pdf
texmf-dist/doc/latex/skak/tuggame.tex
texmf-dist/fonts/map/dvips/skak/special.map
texmf-dist/fonts/source/public/skak/skak10.mf
texmf-dist/fonts/source/public/skak/skak15.mf
texmf-dist/fonts/source/public/skak/skak20.mf
texmf-dist/fonts/source/public/skak/skak30.mf
texmf-dist/fonts/source/public/skak/skakbase.mf
texmf-dist/fonts/source/public/skak/skakbrikker.mf
texmf-dist/fonts/source/public/skak/skakf10.mf
texmf-dist/fonts/source/public/skak/skakf10b.mf
texmf-dist/fonts/source/public/skak/skakinf.mf
texmf-dist/fonts/tfm/public/skak/skak10.tfm
texmf-dist/fonts/tfm/public/skak/skak15.tfm
texmf-dist/fonts/tfm/public/skak/skak20.tfm
texmf-dist/fonts/tfm/public/skak/skak30.tfm
texmf-dist/fonts/tfm/public/skak/skakf10.tfm
texmf-dist/fonts/tfm/public/skak/skakf10b.tfm
texmf-dist/tex/latex/skak/chess-workshop-symbols.sty
texmf-dist/tex/latex/skak/lambda.sty
texmf-dist/tex/latex/skak/skak.fd
texmf-dist/tex/latex/skak/skak.sty
texmf-dist/tex/latex/skak/uskak.fd
texmf-dist/doc/fonts/skaknew/README
texmf-dist/doc/fonts/skaknew/SkakNew.pdf
texmf-dist/doc/fonts/skaknew/SkakNew.tex
texmf-dist/doc/fonts/skaknew/fonttables.pdf
texmf-dist/doc/fonts/skaknew/install.vtex
texmf-dist/fonts/afm/public/skaknew/AlphaDia.afm
texmf-dist/fonts/afm/public/skaknew/SkakNew-Diagram.afm
texmf-dist/fonts/afm/public/skaknew/SkakNew-DiagramT.afm
texmf-dist/fonts/afm/public/skaknew/SkakNew-Figurine.afm
texmf-dist/fonts/afm/public/skaknew/SkakNew-FigurineBold.afm
texmf-dist/fonts/map/dvips/skaknew/SkakNew.map
texmf-dist/fonts/opentype/public/skaknew/AlphaDia.otf
texmf-dist/fonts/opentype/public/skaknew/SkakNew-Diagram.otf
texmf-dist/fonts/opentype/public/skaknew/SkakNew-DiagramT.otf
texmf-dist/fonts/opentype/public/skaknew/SkakNew-Figurine.otf
texmf-dist/fonts/opentype/public/skaknew/SkakNew-FigurineBold.otf
texmf-dist/fonts/tfm/public/skaknew/AlphaDia.tfm
texmf-dist/fonts/tfm/public/skaknew/SkakNew-Diagram.tfm
texmf-dist/fonts/tfm/public/skaknew/SkakNew-DiagramT.tfm
texmf-dist/fonts/tfm/public/skaknew/SkakNew-Figurine.tfm
texmf-dist/fonts/tfm/public/skaknew/SkakNew-FigurineBold.tfm
texmf-dist/fonts/type1/public/skaknew/AlphaDia.inf
texmf-dist/fonts/type1/public/skaknew/AlphaDia.pfb
texmf-dist/fonts/type1/public/skaknew/AlphaDia.pfm
texmf-dist/fonts/type1/public/skaknew/SkakNew-Diagram.inf
texmf-dist/fonts/type1/public/skaknew/SkakNew-Diagram.pfb
texmf-dist/fonts/type1/public/skaknew/SkakNew-Diagram.pfm
texmf-dist/fonts/type1/public/skaknew/SkakNew-DiagramT.inf
texmf-dist/fonts/type1/public/skaknew/SkakNew-DiagramT.pfb
texmf-dist/fonts/type1/public/skaknew/SkakNew-DiagramT.pfm
texmf-dist/fonts/type1/public/skaknew/SkakNew-Figurine.inf
texmf-dist/fonts/type1/public/skaknew/SkakNew-Figurine.pfb
texmf-dist/fonts/type1/public/skaknew/SkakNew-Figurine.pfm
texmf-dist/fonts/type1/public/skaknew/SkakNew-FigurineBold.inf
texmf-dist/fonts/type1/public/skaknew/SkakNew-FigurineBold.pfb
texmf-dist/fonts/type1/public/skaknew/SkakNew-FigurineBold.pfm
texmf-dist/doc/latex/sudoku/CHANGES
texmf-dist/doc/latex/sudoku/README
texmf-dist/doc/latex/sudoku/sudoku.pdf
texmf-dist/source/latex/sudoku/sudoku.dtx
texmf-dist/source/latex/sudoku/sudoku.ins
texmf-dist/tex/latex/sudoku/sudoku.sty
texmf-dist/doc/latex/sudokubundle/README
texmf-dist/doc/latex/sudokubundle/somesudoku.tex
texmf-dist/doc/latex/sudokubundle/sudokubundle.pdf
texmf-dist/source/latex/sudokubundle/sudokubundle.dtx
texmf-dist/source/latex/sudokubundle/sudokubundle.ins
texmf-dist/tex/latex/sudokubundle/createsudoku.sty
texmf-dist/tex/latex/sudokubundle/printsudoku.sty
texmf-dist/tex/latex/sudokubundle/solvesudoku.sty
texmf-dist/doc/fonts/xq/README
texmf-dist/doc/fonts/xq/xqexample.pdf
texmf-dist/doc/fonts/xq/xqexample.tex
texmf-dist/fonts/source/public/xq/xqaddsignsbase.mf
texmf-dist/fonts/source/public/xq/xqaddsignslarge.mf
texmf-dist/fonts/source/public/xq/xqaddsignsnormal.mf
texmf-dist/fonts/source/public/xq/xqbase.mf
texmf-dist/fonts/source/public/xq/xqhints.mf
texmf-dist/fonts/source/public/xq/xqlarge.mf
texmf-dist/fonts/source/public/xq/xqnormal.mf
texmf-dist/fonts/source/public/xq/xqwestbase.mf
texmf-dist/fonts/source/public/xq/xqwestlarge.mf
texmf-dist/fonts/source/public/xq/xqwestnormal.mf
texmf-dist/fonts/tfm/public/xq/xqlarge.tfm
texmf-dist/fonts/tfm/public/xq/xqnormal.tfm
texmf-dist/tex/latex/xq/xq.sty
texmf-dist/doc/latex/xskak/README
texmf-dist/doc/latex/xskak/README.TEXLIVE
texmf-dist/source/latex/xskak/xskak-src.dtx
texmf-dist/source/latex/xskak/xskak.ins
texmf-dist/tex/latex/xskak/xskak-keys.sty
texmf-dist/tex/latex/xskak/xskak-nagdef.sty
texmf-dist/tex/latex/xskak/xskak.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 "^#! Map SkakNew.map" && \
    echo -n "    " && \
    echo -n "Running updmap: enable SkakNew.map ... " && \
    %{exec_updmap} --nomkmap --enable Map SkakNew.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 "^Map SkakNew.map" && \
        echo -n "    " && \
        echo -n "Running updmap: disable SkakNew.map ... " && \
        %{exec_updmap} --nomkmap --disable SkakNew.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-games
- improved %%post

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