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

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

Summary: TeX Live: ConTeXt and packages
Summary(ja): TeX Live: ConTeXt and packages
Name: texlive-collection-context
Version: 2014
Release: 3%{?_dist_release}
License: Freely redistributable without restriction, Public Domain, GPL+, BSD, GPLv2+
Group: Applications/Publishing
URL:http://www.tug.org/texlive/

Source0: context.doc.tar.xz
Source1: context.tar.xz
Source2: jmn.tar.xz
Source3: context-account.doc.tar.xz
Source4: context-account.tar.xz
Source5: context-algorithmic.tar.xz
Source6: context-bnf.doc.tar.xz
Source7: context-bnf.tar.xz
Source8: context-chromato.doc.tar.xz
Source9: context-chromato.tar.xz
Source10: context-construction-plan.doc.tar.xz
Source11: context-construction-plan.tar.xz
Source12: context-cyrillicnumbers.doc.tar.xz
Source13: context-cyrillicnumbers.tar.xz
Source14: context-degrade.doc.tar.xz
Source15: context-degrade.tar.xz
Source16: context-filter.doc.tar.xz
Source17: context-filter.tar.xz
Source18: context-fixme.tar.xz
Source19: context-french.doc.tar.xz
Source20: context-french.tar.xz
Source21: context-fullpage.doc.tar.xz
Source22: context-fullpage.tar.xz
Source23: context-games.doc.tar.xz
Source24: context-games.tar.xz
Source25: context-gantt.doc.tar.xz
Source26: context-gantt.tar.xz
Source27: context-gnuplot.doc.tar.xz
Source28: context-gnuplot.tar.xz
Source29: context-letter.doc.tar.xz
Source30: context-letter.tar.xz
Source31: context-lettrine.doc.tar.xz
Source32: context-lettrine.tar.xz
Source33: context-lilypond.doc.tar.xz
Source34: context-lilypond.tar.xz
Source35: context-mathsets.doc.tar.xz
Source36: context-mathsets.tar.xz
Source37: context-notes-zh-cn.doc.tar.xz
Source38: context-notes-zh-cn.tar.xz
Source39: context-rst.doc.tar.xz
Source40: context-rst.tar.xz
Source41: context-ruby.doc.tar.xz
Source42: context-ruby.tar.xz
Source43: context-simplefonts.doc.tar.xz
Source44: context-simplefonts.tar.xz
Source45: context-simpleslides.doc.tar.xz
Source46: context-simpleslides.tar.xz
Source47: context-transliterator.doc.tar.xz
Source48: context-transliterator.tar.xz
Source49: context-typearea.doc.tar.xz
Source50: context-typearea.tar.xz
Source51: context-typescripts.doc.tar.xz
Source52: context-typescripts.tar.xz
Source53: context-vim.doc.tar.xz
Source54: context-vim.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 ConTeXt and packages: 
Hans Hagen's powerful ConTeXt system, http://pragma-ade.com.
Also includes third-party ConTeXt packages.

This package contains the following CTAN packages: 
context: The ConTeXt macro package.
jmn: 
context-account: A simple accounting package.
context-algorithmic: Algorithm handling in ConTeXt.
context-bnf: A BNF module for Context.
context-chromato: ConTeXt macros for chromatograms.
context-construction-plan: Construction plans in ConTeXt.
context-cyrillicnumbers: Write numbers as cyrillic glyphs.
context-degrade: Degrading JPEG images in ConTeXt.
context-filter: Run external programs on the contents of a start-stop environment.
context-fixme: Make editorial marks on a document.
context-french: Support for writing French in ConTeXt.
context-fullpage: Overfull pages with ConTeXt
context-games: 
context-gantt: GANTT module for ConTeXt.
context-gnuplot: Inclusion of Gnuplot graphs in ConTeXt.
context-letter: Context package for writing letters.
context-lettrine: A ConTeXt implementation of lettrines.
context-lilypond: Lilypond code in ConTeXt.
context-mathsets: Set notation in ConTeXt.
context-notes-zh-cn: Notes on using ConTeXt MkIV.
context-rst: Process reStructuredText with ConTeXt.
context-ruby: Ruby annotations in ConTeXt.
context-simplefonts: Simplified font usage for ConTeXt.
context-simpleslides: 
context-transliterator: Transliterate text from 'other' alphabets.
context-typearea: Something like Koma-Script typearea.
context-typescripts: Small modules to load various fonts for use in ConTeXt.
context-vim: Generate Context syntax highlighting code from vim.

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

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

このパッケージは以下のようなパッケージ集です。
ConTeXt and packages: 
Hans Hagen's powerful ConTeXt system, http://pragma-ade.com.
Also includes third-party ConTeXt packages.

このパッケージは以下の CTAN パッケージを含んでいます: 
context: The ConTeXt macro package.
jmn: 
context-account: A simple accounting package.
context-algorithmic: Algorithm handling in ConTeXt.
context-bnf: A BNF module for Context.
context-chromato: ConTeXt macros for chromatograms.
context-construction-plan: Construction plans in ConTeXt.
context-cyrillicnumbers: Write numbers as cyrillic glyphs.
context-degrade: Degrading JPEG images in ConTeXt.
context-filter: Run external programs on the contents of a start-stop environment.
context-fixme: Make editorial marks on a document.
context-french: Support for writing French in ConTeXt.
context-fullpage: Overfull pages with ConTeXt
context-games: 
context-gantt: GANTT module for ConTeXt.
context-gnuplot: Inclusion of Gnuplot graphs in ConTeXt.
context-letter: Context package for writing letters.
context-lettrine: A ConTeXt implementation of lettrines.
context-lilypond: Lilypond code in ConTeXt.
context-mathsets: Set notation in ConTeXt.
context-notes-zh-cn: Notes on using ConTeXt MkIV.
context-rst: Process reStructuredText with ConTeXt.
context-ruby: Ruby annotations in ConTeXt.
context-simplefonts: Simplified font usage for ConTeXt.
context-simpleslides: 
context-transliterator: Transliterate text from 'other' alphabets.
context-typearea: Something like Koma-Script typearea.
context-typescripts: Small modules to load various fonts for use in ConTeXt.
context-vim: Generate Context syntax highlighting code from vim.

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

%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=(
scripts/epstopdf/epstopdf.pl
scripts/texlive/fmtutil.sh
texconfig/tcfmgr
web2c/texmf.cnf
web2c/updmap-hdr.cfg
web2c/updmap.cfg
install-tl
)
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 original-context-symbol.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 original-context-symbol.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 Oct 28 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-3
- synced tlnet to 20141028

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

* Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 2014-1
- synced tlnet to 20140524