source: projects/specs/trunk/t/texlive-collection-formatsextra/texlive-collection-formatsextra-vl.spec @ 9529

Revision 9529, 6.2 KB checked in by munepi, 9 years ago (diff)

TeX Live 2015/pretest

RevLine 
[1533]1## -*- coding: utf-8-unix -*-
[9529]2## NOTE: This spec file is generated by tlpdb2rpmspec 2015-1:
[1974]3## tlpdb2rpmspec collection-formatsextra
[1533]4
[5207]5%global _use_internal_dependency_generator 0
6%global __find_provides %{nil}
7%global __find_requires %{nil}
8
[7770]9Summary: TeX Live: Additional formats
10Summary(ja): TeX Live: Additional formats
[1533]11Name: texlive-collection-formatsextra
[9529]12Version: 2015
13Release: 1%{?_dist_release}
[8476]14License: GPLv2+, GPLv3+, Knuth, LPPL, Public Domain
[1533]15Group: Applications/Publishing
16URL:http://www.tug.org/texlive/
17
[7770]18Source0: edmac.doc.tar.xz
19Source1: edmac.source.tar.xz
20Source2: edmac.tar.xz
21Source3: eplain.doc.tar.xz
22Source4: eplain.source.tar.xz
23Source5: eplain.tar.xz
[8476]24Source6: lollipop.doc.tar.xz
25Source7: lollipop.tar.xz
26Source8: mltex.doc.tar.xz
27Source9: mltex.tar.xz
28Source10: psizzl.doc.tar.xz
29Source11: psizzl.source.tar.xz
30Source12: psizzl.tar.xz
31Source13: startex.doc.tar.xz
32Source14: startex.source.tar.xz
33Source15: startex.tar.xz
34Source16: texsis.doc.tar.xz
35Source17: texsis.tar.xz
[7770]36
[1533]37Requires: texlive = %{version}
38Requires: texlive-collection-basic = %{version}
39
40Requires(post):         texlive = %{version}
41Requires(postun):       texlive = %{version}
42
43BuildArch:      noarch
44Buildroot:      %{_tmppath}/%{name}-%{version}-root
45
46Vendor:         Project Vine
47Distribution:   Vine Linux
48Packager:       munepi
49
50%description
51The TeX Live software distribution offers a complete TeX system for a
52variety of Unix, Macintosh, Windows and other platforms. It
53encompasses programs for editing, typesetting, previewing and printing
54of TeX documents in many different languages, and a large collection
55of TeX macros and font libraries.
56
57The distribution includes extensive general documentation about TeX,
58as well as the documentation for the included software packages.
59
[7770]60This package is a collection of Additional formats:
[5207]61Collected TeX `formats', i.e., large-scale macro packages
[8476]62designed to be dumped into .fmt files -- excluding the most
63common ones, such as latex and context, which have their own
64package(s).
[1533]65
66This package contains the following CTAN packages:
[8476]67edmac: Typeset critical editions.
[9529]68eplain: Extended plain TeX macros.
[8476]69lollipop: TeX made easy.
[1533]70mltex: The MLTeX system.
71psizzl: A TeX format for physics papers.
72startex: An XML-inspired format for student use.
73texsis: Plain TeX macros for Physicists.
74
75%description -l ja
76TeX Live ソフトウェアディストリビューションは、
77さまざまな Unix, Macintosh, Windows、および
78他のプラットホームに対して完全な TeX システムを提供します。
79多くの異なった言語を含む TeX ドキュメントの
80編集、組版、閲覧、印刷するためのプログラム、
81そして、TeX マクロやフォントライブラリの大きなコレクションを
82同梱しています。
83
84このディストリビューションは
85同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
86TeX に関するたくさんの一般的なドキュメントを含んでいます。
87
88このパッケージは以下のようなパッケージ集です。
[7770]89Additional formats:
[5207]90Collected TeX `formats', i.e., large-scale macro packages
[8476]91designed to be dumped into .fmt files -- excluding the most
92common ones, such as latex and context, which have their own
93package(s).
[1533]94
95このパッケージは以下の CTAN パッケージを含んでいます:
[8476]96edmac: Typeset critical editions.
[9529]97eplain: Extended plain TeX macros.
[8476]98lollipop: TeX made easy.
[1533]99mltex: The MLTeX system.
100psizzl: A TeX format for physics papers.
101startex: An XML-inspired format for student use.
102texsis: Plain TeX macros for Physicists.
103
104%package doc
105Summary: TeX Live: Documentation files of %{name}
106Group: Applications/Publishing
107Requires: %{name} = %{version}-%{release}
108
109%description doc
110This package contains documentation files of %{name}.
111
112%prep
[7770]113%setup -c -n %{name}-%{version}
114%__tar -xvf %{SOURCE1}
115%__tar -xvf %{SOURCE2}
116%__tar -xvf %{SOURCE3}
117%__tar -xvf %{SOURCE4}
118%__tar -xvf %{SOURCE5}
119%__tar -xvf %{SOURCE6}
120%__tar -xvf %{SOURCE7}
121%__tar -xvf %{SOURCE8}
122%__tar -xvf %{SOURCE9}
123%__tar -xvf %{SOURCE10}
124%__tar -xvf %{SOURCE11}
125%__tar -xvf %{SOURCE12}
126%__tar -xvf %{SOURCE13}
127%__tar -xvf %{SOURCE14}
128%__tar -xvf %{SOURCE15}
[8476]129%__tar -xvf %{SOURCE16}
130%__tar -xvf %{SOURCE17}
[1533]131
132%build
133
134%install
135[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
136
[7770]137%__mkdir_p %{buildroot}%{_datadir}
[1533]138
[7770]139## move texmf-dist to /usr/share/texmf-dist
140[ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
[1533]141
[7770]142## move texmf to /usr/share/texmf
143[ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
[1533]144
[7770]145## move tlpkg to /usr/share/tlpkg
146[ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
147
148## move all non-arch binaries to /usr/bin
149[ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
150
151## move others into /usr/share/texmf-dist
152%__mkdir_p %{buildroot}%{_tl_texmfdist}
153%__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
154%__rm -rf * ||:
155
156
157## remove duplicated files between texlive and texlive-collection-*
158## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
159## remove unpacked files
160x=(
[9529]161scripts/texlive/texconfig-dialog.sh
162scripts/texlive/texconfig-sys.sh
163scripts/texlive/texconfig.sh
164scripts/texlive/texlinks.sh
165scripts/texlive/tlmgr.pl
166texconfig/tcfmgr
167web2c/mktex.opt
168web2c/mktexdir
169web2c/mktexdir.opt
170web2c/mktexnam
171web2c/mktexnam.opt
172web2c/mktexupd
173web2c/texmf.cnf
174web2c/updmap-hdr.cfg
175web2c/updmap.cfg
[7770]176)
177if [ -d %{buildroot}%{_tl_texmfdist} ]; then
178pushd %{buildroot}%{_tl_texmfdist}
179%__rm -f ${x[@]} ||:
[5207]180popd
[7770]181fi
182
[1533]183## Files list
184find %{buildroot} -type f -or -type l | \
185    %__sed -e "s|%{buildroot}||g" > filelist.full
186
[7770]187find %{buildroot}%{_tl_texmfdist} -type d | \
[1533]188    %__sed -e "s|^%{buildroot}|%dir |" \
189           -e "s|$|/|"             >> filelist.full
190
191## subpackages
192grep "/texmf-dist/doc/" filelist.full > filelist.doc
193cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
194%__mv -f filelist.tmp filelist.full
195
196%clean
197%__rm -rf %{buildroot}
198
199%post
[7770]200%_tl_touch_run texhash
201%_tl_touch_run mtxrun
[1533]202
[7770]203%_tl_touch_run fmtutil
[2505]204
[1533]205exit 0
206
207
208%postun
209if [ "$1" = 0 ]; then
[7770]210    %_tl_touch_run texhash
[1533]211
212fi
213
214exit 0
215
[7148]216%posttrans
[7770]217%{_tl_exec_texhash}
218%{_tl_exec_mtxrun}
219%{_tl_exec_updmap}
220%{_tl_exec_fmtutil}
[7148]221exit 0
222
223
[1533]224%files -f filelist.full
[5207]225%defattr(-,root,root,-)
[1533]226
227%files -f filelist.doc doc
[5207]228%defattr(-,root,root,-)
[1533]229
230%changelog
[9034]231
Note: See TracBrowser for help on using the repository browser.