## -*- coding: utf-8-unix -*-
## NOTE: This spec file is generated by tlpdb2rpmspec 2017-2: 
## tlpdb2rpmspec collection-langeuropean

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

Summary: TeX Live: Other European languages
Summary(ja): TeX Live: Other European languages
Name: texlive-collection-langeuropean
Version: 2017
Release: 2%{?_dist_release}
License: LPPL, LPPL 1.3, Freely redistributable without restriction, Public Domain, GPL+, GPLv2+, LPPL 1.2
Group: Applications/Publishing
URL:http://www.tug.org/texlive/

Source0: armtex.doc.tar.xz
Source1: armtex.tar.xz
Source2: babel-albanian.doc.tar.xz
Source3: babel-albanian.source.tar.xz
Source4: babel-albanian.tar.xz
Source5: babel-bosnian.doc.tar.xz
Source6: babel-bosnian.source.tar.xz
Source7: babel-bosnian.tar.xz
Source8: babel-breton.doc.tar.xz
Source9: babel-breton.source.tar.xz
Source10: babel-breton.tar.xz
Source11: babel-croatian.doc.tar.xz
Source12: babel-croatian.source.tar.xz
Source13: babel-croatian.tar.xz
Source14: babel-danish.doc.tar.xz
Source15: babel-danish.source.tar.xz
Source16: babel-danish.tar.xz
Source17: babel-dutch.doc.tar.xz
Source18: babel-dutch.source.tar.xz
Source19: babel-dutch.tar.xz
Source20: babel-estonian.doc.tar.xz
Source21: babel-estonian.source.tar.xz
Source22: babel-estonian.tar.xz
Source23: babel-finnish.doc.tar.xz
Source24: babel-finnish.source.tar.xz
Source25: babel-finnish.tar.xz
Source26: babel-friulan.doc.tar.xz
Source27: babel-friulan.source.tar.xz
Source28: babel-friulan.tar.xz
Source29: babel-hungarian.doc.tar.xz
Source30: babel-hungarian.tar.xz
Source31: babel-icelandic.doc.tar.xz
Source32: babel-icelandic.source.tar.xz
Source33: babel-icelandic.tar.xz
Source34: babel-irish.doc.tar.xz
Source35: babel-irish.source.tar.xz
Source36: babel-irish.tar.xz
Source37: babel-kurmanji.doc.tar.xz
Source38: babel-kurmanji.source.tar.xz
Source39: babel-kurmanji.tar.xz
Source40: babel-latin.doc.tar.xz
Source41: babel-latin.source.tar.xz
Source42: babel-latin.tar.xz
Source43: babel-latvian.doc.tar.xz
Source44: babel-latvian.source.tar.xz
Source45: babel-latvian.tar.xz
Source46: babel-macedonian.doc.tar.xz
Source47: babel-macedonian.source.tar.xz
Source48: babel-macedonian.tar.xz
Source49: babel-norsk.doc.tar.xz
Source50: babel-norsk.source.tar.xz
Source51: babel-norsk.tar.xz
Source52: babel-occitan.doc.tar.xz
Source53: babel-occitan.source.tar.xz
Source54: babel-occitan.tar.xz
Source55: babel-piedmontese.doc.tar.xz
Source56: babel-piedmontese.source.tar.xz
Source57: babel-piedmontese.tar.xz
Source58: babel-romanian.doc.tar.xz
Source59: babel-romanian.source.tar.xz
Source60: babel-romanian.tar.xz
Source61: babel-romansh.doc.tar.xz
Source62: babel-romansh.source.tar.xz
Source63: babel-romansh.tar.xz
Source64: babel-samin.doc.tar.xz
Source65: babel-samin.source.tar.xz
Source66: babel-samin.tar.xz
Source67: babel-scottish.doc.tar.xz
Source68: babel-scottish.source.tar.xz
Source69: babel-scottish.tar.xz
Source70: babel-slovenian.doc.tar.xz
Source71: babel-slovenian.source.tar.xz
Source72: babel-slovenian.tar.xz
Source73: babel-swedish.doc.tar.xz
Source74: babel-swedish.source.tar.xz
Source75: babel-swedish.tar.xz
Source76: babel-turkish.doc.tar.xz
Source77: babel-turkish.source.tar.xz
Source78: babel-turkish.tar.xz
Source79: babel-welsh.doc.tar.xz
Source80: babel-welsh.source.tar.xz
Source81: babel-welsh.tar.xz
Source82: finbib.tar.xz
Source83: gloss-occitan.doc.tar.xz
Source84: gloss-occitan.source.tar.xz
Source85: gloss-occitan.tar.xz
Source86: hrlatex.doc.tar.xz
Source87: hrlatex.source.tar.xz
Source88: hrlatex.tar.xz
Source89: hyphen-croatian.tar.xz
Source90: hyphen-danish.tar.xz
Source91: hyphen-dutch.tar.xz
Source92: hyphen-estonian.tar.xz
Source93: hyphen-finnish.tar.xz
Source94: hyphen-friulan.tar.xz
Source95: hyphen-hungarian.doc.tar.xz
Source96: hyphen-hungarian.tar.xz
Source97: hyphen-icelandic.tar.xz
Source98: hyphen-irish.tar.xz
Source99: hyphen-kurmanji.tar.xz
Source100: hyphen-latin.tar.xz
Source101: hyphen-latvian.tar.xz
Source102: hyphen-lithuanian.tar.xz
Source103: hyphen-norwegian.tar.xz
Source104: hyphen-occitan.tar.xz
Source105: hyphen-piedmontese.tar.xz
Source106: hyphen-romanian.tar.xz
Source107: hyphen-romansh.tar.xz
Source108: hyphen-slovenian.tar.xz
Source109: hyphen-swedish.tar.xz
Source110: hyphen-turkish.source.tar.xz
Source111: hyphen-turkish.tar.xz
Source112: hyphen-uppersorbian.tar.xz
Source113: hyphen-welsh.tar.xz
Source114: lithuanian.doc.tar.xz
Source115: lithuanian.tar.xz
Source116: lshort-dutch.doc.tar.xz
Source117: lshort-dutch.tar.xz
Source118: lshort-estonian.doc.tar.xz
Source119: lshort-estonian.tar.xz
Source120: lshort-finnish.doc.tar.xz
Source121: lshort-finnish.tar.xz
Source122: lshort-slovenian.doc.tar.xz
Source123: lshort-slovenian.tar.xz
Source124: lshort-turkish.doc.tar.xz
Source125: lshort-turkish.tar.xz
Source126: nevelok.doc.tar.xz
Source127: nevelok.source.tar.xz
Source128: nevelok.tar.xz
Source129: swebib.doc.tar.xz
Source130: swebib.tar.xz
Source131: turkmen.doc.tar.xz
Source132: turkmen.source.tar.xz
Source133: turkmen.tar.xz

Requires: texlive = %{version}
Requires: texlive-collection-basic = %{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 Other European languages: 
Support for a number of European languages; others (Greek,
German, French, ...) have their own collections, depending
simply on the size of the support.

This package contains the following CTAN packages: 
armtex: A system for writing Armenian with TeX and LaTeX
babel-albanian: Support for Albanian within babel
babel-bosnian: Babel contrib support for Bosnian
babel-breton: Babel contributed support for Breton
babel-croatian: Babel contributed support for Croatian
babel-danish: Babel contributed support for Danish
babel-dutch: Babel contributed support for Dutch
babel-estonian: Babel support for Estonian
babel-finnish: Babel/Polyglossia support for Finnish
babel-friulan: Babel/Polyglossia support for Friulan(Furlan)
babel-hungarian: Babel support for Hungarian (Magyar)
babel-icelandic: Babel support for Icelandic
babel-irish: Babel support for Irish
babel-kurmanji: Babel support for Kurmanji
babel-latin: Babel support for Latin
babel-latvian: Babel support for Latvian
babel-macedonian: Babel module to support Macedonian Cyrillic
babel-norsk: Babel support for Norwegian
babel-occitan: Babel support for Occitan
babel-piedmontese: Babel support for Piedmontese
babel-romanian: Babel support for Romanian
babel-romansh: Babel/Polyglossia support for the Romansh language
babel-samin: Babel support for Samin
babel-scottish: Babel support for Scottish Gaelic
babel-slovenian: Babel support for typesetting Slovenian
babel-swedish: Babel support for typesetting Swedish
babel-turkish: Babel support for Turkish documents
babel-welsh: Babel support for Welsh
finbib: A Finnish version of plain.bst
gloss-occitan: Polyglossia support for Occitan
hrlatex: LaTeX support for Croatian documents
hyphen-croatian: Croatian hyphenation patterns.
hyphen-danish: Danish hyphenation patterns.
hyphen-dutch: Dutch hyphenation patterns.
hyphen-estonian: Estonian hyphenation patterns.
hyphen-finnish: Finnish hyphenation patterns.
hyphen-friulan: Friulan hyphenation patterns.
hyphen-hungarian: Hungarian hyphenation patterns.
hyphen-icelandic: Icelandic hyphenation patterns.
hyphen-irish: Irish hyphenation patterns.
hyphen-kurmanji: Kurmanji hyphenation patterns.
hyphen-latin: Liturgical Latin hyphenation patterns.
hyphen-latvian: Latvian hyphenation patterns.
hyphen-lithuanian: Lithuanian hyphenation patterns.
hyphen-norwegian: Norwegian Bokmal and Nynorsk hyphenation patterns.
hyphen-occitan: Occitan hyphenation patterns.
hyphen-piedmontese: Piedmontese hyphenation patterns.
hyphen-romanian: Romanian hyphenation patterns.
hyphen-romansh: Romansh hyphenation patterns.
hyphen-slovenian: Slovenian hyphenation patterns.
hyphen-swedish: Swedish hyphenation patterns.
hyphen-turkish: Turkish hyphenation patterns.
hyphen-uppersorbian: Upper Sorbian hyphenation patterns.
hyphen-welsh: Welsh hyphenation patterns.
lithuanian: Lithuanian language support
lshort-dutch: Introduction to LaTeX in Dutch
lshort-estonian: Estonian introduction to LaTeX
lshort-finnish: Finnish introduction to LaTeX
lshort-slovenian: Slovenian translation of lshort
lshort-turkish: Turkish introduction to LaTeX
nevelok: LaTeX package for automatic definite articles for Hungarian
swebib: Swedish bibliography styles
turkmen: Babel support for Turkmen

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

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

このパッケージは以下のようなパッケージ集です。
Other European languages: 
Support for a number of European languages; others (Greek,
German, French, ...) have their own collections, depending
simply on the size of the support.

このパッケージは以下の CTAN パッケージを含んでいます： 
armtex: A system for writing Armenian with TeX and LaTeX
babel-albanian: Support for Albanian within babel
babel-bosnian: Babel contrib support for Bosnian
babel-breton: Babel contributed support for Breton
babel-croatian: Babel contributed support for Croatian
babel-danish: Babel contributed support for Danish
babel-dutch: Babel contributed support for Dutch
babel-estonian: Babel support for Estonian
babel-finnish: Babel/Polyglossia support for Finnish
babel-friulan: Babel/Polyglossia support for Friulan(Furlan)
babel-hungarian: Babel support for Hungarian (Magyar)
babel-icelandic: Babel support for Icelandic
babel-irish: Babel support for Irish
babel-kurmanji: Babel support for Kurmanji
babel-latin: Babel support for Latin
babel-latvian: Babel support for Latvian
babel-macedonian: Babel module to support Macedonian Cyrillic
babel-norsk: Babel support for Norwegian
babel-occitan: Babel support for Occitan
babel-piedmontese: Babel support for Piedmontese
babel-romanian: Babel support for Romanian
babel-romansh: Babel/Polyglossia support for the Romansh language
babel-samin: Babel support for Samin
babel-scottish: Babel support for Scottish Gaelic
babel-slovenian: Babel support for typesetting Slovenian
babel-swedish: Babel support for typesetting Swedish
babel-turkish: Babel support for Turkish documents
babel-welsh: Babel support for Welsh
finbib: A Finnish version of plain.bst
gloss-occitan: Polyglossia support for Occitan
hrlatex: LaTeX support for Croatian documents
hyphen-croatian: Croatian hyphenation patterns.
hyphen-danish: Danish hyphenation patterns.
hyphen-dutch: Dutch hyphenation patterns.
hyphen-estonian: Estonian hyphenation patterns.
hyphen-finnish: Finnish hyphenation patterns.
hyphen-friulan: Friulan hyphenation patterns.
hyphen-hungarian: Hungarian hyphenation patterns.
hyphen-icelandic: Icelandic hyphenation patterns.
hyphen-irish: Irish hyphenation patterns.
hyphen-kurmanji: Kurmanji hyphenation patterns.
hyphen-latin: Liturgical Latin hyphenation patterns.
hyphen-latvian: Latvian hyphenation patterns.
hyphen-lithuanian: Lithuanian hyphenation patterns.
hyphen-norwegian: Norwegian Bokmal and Nynorsk hyphenation patterns.
hyphen-occitan: Occitan hyphenation patterns.
hyphen-piedmontese: Piedmontese hyphenation patterns.
hyphen-romanian: Romanian hyphenation patterns.
hyphen-romansh: Romansh hyphenation patterns.
hyphen-slovenian: Slovenian hyphenation patterns.
hyphen-swedish: Swedish hyphenation patterns.
hyphen-turkish: Turkish hyphenation patterns.
hyphen-uppersorbian: Upper Sorbian hyphenation patterns.
hyphen-welsh: Welsh hyphenation patterns.
lithuanian: Lithuanian language support
lshort-dutch: Introduction to LaTeX in Dutch
lshort-estonian: Estonian introduction to LaTeX
lshort-finnish: Finnish introduction to LaTeX
lshort-slovenian: Slovenian translation of lshort
lshort-turkish: Turkish introduction to LaTeX
nevelok: LaTeX package for automatic definite articles for Hungarian
swebib: Swedish bibliography styles
turkmen: Babel support for Turkmen

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

%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 
scripts/epspdf/epspdf.tlu 
scripts/epspdf/epspdftk.tcl 
scripts/glossaries/makeglossaries 
scripts/jfontmaps/kanji-config-updmap.pl 
scripts/jfontmaps/kanji-fontmap-creator.pl 
scripts/kotex-utils/jamo-normalize.pl 
scripts/kotex-utils/komkindex.pl 
scripts/crossrefware/ltx2crossrefxml.pl 
scripts/rubik/rubikrotation.pl 
scripts/musixtex/musixtex.lua 
scripts/pmxchords/pmxchords.lua 
scripts/ctanify/ctanify 
scripts/dtxgen/dtxgen 
scripts/findhyph/findhyph 
scripts/latexpand/latexpand 
scripts/ltxfileinfo/ltxfileinfo 
scripts/latexdiff/latexdiff-vc.pl 
scripts/latexdiff/latexdiff.pl 
scripts/texfot/texfot.pl 
scripts/fontools/autoinst 
scripts/luaotfload/luaotfload-tool.lua 
scripts/oberdiek/pdfatfi.pl 
fonts/map/glyphlist/glyphlist.txt ## texlive-collection-basic-2017-1vl7.noarch
scripts/tex4ht/xhlatex.sh ## texlive-collection-plaingeneric-2017-1vl7.noarch
scripts/latexindent/latexindent.pl ## texlive-collection-binextra-2017-1vl7.noarch
scripts/texosquery/texosquery-jre5.sh ## texlive-collection-binextra-2017-1vl7.noarch
scripts/texosquery/texosquery-jre8.sh ## texlive-collection-binextra-2017-1vl7.noarch
scripts/texosquery/texosquery.sh ## texlive-collection-binextra-2017-1vl7.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 MixedMap arss.map
    %_tl_enable_map MixedMap artm.map
    %_tl_enable_map Map l7x-urwvn.map

%_tl_touch_run fmtutil

exit 0


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

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

    %_tl_disable_map arss.map
    %_tl_disable_map artm.map
    %_tl_disable_map l7x-urwvn.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
* Sun Jun 18 2017 Munehiro Yamamoto <munepi@vinelinux.org> 2017-2
- synced tlnet to 20170616 (TeX Live 2017)

* Thu Jun 08 2017 Munehiro Yamamoto <munepi@vinelinux.org> 2017-1
- synced tlnet to 20170607 (TeX Live 2017)

* Tue Aug 23 2016 Munehiro Yamamoto <munepi@vinelinux.org> 2016-5
- synced tlnet to 20160823 (TeX Live 2016)

* 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
