## -*- coding: utf-8-unix -*-
## NOTE: This spec file is generated by tlpdb2rpmspec 2016-4: 
## tlpdb2rpmspec collection-science

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

Summary: TeX Live: Natural and computer sciences
Summary(ja): TeX Live: Natural and computer sciences
Name: texlive-collection-science
Version: 2016
Release: 4%{?_dist_release}
License: LPPL, LPPL 1.3, LGPLv2+, GPL+, Public Domain, LPPL 1.2, Freely redistributable without restriction
Group: Applications/Publishing
URL:http://www.tug.org/texlive/

Source0: SIstyle.doc.tar.xz
Source1: SIstyle.source.tar.xz
Source2: SIstyle.tar.xz
Source3: SIunits.doc.tar.xz
Source4: SIunits.source.tar.xz
Source5: SIunits.tar.xz
Source6: alg.doc.tar.xz
Source7: alg.source.tar.xz
Source8: alg.tar.xz
Source9: algorithm2e.doc.tar.xz
Source10: algorithm2e.tar.xz
Source11: algorithmicx.doc.tar.xz
Source12: algorithmicx.tar.xz
Source13: algorithms.doc.tar.xz
Source14: algorithms.source.tar.xz
Source15: algorithms.tar.xz
Source16: biocon.doc.tar.xz
Source17: biocon.tar.xz
Source18: bitpattern.doc.tar.xz
Source19: bitpattern.source.tar.xz
Source20: bitpattern.tar.xz
Source21: bohr.doc.tar.xz
Source22: bohr.tar.xz
Source23: bpchem.doc.tar.xz
Source24: bpchem.source.tar.xz
Source25: bpchem.tar.xz
Source26: bytefield.doc.tar.xz
Source27: bytefield.source.tar.xz
Source28: bytefield.tar.xz
Source29: chemarrow.doc.tar.xz
Source30: chemarrow.source.tar.xz
Source31: chemarrow.tar.xz
Source32: chemcompounds.doc.tar.xz
Source33: chemcompounds.source.tar.xz
Source34: chemcompounds.tar.xz
Source35: chemcono.doc.tar.xz
Source36: chemcono.tar.xz
Source37: chemexec.doc.tar.xz
Source38: chemexec.tar.xz
Source39: chemformula.doc.tar.xz
Source40: chemformula.tar.xz
Source41: chemgreek.doc.tar.xz
Source42: chemgreek.tar.xz
Source43: chemmacros.doc.tar.xz
Source44: chemmacros.tar.xz
Source45: chemnum.doc.tar.xz
Source46: chemnum.tar.xz
Source47: chemschemex.doc.tar.xz
Source48: chemschemex.source.tar.xz
Source49: chemschemex.tar.xz
Source50: chemstyle.doc.tar.xz
Source51: chemstyle.source.tar.xz
Source52: chemstyle.tar.xz
Source53: clrscode.doc.tar.xz
Source54: clrscode.tar.xz
Source55: clrscode3e.doc.tar.xz
Source56: clrscode3e.tar.xz
Source57: complexity.doc.tar.xz
Source58: complexity.tar.xz
Source59: computational-complexity.doc.tar.xz
Source60: computational-complexity.source.tar.xz
Source61: computational-complexity.tar.xz
Source62: cryptocode.doc.tar.xz
Source63: cryptocode.tar.xz
Source64: digiconfigs.doc.tar.xz
Source65: digiconfigs.tar.xz
Source66: drawstack.doc.tar.xz
Source67: drawstack.tar.xz
Source68: dyntree.doc.tar.xz
Source69: dyntree.source.tar.xz
Source70: dyntree.tar.xz
Source71: eltex.doc.tar.xz
Source72: eltex.tar.xz
Source73: endiagram.doc.tar.xz
Source74: endiagram.tar.xz
Source75: engtlc.doc.tar.xz
Source76: engtlc.tar.xz
Source77: fouridx.doc.tar.xz
Source78: fouridx.source.tar.xz
Source79: fouridx.tar.xz
Source80: functan.doc.tar.xz
Source81: functan.source.tar.xz
Source82: functan.tar.xz
Source83: galois.doc.tar.xz
Source84: galois.source.tar.xz
Source85: galois.tar.xz
Source86: gastex.doc.tar.xz
Source87: gastex.tar.xz
Source88: gene-logic.doc.tar.xz
Source89: gene-logic.tar.xz
Source90: ghsystem.doc.tar.xz
Source91: ghsystem.tar.xz
Source92: gu.doc.tar.xz
Source93: gu.tar.xz
Source94: hep.doc.tar.xz
Source95: hep.tar.xz
Source96: hepnames.doc.tar.xz
Source97: hepnames.tar.xz
Source98: hepparticles.doc.tar.xz
Source99: hepparticles.tar.xz
Source100: hepthesis.doc.tar.xz
Source101: hepthesis.tar.xz
Source102: hepunits.doc.tar.xz
Source103: hepunits.tar.xz
Source104: karnaugh.doc.tar.xz
Source105: karnaugh.tar.xz
Source106: karnaughmap.doc.tar.xz
Source107: karnaughmap.source.tar.xz
Source108: karnaughmap.tar.xz
Source109: lstbayes.doc.tar.xz
Source110: lstbayes.source.tar.xz
Source111: lstbayes.tar.xz
Source112: matlab-prettifier.doc.tar.xz
Source113: matlab-prettifier.source.tar.xz
Source114: matlab-prettifier.tar.xz
Source115: mhchem.doc.tar.xz
Source116: mhchem.tar.xz
Source117: miller.doc.tar.xz
Source118: miller.source.tar.xz
Source119: miller.tar.xz
Source120: mychemistry.doc.tar.xz
Source121: mychemistry.tar.xz
Source122: nuc.doc.tar.xz
Source123: nuc.tar.xz
Source124: nucleardata.doc.tar.xz
Source125: nucleardata.source.tar.xz
Source126: nucleardata.tar.xz
Source127: objectz.doc.tar.xz
Source128: objectz.source.tar.xz
Source129: objectz.tar.xz
Source130: physics.doc.tar.xz
Source131: physics.tar.xz
Source132: pseudocode.doc.tar.xz
Source133: pseudocode.tar.xz
Source134: pygmentex.doc.tar.xz
Source135: pygmentex.tar.xz
Source136: sasnrdisplay.doc.tar.xz
Source137: sasnrdisplay.tar.xz
Source138: sciposter.doc.tar.xz
Source139: sciposter.tar.xz
Source140: sclang-prettifier.doc.tar.xz
Source141: sclang-prettifier.source.tar.xz
Source142: sclang-prettifier.tar.xz
Source143: sfg.doc.tar.xz
Source144: sfg.tar.xz
Source145: simpler-wick.doc.tar.xz
Source146: simpler-wick.tar.xz
Source147: simplewick.doc.tar.xz
Source148: simplewick.source.tar.xz
Source149: simplewick.tar.xz
Source150: siunitx.doc.tar.xz
Source151: siunitx.source.tar.xz
Source152: siunitx.tar.xz
Source153: steinmetz.doc.tar.xz
Source154: steinmetz.source.tar.xz
Source155: steinmetz.tar.xz
Source156: struktex.doc.tar.xz
Source157: struktex.source.tar.xz
Source158: struktex.tar.xz
Source159: substances.doc.tar.xz
Source160: substances.tar.xz
Source161: t-angles.doc.tar.xz
Source162: t-angles.tar.xz
Source163: textopo.doc.tar.xz
Source164: textopo.source.tar.xz
Source165: textopo.tar.xz
Source166: ulqda.doc.tar.xz
Source167: ulqda.source.tar.xz
Source168: ulqda.tar.xz
Source169: unitsdef.doc.tar.xz
Source170: unitsdef.source.tar.xz
Source171: unitsdef.tar.xz
Source172: xymtex.doc.tar.xz
Source173: xymtex.source.tar.xz
Source174: xymtex.tar.xz
Source175: youngtab.doc.tar.xz
Source176: youngtab.source.tar.xz
Source177: youngtab.tar.xz

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

Requires(post):		texlive = %{version}
Requires(postun):	texlive = %{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 Natural and computer sciences: 


This package contains the following CTAN packages: 
SIstyle: Package to typeset SI units, numbers and angles
SIunits: International System of Units
alg: LaTeX environments for typesetting algorithms
algorithm2e: Floating algorithm environment with algorithmic keywords
algorithmicx: The algorithmic style you always wanted
algorithms: A suite of tools for typesetting algorithms in pseudo-code
biocon: Typesetting biological species names
bitpattern: Typeset bit pattern diagrams
bohr: Simple atom representation according to the Bohr model
bpchem: Typeset chemical names, formulae, etc
bytefield: Create illustrations for network protocol specifications
chemarrow: Arrows for use in chemistry
chemcompounds: Simple consecutive numbering of chemical compounds
chemcono: Support for compound numbers in chemistry documents
chemexec: Creating (chemical) exercise sheets
chemformula: Command for typesetting chemical formulas and reactions
chemgreek: Upright Greek letters in chemistry
chemmacros: A collection of macros to support typesetting chemistry documents
chemnum: A method of numbering chemical compounds
chemschemex: Typeset and cross-reference chemical schemes based on TikZ code
chemstyle: Writing chemistry with style
clrscode: Typesets pseudocode as in Introduction to Algorithms
clrscode3e: Typesets pseudocode as in Introduction to Algorithms
complexity: Computational complexity class names
computational-complexity: Class for the journal Computational Complexity
cryptocode: Typesetting pseudocode, protocols, game-based proofs and black-box reductions in cryptography
digiconfigs: Writing "configurations"
drawstack: Draw execution stacks
dyntree: Construct Dynkin tree diagrams
eltex: Simple circuit diagrams in LaTeX picture mode
endiagram: Easy creation of potential energy curve diagrams
engtlc: Support for users in Telecommunications Engineering
fouridx: Left sub- and superscripts in maths mode
functan: Macros for functional analysis and PDE theory
galois: Typeset Galois connections
gastex: Graphs and Automata Simplified in TeX
gene-logic: Typeset logic formulae, etc
ghsystem: Globally harmonised system of chemical (etc) naming
gu: Typeset crystallographic group-subgroup-schemes
hep: A "convenience wrapper" for High Energy Physics packages
hepnames: Pre-defined high energy particle names
hepparticles: Macros for typesetting high energy physics particle names
hepthesis: A class for academic reports, especially PhD theses
hepunits: A set of units useful in high energy physics applications
karnaugh: Typeset Karnaugh-Veitch-maps
karnaughmap: Typeset Karnaugh maps
lstbayes: Listings language driver for Bayesian modeling languages
matlab-prettifier: Pretty-print Matlab source code
mhchem: Typeset chemical formulae/equations and Risk and Safety phrases
miller: Typeset miller indices
mychemistry: Create reaction schemes with LaTeX and ChemFig
nuc: Notation for nuclear isotopes
nucleardata: Provides data about atomic nuclides for documents
objectz: Macros for typesetting Object Z
physics: Macros supporting the Mathematics of Physics
pseudocode: LaTeX environment for specifying algorithms in a natural way
pygmentex: Use Pygments to format code listings in documents
sasnrdisplay: Typeset SAS or R code or output
sciposter: Make posters of ISO A3 size and larger
sclang-prettifier: Prettyprinting SuperCollider source code
sfg: Draw signal flow graphs
simpler-wick: Simpler Wick contractions
simplewick: Simple Wick contractions
siunitx: A comprehensive (SI) units package
steinmetz: Print Steinmetz notation
struktex: Draw Nassi-Schneidermann charts
substances: A database of chemicals
t-angles: Draw tangles, trees, Hopf algebra operations and other pictures
textopo: Annotated membrane protein topology plots
ulqda: Support of Qualitative Data Analysis
unitsdef: Typesetting units in LaTeX
xymtex: Typesetting chemical structures
youngtab: Typeset Young-Tableaux

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

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

このパッケージは以下のようなパッケージ集です。
Natural and computer sciences: 


このパッケージは以下の CTAN パッケージを含んでいます： 
SIstyle: Package to typeset SI units, numbers and angles
SIunits: International System of Units
alg: LaTeX environments for typesetting algorithms
algorithm2e: Floating algorithm environment with algorithmic keywords
algorithmicx: The algorithmic style you always wanted
algorithms: A suite of tools for typesetting algorithms in pseudo-code
biocon: Typesetting biological species names
bitpattern: Typeset bit pattern diagrams
bohr: Simple atom representation according to the Bohr model
bpchem: Typeset chemical names, formulae, etc
bytefield: Create illustrations for network protocol specifications
chemarrow: Arrows for use in chemistry
chemcompounds: Simple consecutive numbering of chemical compounds
chemcono: Support for compound numbers in chemistry documents
chemexec: Creating (chemical) exercise sheets
chemformula: Command for typesetting chemical formulas and reactions
chemgreek: Upright Greek letters in chemistry
chemmacros: A collection of macros to support typesetting chemistry documents
chemnum: A method of numbering chemical compounds
chemschemex: Typeset and cross-reference chemical schemes based on TikZ code
chemstyle: Writing chemistry with style
clrscode: Typesets pseudocode as in Introduction to Algorithms
clrscode3e: Typesets pseudocode as in Introduction to Algorithms
complexity: Computational complexity class names
computational-complexity: Class for the journal Computational Complexity
cryptocode: Typesetting pseudocode, protocols, game-based proofs and black-box reductions in cryptography
digiconfigs: Writing "configurations"
drawstack: Draw execution stacks
dyntree: Construct Dynkin tree diagrams
eltex: Simple circuit diagrams in LaTeX picture mode
endiagram: Easy creation of potential energy curve diagrams
engtlc: Support for users in Telecommunications Engineering
fouridx: Left sub- and superscripts in maths mode
functan: Macros for functional analysis and PDE theory
galois: Typeset Galois connections
gastex: Graphs and Automata Simplified in TeX
gene-logic: Typeset logic formulae, etc
ghsystem: Globally harmonised system of chemical (etc) naming
gu: Typeset crystallographic group-subgroup-schemes
hep: A "convenience wrapper" for High Energy Physics packages
hepnames: Pre-defined high energy particle names
hepparticles: Macros for typesetting high energy physics particle names
hepthesis: A class for academic reports, especially PhD theses
hepunits: A set of units useful in high energy physics applications
karnaugh: Typeset Karnaugh-Veitch-maps
karnaughmap: Typeset Karnaugh maps
lstbayes: Listings language driver for Bayesian modeling languages
matlab-prettifier: Pretty-print Matlab source code
mhchem: Typeset chemical formulae/equations and Risk and Safety phrases
miller: Typeset miller indices
mychemistry: Create reaction schemes with LaTeX and ChemFig
nuc: Notation for nuclear isotopes
nucleardata: Provides data about atomic nuclides for documents
objectz: Macros for typesetting Object Z
physics: Macros supporting the Mathematics of Physics
pseudocode: LaTeX environment for specifying algorithms in a natural way
pygmentex: Use Pygments to format code listings in documents
sasnrdisplay: Typeset SAS or R code or output
sciposter: Make posters of ISO A3 size and larger
sclang-prettifier: Prettyprinting SuperCollider source code
sfg: Draw signal flow graphs
simpler-wick: Simpler Wick contractions
simplewick: Simple Wick contractions
siunitx: A comprehensive (SI) units package
steinmetz: Print Steinmetz notation
struktex: Draw Nassi-Schneidermann charts
substances: A database of chemicals
t-angles: Draw tangles, trees, Hopf algebra operations and other pictures
textopo: Annotated membrane protein topology plots
ulqda: Support of Qualitative Data Analysis
unitsdef: Typesetting units in LaTeX
xymtex: Typesetting chemical structures
youngtab: Typeset Young-Tableaux

%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
%setup -c -n %{name}-%{version}
%__tar -xvf %{SOURCE1}
%__tar -xvf %{SOURCE2}
%__tar -xvf %{SOURCE3}
%__tar -xvf %{SOURCE4}
%__tar -xvf %{SOURCE5}
%__tar -xvf %{SOURCE6}
%__tar -xvf %{SOURCE7}
%__tar -xvf %{SOURCE8}
%__tar -xvf %{SOURCE9}
%__tar -xvf %{SOURCE10}
%__tar -xvf %{SOURCE11}
%__tar -xvf %{SOURCE12}
%__tar -xvf %{SOURCE13}
%__tar -xvf %{SOURCE14}
%__tar -xvf %{SOURCE15}
%__tar -xvf %{SOURCE16}
%__tar -xvf %{SOURCE17}
%__tar -xvf %{SOURCE18}
%__tar -xvf %{SOURCE19}
%__tar -xvf %{SOURCE20}
%__tar -xvf %{SOURCE21}
%__tar -xvf %{SOURCE22}
%__tar -xvf %{SOURCE23}
%__tar -xvf %{SOURCE24}
%__tar -xvf %{SOURCE25}
%__tar -xvf %{SOURCE26}
%__tar -xvf %{SOURCE27}
%__tar -xvf %{SOURCE28}
%__tar -xvf %{SOURCE29}
%__tar -xvf %{SOURCE30}
%__tar -xvf %{SOURCE31}
%__tar -xvf %{SOURCE32}
%__tar -xvf %{SOURCE33}
%__tar -xvf %{SOURCE34}
%__tar -xvf %{SOURCE35}
%__tar -xvf %{SOURCE36}
%__tar -xvf %{SOURCE37}
%__tar -xvf %{SOURCE38}
%__tar -xvf %{SOURCE39}
%__tar -xvf %{SOURCE40}
%__tar -xvf %{SOURCE41}
%__tar -xvf %{SOURCE42}
%__tar -xvf %{SOURCE43}
%__tar -xvf %{SOURCE44}
%__tar -xvf %{SOURCE45}
%__tar -xvf %{SOURCE46}
%__tar -xvf %{SOURCE47}
%__tar -xvf %{SOURCE48}
%__tar -xvf %{SOURCE49}
%__tar -xvf %{SOURCE50}
%__tar -xvf %{SOURCE51}
%__tar -xvf %{SOURCE52}
%__tar -xvf %{SOURCE53}
%__tar -xvf %{SOURCE54}
%__tar -xvf %{SOURCE55}
%__tar -xvf %{SOURCE56}
%__tar -xvf %{SOURCE57}
%__tar -xvf %{SOURCE58}
%__tar -xvf %{SOURCE59}
%__tar -xvf %{SOURCE60}
%__tar -xvf %{SOURCE61}
%__tar -xvf %{SOURCE62}
%__tar -xvf %{SOURCE63}
%__tar -xvf %{SOURCE64}
%__tar -xvf %{SOURCE65}
%__tar -xvf %{SOURCE66}
%__tar -xvf %{SOURCE67}
%__tar -xvf %{SOURCE68}
%__tar -xvf %{SOURCE69}
%__tar -xvf %{SOURCE70}
%__tar -xvf %{SOURCE71}
%__tar -xvf %{SOURCE72}
%__tar -xvf %{SOURCE73}
%__tar -xvf %{SOURCE74}
%__tar -xvf %{SOURCE75}
%__tar -xvf %{SOURCE76}
%__tar -xvf %{SOURCE77}
%__tar -xvf %{SOURCE78}
%__tar -xvf %{SOURCE79}
%__tar -xvf %{SOURCE80}
%__tar -xvf %{SOURCE81}
%__tar -xvf %{SOURCE82}
%__tar -xvf %{SOURCE83}
%__tar -xvf %{SOURCE84}
%__tar -xvf %{SOURCE85}
%__tar -xvf %{SOURCE86}
%__tar -xvf %{SOURCE87}
%__tar -xvf %{SOURCE88}
%__tar -xvf %{SOURCE89}
%__tar -xvf %{SOURCE90}
%__tar -xvf %{SOURCE91}
%__tar -xvf %{SOURCE92}
%__tar -xvf %{SOURCE93}
%__tar -xvf %{SOURCE94}
%__tar -xvf %{SOURCE95}
%__tar -xvf %{SOURCE96}
%__tar -xvf %{SOURCE97}
%__tar -xvf %{SOURCE98}
%__tar -xvf %{SOURCE99}
%__tar -xvf %{SOURCE100}
%__tar -xvf %{SOURCE101}
%__tar -xvf %{SOURCE102}
%__tar -xvf %{SOURCE103}
%__tar -xvf %{SOURCE104}
%__tar -xvf %{SOURCE105}
%__tar -xvf %{SOURCE106}
%__tar -xvf %{SOURCE107}
%__tar -xvf %{SOURCE108}
%__tar -xvf %{SOURCE109}
%__tar -xvf %{SOURCE110}
%__tar -xvf %{SOURCE111}
%__tar -xvf %{SOURCE112}
%__tar -xvf %{SOURCE113}
%__tar -xvf %{SOURCE114}
%__tar -xvf %{SOURCE115}
%__tar -xvf %{SOURCE116}
%__tar -xvf %{SOURCE117}
%__tar -xvf %{SOURCE118}
%__tar -xvf %{SOURCE119}
%__tar -xvf %{SOURCE120}
%__tar -xvf %{SOURCE121}
%__tar -xvf %{SOURCE122}
%__tar -xvf %{SOURCE123}
%__tar -xvf %{SOURCE124}
%__tar -xvf %{SOURCE125}
%__tar -xvf %{SOURCE126}
%__tar -xvf %{SOURCE127}
%__tar -xvf %{SOURCE128}
%__tar -xvf %{SOURCE129}
%__tar -xvf %{SOURCE130}
%__tar -xvf %{SOURCE131}
%__tar -xvf %{SOURCE132}
%__tar -xvf %{SOURCE133}
%__tar -xvf %{SOURCE134}
%__tar -xvf %{SOURCE135}
%__tar -xvf %{SOURCE136}
%__tar -xvf %{SOURCE137}
%__tar -xvf %{SOURCE138}
%__tar -xvf %{SOURCE139}
%__tar -xvf %{SOURCE140}
%__tar -xvf %{SOURCE141}
%__tar -xvf %{SOURCE142}
%__tar -xvf %{SOURCE143}
%__tar -xvf %{SOURCE144}
%__tar -xvf %{SOURCE145}
%__tar -xvf %{SOURCE146}
%__tar -xvf %{SOURCE147}
%__tar -xvf %{SOURCE148}
%__tar -xvf %{SOURCE149}
%__tar -xvf %{SOURCE150}
%__tar -xvf %{SOURCE151}
%__tar -xvf %{SOURCE152}
%__tar -xvf %{SOURCE153}
%__tar -xvf %{SOURCE154}
%__tar -xvf %{SOURCE155}
%__tar -xvf %{SOURCE156}
%__tar -xvf %{SOURCE157}
%__tar -xvf %{SOURCE158}
%__tar -xvf %{SOURCE159}
%__tar -xvf %{SOURCE160}
%__tar -xvf %{SOURCE161}
%__tar -xvf %{SOURCE162}
%__tar -xvf %{SOURCE163}
%__tar -xvf %{SOURCE164}
%__tar -xvf %{SOURCE165}
%__tar -xvf %{SOURCE166}
%__tar -xvf %{SOURCE167}
%__tar -xvf %{SOURCE168}
%__tar -xvf %{SOURCE169}
%__tar -xvf %{SOURCE170}
%__tar -xvf %{SOURCE171}
%__tar -xvf %{SOURCE172}
%__tar -xvf %{SOURCE173}
%__tar -xvf %{SOURCE174}
%__tar -xvf %{SOURCE175}
%__tar -xvf %{SOURCE176}
%__tar -xvf %{SOURCE177}

%build

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

%__mkdir_p %{buildroot}%{_datadir}

## move texmf-dist to /usr/share/texmf-dist
[ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:

## move texmf to /usr/share/texmf
[ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:

## move tlpkg to /usr/share/tlpkg
[ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:

## move all non-arch binaries to /usr/bin
[ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:

## move others into /usr/share/texmf-dist
%__mkdir_p %{buildroot}%{_tl_texmfdist}
%__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
%__rm -rf * ||:


## remove duplicated files between texlive and texlive-collection-*
## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
## remove unpacked files
x=(
dvipdfmx/dvipdfmx.cfg
scripts/context/stubs/unix/mtxrun
scripts/latexmk/latexmk.pl
scripts/ptex2pdf/ptex2pdf.lua
scripts/texlive/fmtutil.pl
scripts/texlive/texconfig-dialog.sh 
scripts/texlive/texconfig-sys.sh 
scripts/texlive/texconfig.sh 
scripts/texlive/texlinks.sh 
scripts/texlive/tlmgr.pl 
scripts/texlive/updmap.pl
texconfig/tcfmgr 
web2c/fmtutil.cnf
web2c/mktex.opt 
web2c/mktexdir 
web2c/mktexdir.opt 
web2c/mktexnam 
web2c/mktexnam.opt 
web2c/mktexupd 
web2c/texmf.cnf 
web2c/updmap-hdr.cfg 
web2c/updmap.cfg 
install-tl
#
scripts/cjk-gs-integrate/cjk-gs-integrate.pl #texlive-collection-langcjk-2015-3vl7.noarch
scripts/epspdf/epspdf.tlu #texlive-collection-pictures-2015-3vl7.noarch
scripts/epspdf/epspdftk.tcl #texlive-collection-pictures-2015-3vl7.noarch
scripts/glossaries/makeglossaries #texlive-collection-latexextra-2015-3vl7.noarch
scripts/jfontmaps/kanji-config-updmap.pl #texlive-collection-langjapanese-2015-3vl7.noarch
scripts/jfontmaps/kanji-fontmap-creator.pl #texlive-collection-langjapanese-2015-3vl7.noarch
scripts/kotex-utils/jamo-normalize.pl #texlive-collection-langkorean-2015-3vl7.noarch
scripts/kotex-utils/komkindex.pl #texlive-collection-langkorean-2015-3vl7.noarch
scripts/crossrefware/ltx2crossrefxml.pl #texlive-collection-bibtexextra-2015-3vl7.noarch
scripts/rubik/rubikrotation.pl #texlive-collection-games-2015-3vl7.noarch
scripts/musixtex/musixtex.lua #texlive-collection-music-2015-3vl7.noarch
scripts/pmxchords/pmxchords.lua #texlive-collection-music-2015-3vl7.noarch
scripts/ctanify/ctanify #texlive-collection-binextra-2015-3vl7.noarch
scripts/dtxgen/dtxgen #texlive-collection-binextra-2015-3vl7.noarch
scripts/findhyph/findhyph #texlive-collection-binextra-2015-3vl7.noarch
scripts/latexpand/latexpand #texlive-collection-binextra-2015-3vl7.noarch
scripts/ltxfileinfo/ltxfileinfo #texlive-collection-binextra-2015-3vl7.noarch
scripts/latexdiff/latexdiff-vc.pl #texlive-collection-binextra-2015-3vl7.noarch
scripts/latexdiff/latexdiff.pl #texlive-collection-binextra-2015-3vl7.noarch
scripts/texfot/texfot.pl #texlive-collection-binextra-2015-3vl7.noarch
scripts/fontools/autoinst #texlive-collection-fontutils-2015-3vl7.noarch
scripts/luaotfload/luaotfload-tool.lua #texlive-collection-luatex-2015-3vl7.noarch
)
if [ -d %{buildroot}%{_tl_texmfdist} ]; then
pushd %{buildroot}%{_tl_texmfdist}
%__rm -f ${x[@]} ||:
popd
fi

## Files list
find %{buildroot} -type f -or -type l | \
    %__sed -e "s|%{buildroot}||g" > filelist.full

find %{buildroot}%{_tl_texmfdist} -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
%_tl_touch_run texhash
%_tl_touch_run mtxrun

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

    %_tl_enable_map Map chemarrow.map

exit 0


%postun
if [ "$1" = 0 ]; then
    %_tl_touch_run texhash

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

    %_tl_disable_map chemarrow.map

fi

exit 0

%posttrans
%{_tl_exec_texhash}
%{_tl_exec_mtxrun}
%{_tl_exec_updmap}
%{_tl_exec_fmtutil}
exit 0


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

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

%changelog
* Tue Jun 07 2016 Munehiro Yamamoto <munepi@vinelinux.org> 2016-4
- synced tlnet to 20160607 (TeX Live 2016)

* Sat May 14 2016 Munehiro Yamamoto <munepi@vinelinux.org> 2016-3
- synced tlnet to 20160514 (TeX Live 2016/pretest)

* Tue May 10 2016 Munehiro Yamamoto <munepi@vinelinux.org> 2016-2
- synced tlnet to 20160510 (TeX Live 2016/pretest)

* Thu Apr 28 2016 Munehiro Yamamoto <munepi@vinelinux.org> 2016-1
- TeX Live 2016/pretest
- synced tlnet to 20160428 (TeX Live 2016/pretest)

* Wed Jan 13 2016 Munehiro Yamamoto <munepi@vinelinux.org> 2015-4
- remove duplicated files from texlive-collection-*
- synced tlnet to 20160113 (TeX Live 2015)

* Sun Jan 10 2016 Munehiro Yamamoto <munepi@vinelinux.org> 2015-3
- TeX Live 2016/dev
- synced tlnet to 20160110 (TeX Live 2016/dev)

* Sun May 24 2015 Munehiro Yamamoto <munepi@vinelinux.org> 2015-2
- TeX Live 2015/pretest
- synced tlnet to 20150522 (TeX Live 2015/pretest)

* Sun Apr 26 2015 Munehiro Yamamoto <munepi@vinelinux.org> 2015-1
- TeX Live 2015/pretest
- synced tlnet to 20150426 (TeX Live 2015/pretest)

* Wed Apr 01 2015 Munehiro Yamamoto <munepi@vinelinux.org> 2014-4
- synced tlnet to 20150401

* Tue Oct 28 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-3
- synced tlnet to 20141028

* Sun Jul 06 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-2
- synced tlnet to 20140706

* Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
- upgraded to TeX Live 2014

* Sun Apr 06 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2013-6
- synced tlnet to 20140406

* Wed Dec 18 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-5
- synced tlnet to 20131218

* Fri Nov 01 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-4
- synced tlnet to 20131101

* Wed Oct 02 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-3
- synced tlnet to 20131002

* Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-2
- synced tlnet to 20130919

* Fri Aug 23 2013 Munehiro Yamamoto <munepi@vinelinux.org> 2013-1
- upgraded to TeX Live 2013
  - used tlnet archives
  - synced tlnet to 20130823
- added macros.texlive

* Fri Aug 10 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1
- updated to TeX Live 2012

* Sat Dec 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-2
- updated tlpdb2rpmspec.sh.in and dot.vtlpkg.conf.in: 
  - set external dependencies (texlive-collection-binextra, 
    texlive-collection-fontutils)

* Sun Oct 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
- updated to TeX Live 2011
- merged texlive-vtlpkg-2009-osx.patch from OSXWS
- added %doc README (%files)

* Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-4
- applied texlive-vtlpkg-2009-vine.patch
  - remove arch dependent binaries
- updated tlpdb2rpmspec.sh.in: 
  - improved tlpdb4a()
  - 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)

* Wed Jan 12 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
- updated tlpdb2rpmspec.sh.in: 
  - improved %post

* Sun Sep 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
- updated tlpdb2rpmspec.sh.in: 
  - removed arch dependent binaries (texlive-collection-latexextra)
  - improved updmap process in %post and %postun
  - fixed perl path

* Fri Jul 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
- initial build
