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

%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: Extra generic packages
Summary(ja): TeX Live: Extra generic packages
Name: texlive-collection-genericextra
Version: 2009
Release: 3%{?_dist_release}
License: Public Domain, Freely redistributable without restriction, No Info, LPPL, GPL+, Knuth
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 Extra generic packages: 
Extra packages that work with multiple formats, typically both
TeX and LaTeX.

This package contains the following CTAN packages: 
abbr: Simple macros supporting abreviations for Plain and LaTeX.
abstyles: Adaptable BibTeX styles.
barr: Diagram macros by Michael Barr.
borceux: Diagram macros by Francois Borceux.
c-pascal: Typeset Python, C and Pascal programs.
colorsep: Color separation.
dinat: Bibliography style for German texts.
dirtree: Display trees in the style of windows explorer.
eijkhout: Victor Eijkhout's packages.
encxvlna: Insert nonbreakable spaces, using encTeX.
fenixpar: One-shot changes to token registers such as everypar.
fltpoint: Simple floating point arithmetic.
insbox: A TeX macro for inserting pictures/boxes into paragraphs.
mathdots: Commands to produce dots in math that respect font size.
metatex: Incorporate MetaFont pictures in TeX source.
mftoeps: 
midnight: A set of useful macro tools.
multi: 
ofs: Macros for managing large font collections.
pdf-trans: A set of macros for various transformations of TeX boxes.
shade: Shade pieces of text.
tabto-generic: "Tab" to a measured position in the line.
vrb: Verbatim macros in plain TeX.
vtex: 
xlop: Calculates and displays arithmetic operations.

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

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

このパッケージは以下のようなパッケージ集です。
Extra generic packages: 
Extra packages that work with multiple formats, typically both
TeX and LaTeX.

このパッケージは以下の CTAN パッケージを含んでいます： 
abbr: Simple macros supporting abreviations for Plain and LaTeX.
abstyles: Adaptable BibTeX styles.
barr: Diagram macros by Michael Barr.
borceux: Diagram macros by Francois Borceux.
c-pascal: Typeset Python, C and Pascal programs.
colorsep: Color separation.
dinat: Bibliography style for German texts.
dirtree: Display trees in the style of windows explorer.
eijkhout: Victor Eijkhout's packages.
encxvlna: Insert nonbreakable spaces, using encTeX.
fenixpar: One-shot changes to token registers such as everypar.
fltpoint: Simple floating point arithmetic.
insbox: A TeX macro for inserting pictures/boxes into paragraphs.
mathdots: Commands to produce dots in math that respect font size.
metatex: Incorporate MetaFont pictures in TeX source.
mftoeps: 
midnight: A set of useful macro tools.
multi: 
ofs: Macros for managing large font collections.
pdf-trans: A set of macros for various transformations of TeX boxes.
shade: Shade pieces of text.
tabto-generic: "Tab" to a measured position in the line.
vrb: Verbatim macros in plain TeX.
vtex: 
xlop: Calculates and displays arithmetic operations.

%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/generic/abbr/README
texmf-dist/tex/generic/abbr/abbr.tex
texmf-dist/doc/bibtex/abstyles/README
texmf-dist/doc/bibtex/abstyles/a4c.sty
texmf-dist/doc/bibtex/abstyles/a4c.tex
texmf-dist/doc/bibtex/abstyles/abstdok.pdf
texmf-dist/doc/bibtex/abstyles/abstdok.tex
texmf-dist/doc/bibtex/abstyles/apreambl.doc
texmf-dist/doc/bibtex/abstyles/btxabst.doc
texmf-dist/doc/bibtex/abstyles/docmac.doc
texmf-dist/doc/bibtex/abstyles/docmac.tex
texmf-dist/bibtex/bib/abstyles/acompat.bib
texmf-dist/bibtex/bib/abstyles/jourabbr.bib
texmf-dist/bibtex/bib/abstyles/jourfull.bib
texmf-dist/bibtex/bst/abstyles/aabbrv.bst
texmf-dist/bibtex/bst/abstyles/aalpha.bst
texmf-dist/bibtex/bst/abstyles/anotit.bst
texmf-dist/bibtex/bst/abstyles/aplain.bst
texmf-dist/bibtex/bst/abstyles/aunsnot.bst
texmf-dist/bibtex/bst/abstyles/aunsrt.bst
texmf-dist/tex/generic/abstyles/apreambl.tex
texmf-dist/doc/generic/barr/diaxydoc.pdf
texmf-dist/doc/generic/barr/diaxydoc.tex
texmf-dist/tex/generic/barr/diagxy.tex
texmf-dist/doc/generic/borceux/Diagram_Mode_d_Emploi
texmf-dist/doc/generic/borceux/Diagram_Read_Me
texmf-dist/source/generic/borceux/compatibility/OldDiagram
texmf-dist/source/generic/borceux/compatibility/OldMaxiDiagram
texmf-dist/source/generic/borceux/compatibility/OldMicroDiagram
texmf-dist/source/generic/borceux/compatibility/OldMiniDiagram
texmf-dist/source/generic/borceux/compatibility/OldMultipleArrows
texmf-dist/tex/generic/borceux/Diagram
texmf-dist/tex/generic/borceux/MaxiDiagram
texmf-dist/tex/generic/borceux/MicroDiagram
texmf-dist/tex/generic/borceux/MiniDiagram
texmf-dist/tex/generic/borceux/MultipleArrows
texmf-dist/doc/generic/c-pascal/demo1.tex
texmf-dist/doc/generic/c-pascal/demo2.tex
texmf-dist/doc/generic/c-pascal/prog/guess.pas
texmf-dist/doc/generic/c-pascal/prog/sun.c
texmf-dist/doc/generic/c-pascal/readme.eng
texmf-dist/doc/generic/c-pascal/readme.pol
texmf-dist/tex/generic/c-pascal/cap.tex
texmf-dist/tex/generic/c-pascal/cap_c.tex
texmf-dist/tex/generic/c-pascal/cap_comm.tex
texmf-dist/tex/generic/c-pascal/cap_pas.tex
texmf-dist/dvips/colorsep/colorsep.pro
texmf-dist/doc/bibtex/dinat/dinat-index.html
texmf-dist/doc/bibtex/dinat/history.html
texmf-dist/bibtex/bst/dinat/dinat.bst
texmf-dist/doc/generic/dirtree/README
texmf-dist/doc/generic/dirtree/dirtree.pdf
texmf-dist/source/generic/dirtree/dirtree.dtx
texmf-dist/source/generic/dirtree/dirtree.ins
texmf-dist/tex/generic/dirtree/dirtree.sty
texmf-dist/tex/generic/dirtree/dirtree.tex
texmf-dist/tex/generic/eijkhout/CD_labeler.tex
texmf-dist/tex/generic/eijkhout/CD_labeler_test.tex
texmf-dist/tex/generic/eijkhout/DB_process.tex
texmf-dist/tex/generic/eijkhout/repeat.tex
texmf-dist/doc/generic/encxvlna/License.txt
texmf-dist/doc/generic/encxvlna/README
texmf-dist/doc/generic/encxvlna/encxvlna.pdf
texmf-dist/doc/generic/encxvlna/encxvlna.tex
texmf-dist/doc/generic/encxvlna/vlna-inc.tex
texmf-dist/tex/latex/encxvlna/encxvlna.sty
texmf-dist/tex/plain/encxvlna/encxvlna.tex
texmf-dist/doc/generic/fenixpar/README
texmf-dist/tex/generic/fenixpar/fenixpar.sty
texmf-dist/tex/generic/fenixpar/fenixtok.sty
texmf-dist/doc/generic/fltpoint/README
texmf-dist/doc/generic/fltpoint/fltpoint.pdf
texmf-dist/source/generic/fltpoint/fltpoint.dtx
texmf-dist/source/generic/fltpoint/fltpoint.ins
texmf-dist/tex/generic/fltpoint/deccomma.sty
texmf-dist/tex/generic/fltpoint/fltpoint.sty
texmf-dist/tex/generic/fltpoint/fltpoint.tex
texmf-dist/doc/generic/insbox/demo.dvi
texmf-dist/doc/generic/insbox/demo.tex
texmf-dist/doc/generic/insbox/pic1.eps
texmf-dist/doc/generic/insbox/pic2.eps
texmf-dist/tex/generic/insbox/insbox.tex
texmf-dist/doc/generic/mathdots/README
texmf-dist/doc/generic/mathdots/mathdots.pdf
texmf-dist/doc/generic/mathdots/mdtest.tex
texmf-dist/source/generic/mathdots/mathdots.dtx
texmf-dist/source/generic/mathdots/mathdots.ins
texmf-dist/tex/generic/mathdots/mathdots.sty
texmf-dist/tex/generic/mathdots/mathdots.tex
texmf-dist/doc/plain/metatex/README
texmf-dist/doc/plain/metatex/gpl.txt
texmf-dist/doc/plain/metatex/mtmp2pdf.tex
texmf-dist/doc/plain/metatex/mtpaper.pdf
texmf-dist/doc/plain/metatex/mtpaper/delay.mf
texmf-dist/doc/plain/metatex/mtpaper/diagram.tex
texmf-dist/doc/plain/metatex/mtpaper/frame.tex
texmf-dist/doc/plain/metatex/mtpaper/mtpaper.tex
texmf-dist/doc/plain/metatex/mtpaper/shadow.tex
texmf-dist/tex/plain/metatex/metatex.tex
texmf-dist/source/metafont/mftoeps/0mftoeps.doc
texmf-dist/source/metafont/mftoeps/m2esamp/0m2esamp.doc
texmf-dist/source/metafont/mftoeps/m2esamp/clipcir.mf
texmf-dist/source/metafont/mftoeps/m2esamp/clipsqu.mf
texmf-dist/source/metafont/mftoeps/m2esamp/holeclip.mf
texmf-dist/source/metafont/mftoeps/m2esamp/holeclip.tex
texmf-dist/source/metafont/mftoeps/m2esamp/holefill.mf
texmf-dist/source/metafont/mftoeps/m2esamp/polygons.mf
texmf-dist/source/metafont/mftoeps/m2esamp/rectan.mf
texmf-dist/source/metafont/mftoeps/m2esamp/rectan_.bat
texmf-dist/source/metafont/mftoeps/m2esamp/sample1a.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample1b.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample2a.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample2b.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample2c.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample2d.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample2e.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample3.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample4.mf
texmf-dist/source/metafont/mftoeps/m2esamp/sample5.mf
texmf-dist/source/metafont/mftoeps/m2esamp/stereo.mf
texmf-dist/metafont/mftoeps/mftoeps.mf
texmf-dist/doc/generic/midnight/README
texmf-dist/doc/generic/midnight/border.doc
texmf-dist/doc/generic/midnight/dolines.doc
texmf-dist/doc/generic/midnight/gloss.doc
texmf-dist/doc/generic/midnight/labels.doc
texmf-dist/doc/generic/midnight/loop.doc
texmf-dist/doc/generic/midnight/midnight.pdf
texmf-dist/doc/generic/midnight/quire.doc
texmf-dist/doc/generic/midnight/styledef.doc
texmf-dist/tex/generic/midnight/border.tex
texmf-dist/tex/generic/midnight/dolines.tex
texmf-dist/tex/generic/midnight/gloss.tex
texmf-dist/tex/generic/midnight/labels.tex
texmf-dist/tex/generic/midnight/loop.tex
texmf-dist/tex/generic/midnight/quire.tex
texmf-dist/tex/generic/midnight/styledef.tex
texmf-dist/dvips/multi/2up.pro
texmf-dist/dvips/multi/4up.pro
texmf-dist/dvips/multi/multi.pro
texmf-dist/doc/generic/ofs/changes.txt
texmf-dist/doc/generic/ofs/eurotex2003-ofs.pdf
texmf-dist/doc/generic/ofs/eurotex2003-ofs.tex
texmf-dist/doc/generic/ofs/ofs-slt.pdf
texmf-dist/doc/generic/ofs/ofsdoc-e.pdf
texmf-dist/doc/generic/ofs/ofsdoc-e.tex
texmf-dist/doc/generic/ofs/ofsdoc.pdf
texmf-dist/doc/generic/ofs/ofsdoc.tex
texmf-dist/doc/generic/ofs/ofsmtdef.tex
texmf-dist/doc/generic/ofs/ofstest.tex
texmf-dist/doc/generic/ofs/readme.ofs
texmf-dist/tex/generic/ofs/a117.tex
texmf-dist/tex/generic/ofs/a35.sty
texmf-dist/tex/generic/ofs/a35.tex
texmf-dist/tex/generic/ofs/allfonts.sty
texmf-dist/tex/generic/ofs/allfonts.tex
texmf-dist/tex/generic/ofs/amsfn.tex
texmf-dist/tex/generic/ofs/mtfn.tex
texmf-dist/tex/generic/ofs/ofs-6a.tex
texmf-dist/tex/generic/ofs/ofs-6c.tex
texmf-dist/tex/generic/ofs/ofs-6k.tex
texmf-dist/tex/generic/ofs/ofs-6s.tex
texmf-dist/tex/generic/ofs/ofs-6t.tex
texmf-dist/tex/generic/ofs/ofs-6x.tex
texmf-dist/tex/generic/ofs/ofs-6y.tex
texmf-dist/tex/generic/ofs/ofs-8c.tex
texmf-dist/tex/generic/ofs/ofs-8t.tex
texmf-dist/tex/generic/ofs/ofs-8x.tex
texmf-dist/tex/generic/ofs/ofs-8z.tex
texmf-dist/tex/generic/ofs/ofs-ams.tex
texmf-dist/tex/generic/ofs/ofs-cm.tex
texmf-dist/tex/generic/ofs/ofs-mt.tex
texmf-dist/tex/generic/ofs/ofs-ps.tex
texmf-dist/tex/generic/ofs/ofs-px.tex
texmf-dist/tex/generic/ofs/ofs-slt.tex
texmf-dist/tex/generic/ofs/ofs-tx.tex
texmf-dist/tex/generic/ofs/ofs.sty
texmf-dist/tex/generic/ofs/ofs.tex
texmf-dist/tex/generic/ofs/ofsdef.tex
texmf-dist/tex/generic/ofs/pantyk.tex
texmf-dist/tex/generic/ofs/txfn.tex
texmf-dist/doc/generic/pdf-trans/example.pdf
texmf-dist/doc/generic/pdf-trans/example.tex
texmf-dist/tex/generic/pdf-trans/pdf-trans.tex
texmf-dist/doc/generic/shade/README
texmf-dist/doc/generic/shade/description.pdf
texmf-dist/doc/generic/shade/description.tex
texmf-dist/fonts/source/public/shade/shade.mf
texmf-dist/tex/generic/shade/shade.tex
texmf-dist/tex/generic/tabto-generic/tabto.tex
texmf-dist/doc/generic/vrb/readme
texmf-dist/tex/generic/vrb/vrb.tex
texmf-dist/fonts/map/vtex/bera/bera.ali
texmf-dist/fonts/map/vtex/dictsym/dictsym.ali
texmf-dist/fonts/map/vtex/skaknew/SkakNew.ali
texmf-dist/vtex/config/lucidabr-k.ali
texmf-dist/vtex/config/lucidabr.ali
texmf-dist/vtex/config/lumath-k.ali
texmf-dist/vtex/config/lumath.ali
texmf-dist/vtex/config/uaq.ali
texmf-dist/vtex/config/ugq.ali
texmf-dist/doc/generic/xlop/LISEZ.MOI
texmf-dist/doc/generic/xlop/README
texmf-dist/doc/generic/xlop/XLOP03
texmf-dist/doc/generic/xlop/fr-user.pdf
texmf-dist/doc/generic/xlop/fr-user.tex
texmf-dist/doc/generic/xlop/history.txt
texmf-dist/source/generic/xlop/manual.sty
texmf-dist/tex/generic/xlop/xlop.sty
texmf-dist/tex/generic/xlop/xlop.tex
)

%__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}

exit 0


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

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-genericextra
- improved %%post

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