source: projects/specs/branches/6/t/texlive-collection-genericrecommended/texlive-collection-genericrecommended-vl.spec @ 2505

Revision 2505, 13.3 KB checked in by munepi, 13 years ago (diff)

updated all texlive-collection-* packages: improved %%post

Line 
1## -*- coding: utf-8-unix -*-
2## NOTE: This spec file is generated by tlpdb2rpmspec 2009-3:
3## tlpdb2rpmspec collection-genericrecommended
4
5%bcond_with firstbuild
6
7%define tex_destdir     %{_datadir}
8%define texmf           %{tex_destdir}/texmf
9%define texlive_src     %{tex_destdir}/texlive-sources
10%define build_tex_destdir       %{buildroot}%{tex_destdir}
11%define build_texmf     %{buildroot}%{texmf}
12
13%define exec_mktexlsr  [ -x %{_bindir}/texconfig-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/texconfig-sys rehash
14%define exec_texhash  [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash
15%define exec_updmap   [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys --nostop
16%define exec_fmtutil  [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null 2>&1
17%define exec_upddeffont    [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
18%define vartexfonts %{_var}/lib/texmf
19
20%define __find_provides %{nil}
21%define __find_requires %{nil}
22%define __perl_provides %{nil}
23%define __perl_requires %{nil}
24
25Autoreq: 0
26
27Summary: TeX Live: Recommended generic packages
28Summary(ja): TeX Live: Recommended generic packages
29Name: texlive-collection-genericrecommended
30Version: 2009
31Release: 3%{?_dist_release}
32License: Public Domain, GPL+, LPPL
33Group: Applications/Publishing
34URL:http://www.tug.org/texlive/
35
36Requires: texlive = %{version}
37Requires: texlive-collection-basic = %{version}
38
39Requires(post):         texlive = %{version}
40Requires(postun):       texlive = %{version}
41BuildRequires:          texlive-sources = %{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
60This package is a collection of Recommended generic packages:
61Recommended packages that work with multiple formats.
62
63This package contains the following CTAN packages:
64epsf: Simple macros for EPS inclusion.
65fontname: Scheme for naming fonts in TeX.
66genmisc:
67multido: A loop facility for Generic TeX.
68tex-ps: TeX to PostScript generic macros and add-ons.
69
70%description -l ja
71TeX Live ソフトウェアディストリビューションは、
72さまざまな Unix, Macintosh, Windows、および
73他のプラットホームに対して完全な TeX システムを提供します。
74多くの異なった言語を含む TeX ドキュメントの
75編集、組版、閲覧、印刷するためのプログラム、
76そして、TeX マクロやフォントライブラリの大きなコレクションを
77同梱しています。
78
79このディストリビューションは
80同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
81TeX に関するたくさんの一般的なドキュメントを含んでいます。
82
83このパッケージは以下のようなパッケージ集です。
84Recommended generic packages:
85Recommended packages that work with multiple formats.
86
87このパッケージは以下の CTAN パッケージを含んでいます:
88epsf: Simple macros for EPS inclusion.
89fontname: Scheme for naming fonts in TeX.
90genmisc:
91multido: A loop facility for Generic TeX.
92tex-ps: TeX to PostScript generic macros and add-ons.
93
94%package doc
95Summary: TeX Live: Documentation files of %{name}
96Group: Applications/Publishing
97Requires: %{name} = %{version}-%{release}
98
99%description doc
100This package contains documentation files of %{name}.
101
102%prep
103
104%build
105
106%install
107[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
108
109PREF=%{buildroot}%{tex_destdir}
110
111manifest=(
112texmf-dist/doc/generic/epsf/LICENSE
113texmf-dist/doc/generic/epsf/Makefile
114texmf-dist/doc/generic/epsf/README
115texmf-dist/doc/generic/epsf/bboxgrid.ps
116texmf-dist/doc/generic/epsf/fndbadps
117texmf-dist/doc/generic/epsf/okay/teps.eps
118texmf-dist/doc/generic/epsf/okay/tepsf.eps
119texmf-dist/doc/generic/epsf/okay/tepsf1.dvi
120texmf-dist/doc/generic/epsf/okay/tepsf2.dvi
121texmf-dist/doc/generic/epsf/okay/tepsf3.dvi
122texmf-dist/doc/generic/epsf/teps.eps
123texmf-dist/doc/generic/epsf/tepsf.eps
124texmf-dist/doc/generic/epsf/tepsf1.tex
125texmf-dist/doc/generic/epsf/tepsf2.ltx
126texmf-dist/doc/generic/epsf/tepsf3.tex
127texmf-dist/tex/generic/epsf/epsf.sty
128texmf-dist/tex/generic/epsf/epsf.tex
129texmf-dist/doc/fonts/fontname/8a.html
130texmf-dist/doc/fonts/fontname/8r.html
131texmf-dist/doc/fonts/fontname/Adobe-fonts.html
132texmf-dist/doc/fonts/fontname/Apple-fonts.html
133texmf-dist/doc/fonts/fontname/Bitstream-fonts.html
134texmf-dist/doc/fonts/fontname/ChangeLog
135texmf-dist/doc/fonts/fontname/DTC-fonts.html
136texmf-dist/doc/fonts/fontname/Encodings.html
137texmf-dist/doc/fonts/fontname/Filenames-for-fonts.html
138texmf-dist/doc/fonts/fontname/Font-legalities.html
139texmf-dist/doc/fonts/fontname/Font-name-lists.html
140texmf-dist/doc/fonts/fontname/History.html
141texmf-dist/doc/fonts/fontname/ITC-fonts.html
142texmf-dist/doc/fonts/fontname/Introduction.html
143texmf-dist/doc/fonts/fontname/Linotype-fonts.html
144texmf-dist/doc/fonts/fontname/Long-names.html
145texmf-dist/doc/fonts/fontname/Long-naming-scheme.html
146texmf-dist/doc/fonts/fontname/Makefile
147texmf-dist/doc/fonts/fontname/Monotype-fonts.html
148texmf-dist/doc/fonts/fontname/Name-mapping-file.html
149texmf-dist/doc/fonts/fontname/References.html
150texmf-dist/doc/fonts/fontname/Standard-PostScript-fonts.html
151texmf-dist/doc/fonts/fontname/Suppliers.html
152texmf-dist/doc/fonts/fontname/Typefaces.html
153texmf-dist/doc/fonts/fontname/URW-fonts.html
154texmf-dist/doc/fonts/fontname/Variants.html
155texmf-dist/doc/fonts/fontname/Weights.html
156texmf-dist/doc/fonts/fontname/Widths.html
157texmf-dist/doc/fonts/fontname/bitstrea.aka
158texmf-dist/doc/fonts/fontname/cork.html
159texmf-dist/doc/fonts/fontname/dvips.html
160texmf-dist/doc/fonts/fontname/fontname.aux
161texmf-dist/doc/fonts/fontname/fontname.cp
162texmf-dist/doc/fonts/fontname/fontname.html
163texmf-dist/doc/fonts/fontname/fontname.pdf
164texmf-dist/doc/fonts/fontname/fontname.texi
165texmf-dist/doc/fonts/fontname/fontname.toc
166texmf-dist/doc/fonts/fontname/index.html
167texmf-dist/doc/fonts/fontname/texmext.html
168texmf-dist/doc/fonts/fontname/texmital.html
169texmf-dist/doc/fonts/fontname/texmsym.html
170texmf-dist/doc/fonts/fontname/texnansi.html
171texmf-dist/doc/fonts/fontname/texnansx.html
172texmf-dist/doc/fonts/fontname/xl2.html
173texmf-dist/doc/fonts/fontname/xt2.html
174texmf-dist/fonts/map/fontname/adobe.map
175texmf-dist/fonts/map/fontname/apple.map
176texmf-dist/fonts/map/fontname/bitstrea.map
177texmf-dist/fonts/map/fontname/dtc.map
178texmf-dist/fonts/map/fontname/itc.map
179texmf-dist/fonts/map/fontname/linot-cd.map
180texmf-dist/fonts/map/fontname/linotype-cd.map
181texmf-dist/fonts/map/fontname/linotype.map
182texmf-dist/fonts/map/fontname/monotype.map
183texmf-dist/fonts/map/fontname/skey1250.map
184texmf-dist/fonts/map/fontname/skey1555.map
185texmf-dist/fonts/map/fontname/softkey-1250.map
186texmf-dist/fonts/map/fontname/softkey-1555.map
187texmf-dist/fonts/map/fontname/softkey.map
188texmf-dist/fonts/map/fontname/special.map
189texmf-dist/fonts/map/fontname/supplier.map
190texmf-dist/fonts/map/fontname/texfonts.map
191texmf-dist/fonts/map/fontname/typeface.map
192texmf-dist/fonts/map/fontname/urw.map
193texmf-dist/fonts/map/fontname/variant.map
194texmf-dist/fonts/map/fontname/weight.map
195texmf-dist/fonts/map/fontname/width.map
196texmf-dist/fonts/map/fontname/yandy.map
197texmf-dist/tex/generic/genmisc/anti.tex
198texmf-dist/tex/generic/genmisc/apldef.tex
199texmf-dist/tex/generic/genmisc/arabic.tex
200texmf-dist/tex/generic/genmisc/backgrnd.tex
201texmf-dist/tex/generic/genmisc/balancedquotes.sty
202texmf-dist/tex/generic/genmisc/chessmin.tex
203texmf-dist/tex/generic/genmisc/compare.tex
204texmf-dist/tex/generic/genmisc/cropmark.sty
205texmf-dist/tex/generic/genmisc/cropmark.tex
206texmf-dist/tex/generic/genmisc/croptest.tex
207texmf-dist/tex/generic/genmisc/dayofweek.tex
208texmf-dist/tex/generic/genmisc/daytime.sty
209texmf-dist/tex/generic/genmisc/default.sty
210texmf-dist/tex/generic/genmisc/dow.tex
211texmf-dist/tex/generic/genmisc/emtrees.tex
212texmf-dist/tex/generic/genmisc/endnote.tex
213texmf-dist/tex/generic/genmisc/epigram.tex
214texmf-dist/tex/generic/genmisc/fakebold.tex
215texmf-dist/tex/generic/genmisc/hep.tex
216texmf-dist/tex/generic/genmisc/hexdump.sty
217texmf-dist/tex/generic/genmisc/inscrutable.tex
218texmf-dist/tex/generic/genmisc/laps.tex
219texmf-dist/tex/generic/genmisc/letterspacing.tex
220texmf-dist/tex/generic/genmisc/longdiv.tex
221texmf-dist/tex/generic/genmisc/mandel.tex
222texmf-dist/tex/generic/genmisc/mathlig.tex
223texmf-dist/tex/generic/genmisc/nth.sty
224texmf-dist/tex/generic/genmisc/outerhbox.sty
225texmf-dist/tex/generic/genmisc/pagereference.tex
226texmf-dist/tex/generic/genmisc/quotation.tex
227texmf-dist/tex/generic/genmisc/ragged.sty
228texmf-dist/tex/generic/genmisc/random.tex
229texmf-dist/tex/generic/genmisc/ruler.tex
230texmf-dist/tex/generic/genmisc/selectpage.tex
231texmf-dist/tex/generic/genmisc/shadebox.tex
232texmf-dist/tex/generic/genmisc/swrule.sty
233texmf-dist/tex/generic/genmisc/time.sty
234texmf-dist/tex/generic/genmisc/underlin.tex
235texmf-dist/tex/generic/genmisc/undertilde.tex
236texmf-dist/tex/generic/genmisc/verbatim.tex
237texmf-dist/tex/generic/genmisc/weekday.sty
238texmf-dist/tex/generic/genmisc/wiggly.tex
239texmf-dist/tex/generic/genmisc/zip.tex
240texmf-dist/doc/generic/multido/Changes
241texmf-dist/doc/generic/multido/multido-test.tex
242texmf-dist/doc/generic/multido/multido.doc
243texmf-dist/doc/generic/multido/multido.pdf
244texmf-dist/tex/generic/multido/multido.tex
245texmf-dist/tex/latex/multido/multido.sty
246texmf-dist/doc/generic/tex-ps/cmyk-hax/README
247texmf-dist/doc/generic/tex-ps/cmyk-hax/cmyk-doc.pdf
248texmf-dist/doc/generic/tex-ps/cmyk-hax/fountain.eps
249texmf-dist/doc/generic/tex-ps/cmyk-hax/gdansk.eps
250texmf-dist/doc/generic/tex-ps/cmyk-hax/rules.tex
251texmf-dist/doc/generic/tex-ps/cmyk-hax/sam1-sep.bat
252texmf-dist/doc/generic/tex-ps/cmyk-hax/sample1.tex
253texmf-dist/doc/generic/tex-ps/cmyk-hax/sample2.tex
254texmf-dist/doc/generic/tex-ps/cmyk-hax/sample3.tex
255texmf-dist/doc/generic/tex-ps/cmyk-hax/sample4.tex
256texmf-dist/doc/generic/tex-ps/cmyk-hax/screen.eps
257texmf-dist/doc/generic/tex-ps/poligraf/README
258texmf-dist/doc/generic/tex-ps/poligraf/kol-cmyk.eps
259texmf-dist/doc/generic/tex-ps/poligraf/sample.tex
260texmf-dist/doc/generic/tex-ps/poligraf/samplelx.tex
261texmf-dist/dvips/tex-ps/crops.pro
262texmf-dist/dvips/tex-ps/mirr.hd
263texmf-dist/dvips/tex-ps/separate.pro
264texmf-dist/tex/generic/tex-ps/cmyk-hax.tex
265texmf-dist/tex/generic/tex-ps/epsfx.tex
266texmf-dist/tex/generic/tex-ps/poligraf.sty
267texmf-dist/tex/generic/tex-ps/trans.tex
268)
269
270%__mkdir_p ${PREF}/texmf-dist
271for i in "${manifest[@]}"; do
272    %__install -D %{texlive_src}/$i ${PREF}/$i
273done
274
275## info
276%__rm -f %{buildroot}%{_infodir}/dir
277%__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
278
279## man
280## man t1* files are provided by t1utils
281for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
282    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
283done
284
285## man some files are provided by psutils
286for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
287    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
288done
289
290## fix perl path
291for i in source/metapost/expressg/expressg.dtx \
292         doc/metapost/expressg/n2mpsprl.prl \
293         doc/latex/songbook/contrib/crd2sb/crd2sb; do
294    [ -f %{build_texmf}-dist/${i} ] && \
295        %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
296done
297
298## remove asymptote directries, which provides asymptote package
299find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
300# find %{buildroot} -name "Makefile" | xargs %__rm -f
301
302# ## remove xindy
303# find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
304
305# ## remove tex4ht
306# find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
307
308## remove arch dependent binaries
309%__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
310
311## remove unpackaging files
312find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
313find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
314
315## Files list
316find %{buildroot} -type f -or -type l | \
317    %__sed -e "s|%{buildroot}||g" > filelist.full
318
319find %{buildroot}%{texmf}-dist -type d | \
320    %__sed -e "s|^%{buildroot}|%dir |" \
321           -e "s|$|/|"             >> filelist.full
322
323## subpackages
324grep "/texmf-dist/doc/" filelist.full > filelist.doc
325cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
326%__mv -f filelist.tmp filelist.full
327
328%clean
329%__rm -rf %{buildroot}
330
331%post
332%{exec_texhash}
333
334exit 0
335
336
337%postun
338if [ "$1" = 0 ]; then
339    %{exec_texhash}
340
341fi
342
343exit 0
344
345%files -f filelist.full
346%defattr(-,root,root)
347
348%files -f filelist.doc doc
349%defattr(-,root,root)
350
351%changelog
352* Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
353- generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-genericrecommended
354- improved %%post
355
356* Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
357- generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-genericrecommended
358- removed arch dependent binaries (texlive-collection-latexextra)
359- fixed perl path
360- improved updmap process in %%post and %%postun
361
362* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
363- generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-genericrecommended
Note: See TracBrowser for help on using the repository browser.