source: projects/specs/tags/6_0_REL/t/texlive-collection-genericextra/texlive-collection-genericextra-vl.spec @ 2505

Revision 2505, 17.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-genericextra
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: Extra generic packages
28Summary(ja): TeX Live: Extra generic packages
29Name: texlive-collection-genericextra
30Version: 2009
31Release: 3%{?_dist_release}
32License: Public Domain, Freely redistributable without restriction, No Info, LPPL, GPL+, Knuth
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 Extra generic packages:
61Extra packages that work with multiple formats, typically both
62TeX and LaTeX.
63
64This package contains the following CTAN packages:
65abbr: Simple macros supporting abreviations for Plain and LaTeX.
66abstyles: Adaptable BibTeX styles.
67barr: Diagram macros by Michael Barr.
68borceux: Diagram macros by Francois Borceux.
69c-pascal: Typeset Python, C and Pascal programs.
70colorsep: Color separation.
71dinat: Bibliography style for German texts.
72dirtree: Display trees in the style of windows explorer.
73eijkhout: Victor Eijkhout's packages.
74encxvlna: Insert nonbreakable spaces, using encTeX.
75fenixpar: One-shot changes to token registers such as everypar.
76fltpoint: Simple floating point arithmetic.
77insbox: A TeX macro for inserting pictures/boxes into paragraphs.
78mathdots: Commands to produce dots in math that respect font size.
79metatex: Incorporate MetaFont pictures in TeX source.
80mftoeps:
81midnight: A set of useful macro tools.
82multi:
83ofs: Macros for managing large font collections.
84pdf-trans: A set of macros for various transformations of TeX boxes.
85shade: Shade pieces of text.
86tabto-generic: "Tab" to a measured position in the line.
87vrb: Verbatim macros in plain TeX.
88vtex:
89xlop: Calculates and displays arithmetic operations.
90
91%description -l ja
92TeX Live ソフトウェアディストリビューションは、
93さまざまな Unix, Macintosh, Windows、および
94他のプラットホームに対して完全な TeX システムを提供します。
95多くの異なった言語を含む TeX ドキュメントの
96編集、組版、閲覧、印刷するためのプログラム、
97そして、TeX マクロやフォントライブラリの大きなコレクションを
98同梱しています。
99
100このディストリビューションは
101同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
102TeX に関するたくさんの一般的なドキュメントを含んでいます。
103
104このパッケージは以下のようなパッケージ集です。
105Extra generic packages:
106Extra packages that work with multiple formats, typically both
107TeX and LaTeX.
108
109このパッケージは以下の CTAN パッケージを含んでいます:
110abbr: Simple macros supporting abreviations for Plain and LaTeX.
111abstyles: Adaptable BibTeX styles.
112barr: Diagram macros by Michael Barr.
113borceux: Diagram macros by Francois Borceux.
114c-pascal: Typeset Python, C and Pascal programs.
115colorsep: Color separation.
116dinat: Bibliography style for German texts.
117dirtree: Display trees in the style of windows explorer.
118eijkhout: Victor Eijkhout's packages.
119encxvlna: Insert nonbreakable spaces, using encTeX.
120fenixpar: One-shot changes to token registers such as everypar.
121fltpoint: Simple floating point arithmetic.
122insbox: A TeX macro for inserting pictures/boxes into paragraphs.
123mathdots: Commands to produce dots in math that respect font size.
124metatex: Incorporate MetaFont pictures in TeX source.
125mftoeps:
126midnight: A set of useful macro tools.
127multi:
128ofs: Macros for managing large font collections.
129pdf-trans: A set of macros for various transformations of TeX boxes.
130shade: Shade pieces of text.
131tabto-generic: "Tab" to a measured position in the line.
132vrb: Verbatim macros in plain TeX.
133vtex:
134xlop: Calculates and displays arithmetic operations.
135
136%package doc
137Summary: TeX Live: Documentation files of %{name}
138Group: Applications/Publishing
139Requires: %{name} = %{version}-%{release}
140
141%description doc
142This package contains documentation files of %{name}.
143
144%prep
145
146%build
147
148%install
149[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
150
151PREF=%{buildroot}%{tex_destdir}
152
153manifest=(
154texmf-dist/doc/generic/abbr/README
155texmf-dist/tex/generic/abbr/abbr.tex
156texmf-dist/doc/bibtex/abstyles/README
157texmf-dist/doc/bibtex/abstyles/a4c.sty
158texmf-dist/doc/bibtex/abstyles/a4c.tex
159texmf-dist/doc/bibtex/abstyles/abstdok.pdf
160texmf-dist/doc/bibtex/abstyles/abstdok.tex
161texmf-dist/doc/bibtex/abstyles/apreambl.doc
162texmf-dist/doc/bibtex/abstyles/btxabst.doc
163texmf-dist/doc/bibtex/abstyles/docmac.doc
164texmf-dist/doc/bibtex/abstyles/docmac.tex
165texmf-dist/bibtex/bib/abstyles/acompat.bib
166texmf-dist/bibtex/bib/abstyles/jourabbr.bib
167texmf-dist/bibtex/bib/abstyles/jourfull.bib
168texmf-dist/bibtex/bst/abstyles/aabbrv.bst
169texmf-dist/bibtex/bst/abstyles/aalpha.bst
170texmf-dist/bibtex/bst/abstyles/anotit.bst
171texmf-dist/bibtex/bst/abstyles/aplain.bst
172texmf-dist/bibtex/bst/abstyles/aunsnot.bst
173texmf-dist/bibtex/bst/abstyles/aunsrt.bst
174texmf-dist/tex/generic/abstyles/apreambl.tex
175texmf-dist/doc/generic/barr/diaxydoc.pdf
176texmf-dist/doc/generic/barr/diaxydoc.tex
177texmf-dist/tex/generic/barr/diagxy.tex
178texmf-dist/doc/generic/borceux/Diagram_Mode_d_Emploi
179texmf-dist/doc/generic/borceux/Diagram_Read_Me
180texmf-dist/source/generic/borceux/compatibility/OldDiagram
181texmf-dist/source/generic/borceux/compatibility/OldMaxiDiagram
182texmf-dist/source/generic/borceux/compatibility/OldMicroDiagram
183texmf-dist/source/generic/borceux/compatibility/OldMiniDiagram
184texmf-dist/source/generic/borceux/compatibility/OldMultipleArrows
185texmf-dist/tex/generic/borceux/Diagram
186texmf-dist/tex/generic/borceux/MaxiDiagram
187texmf-dist/tex/generic/borceux/MicroDiagram
188texmf-dist/tex/generic/borceux/MiniDiagram
189texmf-dist/tex/generic/borceux/MultipleArrows
190texmf-dist/doc/generic/c-pascal/demo1.tex
191texmf-dist/doc/generic/c-pascal/demo2.tex
192texmf-dist/doc/generic/c-pascal/prog/guess.pas
193texmf-dist/doc/generic/c-pascal/prog/sun.c
194texmf-dist/doc/generic/c-pascal/readme.eng
195texmf-dist/doc/generic/c-pascal/readme.pol
196texmf-dist/tex/generic/c-pascal/cap.tex
197texmf-dist/tex/generic/c-pascal/cap_c.tex
198texmf-dist/tex/generic/c-pascal/cap_comm.tex
199texmf-dist/tex/generic/c-pascal/cap_pas.tex
200texmf-dist/dvips/colorsep/colorsep.pro
201texmf-dist/doc/bibtex/dinat/dinat-index.html
202texmf-dist/doc/bibtex/dinat/history.html
203texmf-dist/bibtex/bst/dinat/dinat.bst
204texmf-dist/doc/generic/dirtree/README
205texmf-dist/doc/generic/dirtree/dirtree.pdf
206texmf-dist/source/generic/dirtree/dirtree.dtx
207texmf-dist/source/generic/dirtree/dirtree.ins
208texmf-dist/tex/generic/dirtree/dirtree.sty
209texmf-dist/tex/generic/dirtree/dirtree.tex
210texmf-dist/tex/generic/eijkhout/CD_labeler.tex
211texmf-dist/tex/generic/eijkhout/CD_labeler_test.tex
212texmf-dist/tex/generic/eijkhout/DB_process.tex
213texmf-dist/tex/generic/eijkhout/repeat.tex
214texmf-dist/doc/generic/encxvlna/License.txt
215texmf-dist/doc/generic/encxvlna/README
216texmf-dist/doc/generic/encxvlna/encxvlna.pdf
217texmf-dist/doc/generic/encxvlna/encxvlna.tex
218texmf-dist/doc/generic/encxvlna/vlna-inc.tex
219texmf-dist/tex/latex/encxvlna/encxvlna.sty
220texmf-dist/tex/plain/encxvlna/encxvlna.tex
221texmf-dist/doc/generic/fenixpar/README
222texmf-dist/tex/generic/fenixpar/fenixpar.sty
223texmf-dist/tex/generic/fenixpar/fenixtok.sty
224texmf-dist/doc/generic/fltpoint/README
225texmf-dist/doc/generic/fltpoint/fltpoint.pdf
226texmf-dist/source/generic/fltpoint/fltpoint.dtx
227texmf-dist/source/generic/fltpoint/fltpoint.ins
228texmf-dist/tex/generic/fltpoint/deccomma.sty
229texmf-dist/tex/generic/fltpoint/fltpoint.sty
230texmf-dist/tex/generic/fltpoint/fltpoint.tex
231texmf-dist/doc/generic/insbox/demo.dvi
232texmf-dist/doc/generic/insbox/demo.tex
233texmf-dist/doc/generic/insbox/pic1.eps
234texmf-dist/doc/generic/insbox/pic2.eps
235texmf-dist/tex/generic/insbox/insbox.tex
236texmf-dist/doc/generic/mathdots/README
237texmf-dist/doc/generic/mathdots/mathdots.pdf
238texmf-dist/doc/generic/mathdots/mdtest.tex
239texmf-dist/source/generic/mathdots/mathdots.dtx
240texmf-dist/source/generic/mathdots/mathdots.ins
241texmf-dist/tex/generic/mathdots/mathdots.sty
242texmf-dist/tex/generic/mathdots/mathdots.tex
243texmf-dist/doc/plain/metatex/README
244texmf-dist/doc/plain/metatex/gpl.txt
245texmf-dist/doc/plain/metatex/mtmp2pdf.tex
246texmf-dist/doc/plain/metatex/mtpaper.pdf
247texmf-dist/doc/plain/metatex/mtpaper/delay.mf
248texmf-dist/doc/plain/metatex/mtpaper/diagram.tex
249texmf-dist/doc/plain/metatex/mtpaper/frame.tex
250texmf-dist/doc/plain/metatex/mtpaper/mtpaper.tex
251texmf-dist/doc/plain/metatex/mtpaper/shadow.tex
252texmf-dist/tex/plain/metatex/metatex.tex
253texmf-dist/source/metafont/mftoeps/0mftoeps.doc
254texmf-dist/source/metafont/mftoeps/m2esamp/0m2esamp.doc
255texmf-dist/source/metafont/mftoeps/m2esamp/clipcir.mf
256texmf-dist/source/metafont/mftoeps/m2esamp/clipsqu.mf
257texmf-dist/source/metafont/mftoeps/m2esamp/holeclip.mf
258texmf-dist/source/metafont/mftoeps/m2esamp/holeclip.tex
259texmf-dist/source/metafont/mftoeps/m2esamp/holefill.mf
260texmf-dist/source/metafont/mftoeps/m2esamp/polygons.mf
261texmf-dist/source/metafont/mftoeps/m2esamp/rectan.mf
262texmf-dist/source/metafont/mftoeps/m2esamp/rectan_.bat
263texmf-dist/source/metafont/mftoeps/m2esamp/sample1a.mf
264texmf-dist/source/metafont/mftoeps/m2esamp/sample1b.mf
265texmf-dist/source/metafont/mftoeps/m2esamp/sample2a.mf
266texmf-dist/source/metafont/mftoeps/m2esamp/sample2b.mf
267texmf-dist/source/metafont/mftoeps/m2esamp/sample2c.mf
268texmf-dist/source/metafont/mftoeps/m2esamp/sample2d.mf
269texmf-dist/source/metafont/mftoeps/m2esamp/sample2e.mf
270texmf-dist/source/metafont/mftoeps/m2esamp/sample3.mf
271texmf-dist/source/metafont/mftoeps/m2esamp/sample4.mf
272texmf-dist/source/metafont/mftoeps/m2esamp/sample5.mf
273texmf-dist/source/metafont/mftoeps/m2esamp/stereo.mf
274texmf-dist/metafont/mftoeps/mftoeps.mf
275texmf-dist/doc/generic/midnight/README
276texmf-dist/doc/generic/midnight/border.doc
277texmf-dist/doc/generic/midnight/dolines.doc
278texmf-dist/doc/generic/midnight/gloss.doc
279texmf-dist/doc/generic/midnight/labels.doc
280texmf-dist/doc/generic/midnight/loop.doc
281texmf-dist/doc/generic/midnight/midnight.pdf
282texmf-dist/doc/generic/midnight/quire.doc
283texmf-dist/doc/generic/midnight/styledef.doc
284texmf-dist/tex/generic/midnight/border.tex
285texmf-dist/tex/generic/midnight/dolines.tex
286texmf-dist/tex/generic/midnight/gloss.tex
287texmf-dist/tex/generic/midnight/labels.tex
288texmf-dist/tex/generic/midnight/loop.tex
289texmf-dist/tex/generic/midnight/quire.tex
290texmf-dist/tex/generic/midnight/styledef.tex
291texmf-dist/dvips/multi/2up.pro
292texmf-dist/dvips/multi/4up.pro
293texmf-dist/dvips/multi/multi.pro
294texmf-dist/doc/generic/ofs/changes.txt
295texmf-dist/doc/generic/ofs/eurotex2003-ofs.pdf
296texmf-dist/doc/generic/ofs/eurotex2003-ofs.tex
297texmf-dist/doc/generic/ofs/ofs-slt.pdf
298texmf-dist/doc/generic/ofs/ofsdoc-e.pdf
299texmf-dist/doc/generic/ofs/ofsdoc-e.tex
300texmf-dist/doc/generic/ofs/ofsdoc.pdf
301texmf-dist/doc/generic/ofs/ofsdoc.tex
302texmf-dist/doc/generic/ofs/ofsmtdef.tex
303texmf-dist/doc/generic/ofs/ofstest.tex
304texmf-dist/doc/generic/ofs/readme.ofs
305texmf-dist/tex/generic/ofs/a117.tex
306texmf-dist/tex/generic/ofs/a35.sty
307texmf-dist/tex/generic/ofs/a35.tex
308texmf-dist/tex/generic/ofs/allfonts.sty
309texmf-dist/tex/generic/ofs/allfonts.tex
310texmf-dist/tex/generic/ofs/amsfn.tex
311texmf-dist/tex/generic/ofs/mtfn.tex
312texmf-dist/tex/generic/ofs/ofs-6a.tex
313texmf-dist/tex/generic/ofs/ofs-6c.tex
314texmf-dist/tex/generic/ofs/ofs-6k.tex
315texmf-dist/tex/generic/ofs/ofs-6s.tex
316texmf-dist/tex/generic/ofs/ofs-6t.tex
317texmf-dist/tex/generic/ofs/ofs-6x.tex
318texmf-dist/tex/generic/ofs/ofs-6y.tex
319texmf-dist/tex/generic/ofs/ofs-8c.tex
320texmf-dist/tex/generic/ofs/ofs-8t.tex
321texmf-dist/tex/generic/ofs/ofs-8x.tex
322texmf-dist/tex/generic/ofs/ofs-8z.tex
323texmf-dist/tex/generic/ofs/ofs-ams.tex
324texmf-dist/tex/generic/ofs/ofs-cm.tex
325texmf-dist/tex/generic/ofs/ofs-mt.tex
326texmf-dist/tex/generic/ofs/ofs-ps.tex
327texmf-dist/tex/generic/ofs/ofs-px.tex
328texmf-dist/tex/generic/ofs/ofs-slt.tex
329texmf-dist/tex/generic/ofs/ofs-tx.tex
330texmf-dist/tex/generic/ofs/ofs.sty
331texmf-dist/tex/generic/ofs/ofs.tex
332texmf-dist/tex/generic/ofs/ofsdef.tex
333texmf-dist/tex/generic/ofs/pantyk.tex
334texmf-dist/tex/generic/ofs/txfn.tex
335texmf-dist/doc/generic/pdf-trans/example.pdf
336texmf-dist/doc/generic/pdf-trans/example.tex
337texmf-dist/tex/generic/pdf-trans/pdf-trans.tex
338texmf-dist/doc/generic/shade/README
339texmf-dist/doc/generic/shade/description.pdf
340texmf-dist/doc/generic/shade/description.tex
341texmf-dist/fonts/source/public/shade/shade.mf
342texmf-dist/tex/generic/shade/shade.tex
343texmf-dist/tex/generic/tabto-generic/tabto.tex
344texmf-dist/doc/generic/vrb/readme
345texmf-dist/tex/generic/vrb/vrb.tex
346texmf-dist/fonts/map/vtex/bera/bera.ali
347texmf-dist/fonts/map/vtex/dictsym/dictsym.ali
348texmf-dist/fonts/map/vtex/skaknew/SkakNew.ali
349texmf-dist/vtex/config/lucidabr-k.ali
350texmf-dist/vtex/config/lucidabr.ali
351texmf-dist/vtex/config/lumath-k.ali
352texmf-dist/vtex/config/lumath.ali
353texmf-dist/vtex/config/uaq.ali
354texmf-dist/vtex/config/ugq.ali
355texmf-dist/doc/generic/xlop/LISEZ.MOI
356texmf-dist/doc/generic/xlop/README
357texmf-dist/doc/generic/xlop/XLOP03
358texmf-dist/doc/generic/xlop/fr-user.pdf
359texmf-dist/doc/generic/xlop/fr-user.tex
360texmf-dist/doc/generic/xlop/history.txt
361texmf-dist/source/generic/xlop/manual.sty
362texmf-dist/tex/generic/xlop/xlop.sty
363texmf-dist/tex/generic/xlop/xlop.tex
364)
365
366%__mkdir_p ${PREF}/texmf-dist
367for i in "${manifest[@]}"; do
368    %__install -D %{texlive_src}/$i ${PREF}/$i
369done
370
371## info
372%__rm -f %{buildroot}%{_infodir}/dir
373%__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
374
375## man
376## man t1* files are provided by t1utils
377for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
378    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
379done
380
381## man some files are provided by psutils
382for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
383    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
384done
385
386## fix perl path
387for i in source/metapost/expressg/expressg.dtx \
388         doc/metapost/expressg/n2mpsprl.prl \
389         doc/latex/songbook/contrib/crd2sb/crd2sb; do
390    [ -f %{build_texmf}-dist/${i} ] && \
391        %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
392done
393
394## remove asymptote directries, which provides asymptote package
395find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
396# find %{buildroot} -name "Makefile" | xargs %__rm -f
397
398# ## remove xindy
399# find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
400
401# ## remove tex4ht
402# find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
403
404## remove arch dependent binaries
405%__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
406
407## remove unpackaging files
408find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
409find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
410
411## Files list
412find %{buildroot} -type f -or -type l | \
413    %__sed -e "s|%{buildroot}||g" > filelist.full
414
415find %{buildroot}%{texmf}-dist -type d | \
416    %__sed -e "s|^%{buildroot}|%dir |" \
417           -e "s|$|/|"             >> filelist.full
418
419## subpackages
420grep "/texmf-dist/doc/" filelist.full > filelist.doc
421cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
422%__mv -f filelist.tmp filelist.full
423
424%clean
425%__rm -rf %{buildroot}
426
427%post
428%{exec_texhash}
429
430exit 0
431
432
433%postun
434if [ "$1" = 0 ]; then
435    %{exec_texhash}
436
437fi
438
439exit 0
440
441%files -f filelist.full
442%defattr(-,root,root)
443
444%files -f filelist.doc doc
445%defattr(-,root,root)
446
447%changelog
448* Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
449- generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-genericextra
450- improved %%post
451
452* Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
453- generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-genericextra
454- removed arch dependent binaries (texlive-collection-latexextra)
455- fixed perl path
456- improved updmap process in %%post and %%postun
457
458* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
459- generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-genericextra
Note: See TracBrowser for help on using the repository browser.