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

Revision 1533, 9.8 KB checked in by munepi, 14 years ago (diff)

NEW texlive and its related packages: replacement of teTeX

Line 
1## -*- coding: utf-8-unix -*-
2## NOTE: This spec file is generated by tlpdb2rpmspec.sh 2009-1:
3## tlpdb2rpmspec.sh collection-basic
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: 1%{?_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## remove asymptote directries, which provides asymptote package
215find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
216# find %{buildroot} -name "Makefile" | xargs %__rm -f
217
218# ## remove xindy
219# find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
220
221# ## remove tex4ht
222# find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
223
224## remove unpackaging files
225find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
226find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
227
228## Files list
229find %{buildroot} -type f -or -type l | \
230    %__sed -e "s|%{buildroot}||g" > filelist.full
231
232find %{buildroot}%{texmf}-dist -type d | \
233    %__sed -e "s|^%{buildroot}|%dir |" \
234           -e "s|$|/|"             >> filelist.full
235
236## subpackages
237grep "/texmf-dist/doc/" filelist.full > filelist.doc
238cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
239%__mv -f filelist.tmp filelist.full
240
241%clean
242%__rm -rf %{buildroot}
243
244%post
245%{exec_texhash}
246
247[ -f %{texmf}/web2c/updmap.cfg ] || exit 0
248
249    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^#! Map tabvar.map" && \
250        echo -n "    " && \
251        echo -n "Running updmap: enable tabvar.map ... " && \
252        %{exec_updmap} --enable Map tabvar.map >/dev/null 2>&1 && \
253        echo "done."
254
255echo -n "    "
256echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done."
257
258exit 0
259
260
261%postun
262if [ "$1" = 0 ]; then
263    %{exec_texhash}
264
265    [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
266
267    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^Map tabvar.map" && \
268        echo -n "    " && \
269        echo -n "Running updmap: disable tabvar.map ... " && \
270        %{exec_updmap} --disable tabvar.map >/dev/null 2>&1 && \
271        echo "done."
272
273fi
274
275exit 0
276
277%files -f filelist.full
278%defattr(-,root,root)
279
280%files -f filelist.doc doc
281%defattr(-,root,root)
282
283%changelog
284* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
285- generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langfrench
Note: See TracBrowser for help on using the repository browser.