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

Revision 2505, 11.1 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-langfrench
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: French
28Summary(ja): TeX Live: French
29Name: texlive-collection-langfrench
30Version: 2009
31Release: 3%{?_dist_release}
32License: LPPL, Public Domain, GPL+, Freely redistributable without restriction
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 French:
61Support for typesetting French.
62
63This package contains the following CTAN packages:
64aeguill: Add several kinds of guillemets to the ae fonts.
65bib-fr: French translation of classical BibTeX styles
66frenchle: French macros, usable stand-alone or with Babel.
67frletter: Typeset letters in the French style.
68mafr: Mathematics in accord with French usage.
69tabvar: Typesetting tables showing variations of functions.
70tdsfrmath: Macros for French teachers of mathematics.
71variations: Typeset tables of variations of functions.
72hyphen-basque: Hyphenation for Basque.
73hyphen-french:
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このパッケージは以下のようなパッケージ集です。
89French:
90Support for typesetting French.
91
92このパッケージは以下の CTAN パッケージを含んでいます:
93aeguill: Add several kinds of guillemets to the ae fonts.
94bib-fr: French translation of classical BibTeX styles
95frenchle: French macros, usable stand-alone or with Babel.
96frletter: Typeset letters in the French style.
97mafr: Mathematics in accord with French usage.
98tabvar: Typesetting tables showing variations of functions.
99tdsfrmath: Macros for French teachers of mathematics.
100variations: Typeset tables of variations of functions.
101hyphen-basque: Hyphenation for Basque.
102hyphen-french:
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
113
114%build
115
116%install
117[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
118
119PREF=%{buildroot}%{tex_destdir}
120
121manifest=(
122texmf-dist/doc/latex/aeguill/README
123texmf-dist/doc/latex/aeguill/guil-test1.pdf
124texmf-dist/doc/latex/aeguill/guil-test1.tex
125texmf-dist/doc/latex/aeguill/guil-test2.pdf
126texmf-dist/doc/latex/aeguill/guil-test2.tex
127texmf-dist/doc/latex/aeguill/license.txt
128texmf-dist/tex/latex/aeguill/aeguill.sty
129texmf-dist/doc/bibtex/bib-fr/CHANGELOG
130texmf-dist/doc/bibtex/bib-fr/README
131texmf-dist/bibtex/bst/bib-fr/abbrv-fr.bst
132texmf-dist/bibtex/bst/bib-fr/abbrvnat-fr.bst
133texmf-dist/bibtex/bst/bib-fr/alpha-fr.bst
134texmf-dist/bibtex/bst/bib-fr/apalike-fr.bst
135texmf-dist/bibtex/bst/bib-fr/ieeetr-fr.bst
136texmf-dist/bibtex/bst/bib-fr/plain-fr.bst
137texmf-dist/bibtex/bst/bib-fr/plainnat-fr.bst
138texmf-dist/bibtex/bst/bib-fr/siam-fr.bst
139texmf-dist/bibtex/bst/bib-fr/unsrt-fr.bst
140texmf-dist/bibtex/bst/bib-fr/unsrtnat-fr.bst
141texmf-dist/doc/latex/frenchle/FAQ.pdf
142texmf-dist/doc/latex/frenchle/README.le
143texmf-dist/doc/latex/frenchle/frenchle.pdf
144texmf-dist/tex/latex/frenchle/babelfr.sty
145texmf-dist/tex/latex/frenchle/french.ldf
146texmf-dist/tex/latex/frenchle/frenchle.cfg
147texmf-dist/tex/latex/frenchle/frenchle.ldf
148texmf-dist/tex/latex/frenchle/frenchle.sty
149texmf-dist/doc/latex/frletter/README
150texmf-dist/tex/latex/frletter/frletter.cls
151texmf-dist/doc/latex/mafr/ALIRE
152texmf-dist/doc/latex/mafr/COPYING
153texmf-dist/doc/latex/mafr/README
154texmf-dist/doc/latex/mafr/docmafr.pdf
155texmf-dist/doc/latex/mafr/docmafr.tex
156texmf-dist/doc/latex/mafr/triangle.eps
157texmf-dist/tex/latex/mafr/cours.cls
158texmf-dist/tex/latex/mafr/fiche.cls
159texmf-dist/tex/latex/mafr/mafr.sty
160texmf-dist/doc/latex/tabvar/README
161texmf-dist/doc/latex/tabvar/demo.pdf
162texmf-dist/doc/latex/tabvar/demo.tex
163texmf-dist/doc/latex/tabvar/tabvar.pdf
164texmf-dist/source/latex/tabvar/tabvar.dtx
165texmf-dist/source/latex/tabvar/tabvar.ins
166texmf-dist/fonts/afm/public/tabvar/tabvar.afm
167texmf-dist/fonts/map/dvips/tabvar/tabvar.map
168texmf-dist/fonts/tfm/public/tabvar/tabvar.tfm
169texmf-dist/fonts/type1/public/tabvar/tabvar.pfb
170texmf-dist/metapost/tabvar/tabvar.mp
171texmf-dist/tex/latex/tabvar/tabvar.1
172texmf-dist/tex/latex/tabvar/tabvar.2
173texmf-dist/tex/latex/tabvar/tabvar.3
174texmf-dist/tex/latex/tabvar/tabvar.cfg
175texmf-dist/tex/latex/tabvar/tabvar.sty
176texmf-dist/doc/latex/tdsfrmath/LISEZMOI
177texmf-dist/doc/latex/tdsfrmath/README
178texmf-dist/doc/latex/tdsfrmath/tdsfrmath.pdf
179texmf-dist/source/latex/tdsfrmath/Makefile
180texmf-dist/source/latex/tdsfrmath/tdsfrmath.dtx
181texmf-dist/source/latex/tdsfrmath/tdsfrmath.ins
182texmf-dist/tex/latex/tdsfrmath/suite.sto
183texmf-dist/tex/latex/tdsfrmath/taupe.sto
184texmf-dist/tex/latex/tdsfrmath/tdsfrmath.sty
185texmf-dist/doc/generic/variations/ALIRE
186texmf-dist/doc/generic/variations/COPYING
187texmf-dist/doc/generic/variations/README
188texmf-dist/doc/generic/variations/docvariations.pdf
189texmf-dist/doc/generic/variations/docvariations.tex
190texmf-dist/tex/generic/variations/variations.sty
191texmf-dist/tex/generic/variations/variations.tex
192)
193
194%__mkdir_p ${PREF}/texmf-dist
195for i in "${manifest[@]}"; do
196    %__install -D %{texlive_src}/$i ${PREF}/$i
197done
198
199## info
200%__rm -f %{buildroot}%{_infodir}/dir
201%__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
202
203## man
204## man t1* files are provided by t1utils
205for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
206    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
207done
208
209## man some files are provided by psutils
210for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
211    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
212done
213
214## fix perl path
215for i in source/metapost/expressg/expressg.dtx \
216         doc/metapost/expressg/n2mpsprl.prl \
217         doc/latex/songbook/contrib/crd2sb/crd2sb; do
218    [ -f %{build_texmf}-dist/${i} ] && \
219        %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
220done
221
222## remove asymptote directries, which provides asymptote package
223find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
224# find %{buildroot} -name "Makefile" | xargs %__rm -f
225
226# ## remove xindy
227# find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
228
229# ## remove tex4ht
230# find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
231
232## remove arch dependent binaries
233%__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
234
235## remove unpackaging files
236find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
237find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
238
239## Files list
240find %{buildroot} -type f -or -type l | \
241    %__sed -e "s|%{buildroot}||g" > filelist.full
242
243find %{buildroot}%{texmf}-dist -type d | \
244    %__sed -e "s|^%{buildroot}|%dir |" \
245           -e "s|$|/|"             >> filelist.full
246
247## subpackages
248grep "/texmf-dist/doc/" filelist.full > filelist.doc
249cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
250%__mv -f filelist.tmp filelist.full
251
252%clean
253%__rm -rf %{buildroot}
254
255%post
256%{exec_texhash}
257
258[ -f %{texmf}/web2c/updmap.cfg ] || exit 0
259
260updmap_lock=%{texmf}/updmap.lock
261%{exec_updmap} --listmaps 2>/dev/null | egrep -q "^#! Map tabvar.map" && \
262    echo -n "    " && \
263    echo -n "Running updmap: enable tabvar.map ... " && \
264    %{exec_updmap} --nomkmap --enable Map tabvar.map >/dev/null 2>&1 && \
265    echo "done." && \
266    touch ${updmap_lock}
267
268rpm -q --quiet texlive-common || exit 0
269
270[ -f ${updmap_lock} ] && \
271    echo -n "    " && \
272    echo -n "Running updmap: recreate map files ... " && \
273    %{exec_updmap} >/dev/null 2>&1 && \
274    echo "done." && \
275    rm -f ${updmap_lock}
276
277rpm -q --quiet texlive-common || exit 0
278
279echo -n "    "
280echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done."
281
282exit 0
283
284
285%postun
286if [ "$1" = 0 ]; then
287    %{exec_texhash}
288
289    [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
290
291    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^Map tabvar.map" && \
292        echo -n "    " && \
293        echo -n "Running updmap: disable tabvar.map ... " && \
294        %{exec_updmap} --nomkmap --disable tabvar.map >/dev/null 2>&1 && \
295        echo "done."
296    echo -n "    " && \
297        echo -n "Running updmap: recreate map files ... " && \
298        %{exec_updmap} >/dev/null 2>&1 && \
299        echo "done."
300
301fi
302
303exit 0
304
305%files -f filelist.full
306%defattr(-,root,root)
307
308%files -f filelist.doc doc
309%defattr(-,root,root)
310
311%changelog
312* Fri Jan 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-3
313- generated by tlpdb2rpmspec 2009-3: tlpdb2rpmspec collection-langfrench
314- improved %%post
315
316* Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
317- generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-langfrench
318- removed arch dependent binaries (texlive-collection-latexextra)
319- fixed perl path
320- improved updmap process in %%post and %%postun
321
322* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
323- generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langfrench
Note: See TracBrowser for help on using the repository browser.