source: projects/specs/trunk/t/texlive-collection-langfrench/texlive-collection-langfrench-vl.spec @ 1974

Revision 1974, 10.7 KB checked in by munepi, 14 years ago (diff)

updated all texlive-collection packages: generated by tlpdb2rpmspec 2009-2; removed arch dependent binaries (for rpm-4.8.1); fixed perl path (for rpm-4.8.1); improved updmap process in %%post and %%postun

Line 
1## -*- coding: utf-8-unix -*-
2## NOTE: This spec file is generated by tlpdb2rpmspec 2009-2:
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: 2%{?_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          doc/metapost/expressg/n2mpsprl.prl          doc/latex/songbook/contrib/crd2sb/crd2sb; do
216    [ -f %{build_texmf}-dist/${i} ] &&         %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
217done
218
219## remove asymptote directries, which provides asymptote package
220find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
221# find %{buildroot} -name "Makefile" | xargs %__rm -f
222
223# ## remove xindy
224# find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
225
226# ## remove tex4ht
227# find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
228
229## remove arch dependent binaries
230%__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
231
232## remove unpackaging files
233find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
234find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
235
236## Files list
237find %{buildroot} -type f -or -type l | \
238    %__sed -e "s|%{buildroot}||g" > filelist.full
239
240find %{buildroot}%{texmf}-dist -type d | \
241    %__sed -e "s|^%{buildroot}|%dir |" \
242           -e "s|$|/|"             >> filelist.full
243
244## subpackages
245grep "/texmf-dist/doc/" filelist.full > filelist.doc
246cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
247%__mv -f filelist.tmp filelist.full
248
249%clean
250%__rm -rf %{buildroot}
251
252%post
253%{exec_texhash}
254
255[ -f %{texmf}/web2c/updmap.cfg ] || exit 0
256
257    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^#! Map tabvar.map" && \
258        echo -n "    " && \
259        echo -n "Running updmap: enable tabvar.map ... " && \
260        %{exec_updmap} --nomkmap --enable Map tabvar.map >/dev/null 2>&1 && \
261        echo "done."
262echo -n "    " && \
263    echo -n "Running updmap: recreate map files ... " && \
264    %{exec_updmap} >/dev/null 2>&1 && \
265    echo "done."
266
267echo -n "    "
268echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done."
269
270exit 0
271
272
273%postun
274if [ "$1" = 0 ]; then
275    %{exec_texhash}
276
277    [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
278
279    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^Map tabvar.map" && \
280        echo -n "    " && \
281        echo -n "Running updmap: disable tabvar.map ... " && \
282        %{exec_updmap} --nomkmap --disable tabvar.map >/dev/null 2>&1 && \
283        echo "done."
284echo -n "    " && \
285    echo -n "Running updmap: recreate map files ... " && \
286    %{exec_updmap} >/dev/null 2>&1 && \
287    echo "done."
288
289fi
290
291exit 0
292
293%files -f filelist.full
294%defattr(-,root,root)
295
296%files -f filelist.doc doc
297%defattr(-,root,root)
298
299%changelog
300* Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
301- generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-langfrench
302- removed arch dependent binaries (texlive-collection-latexextra)
303- fixed perl path
304- improved updmap process in %%post and %%postun
305
306* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
307- generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langfrench
Note: See TracBrowser for help on using the repository browser.