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

Revision 1974, 10.2 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-langlithuanian
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: Lithuanian
28Summary(ja): TeX Live: Lithuanian
29Name: texlive-collection-langlithuanian
30Version: 2009
31Release: 2%{?_dist_release}
32License: 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 Lithuanian:
61Support for typesetting Lithuanian.
62
63This package contains the following CTAN packages:
64lithuanian: Lithuanian language support.
65hyphen-lithuanian:
66
67%description -l ja
68TeX Live ソフトウェアディストリビューションは、
69さまざまな Unix, Macintosh, Windows、および
70他のプラットホームに対して完全な TeX システムを提供します。
71多くの異なった言語を含む TeX ドキュメントの
72編集、組版、閲覧、印刷するためのプログラム、
73そして、TeX マクロやフォントライブラリの大きなコレクションを
74同梱しています。
75
76このディストリビューションは
77同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
78TeX に関するたくさんの一般的なドキュメントを含んでいます。
79
80このパッケージは以下のようなパッケージ集です。
81Lithuanian:
82Support for typesetting Lithuanian.
83
84このパッケージは以下の CTAN パッケージを含んでいます:
85lithuanian: Lithuanian language support.
86hyphen-lithuanian:
87
88%package doc
89Summary: TeX Live: Documentation files of %{name}
90Group: Applications/Publishing
91Requires: %{name} = %{version}-%{release}
92
93%description doc
94This package contains documentation files of %{name}.
95
96%prep
97
98%build
99
100%install
101[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
102
103PREF=%{buildroot}%{tex_destdir}
104
105manifest=(
106texmf-dist/doc/latex/lithuanian/COPYING
107texmf-dist/doc/latex/lithuanian/ChangeLog
108texmf-dist/doc/latex/lithuanian/Copyright
109texmf-dist/doc/latex/lithuanian/README.lithuanian
110texmf-dist/doc/latex/lithuanian/l7xenc.dfu
111texmf-dist/doc/latex/lithuanian/latin7lt.tex
112texmf-dist/doc/latex/lithuanian/latin7x.etx
113texmf-dist/doc/latex/lithuanian/latin7x.mtx
114texmf-dist/doc/latex/lithuanian/latin7x.pdf
115texmf-dist/doc/latex/lithuanian/makeLT.html
116texmf-dist/doc/latex/lithuanian/makelt.tex
117texmf-dist/doc/latex/lithuanian/makeltmap.tex
118texmf-dist/doc/latex/lithuanian/testlt-urw.tex
119texmf-dist/doc/latex/lithuanian/testlt.tex
120texmf-dist/fonts/enc/dvips/lithuanian/latin7x.enc
121texmf-dist/fonts/map/dvips/lithuanian/l7x-urwvn.map
122texmf-dist/fonts/tfm/public/lithuanian/l7x-uagd.tfm
123texmf-dist/fonts/tfm/public/lithuanian/l7x-uagdo.tfm
124texmf-dist/fonts/tfm/public/lithuanian/l7x-uagk.tfm
125texmf-dist/fonts/tfm/public/lithuanian/l7x-uagko.tfm
126texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkd.tfm
127texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkdi.tfm
128texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkl.tfm
129texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkli.tfm
130texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrb.tfm
131texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrbo.tfm
132texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrr.tfm
133texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrro.tfm
134texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvb.tfm
135texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvbc.tfm
136texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvbo.tfm
137texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvboc.tfm
138texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvr.tfm
139texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvrc.tfm
140texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvro.tfm
141texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvroc.tfm
142texmf-dist/fonts/tfm/public/lithuanian/l7x-uncb.tfm
143texmf-dist/fonts/tfm/public/lithuanian/l7x-uncbi.tfm
144texmf-dist/fonts/tfm/public/lithuanian/l7x-uncr.tfm
145texmf-dist/fonts/tfm/public/lithuanian/l7x-uncri.tfm
146texmf-dist/fonts/tfm/public/lithuanian/l7x-uplb.tfm
147texmf-dist/fonts/tfm/public/lithuanian/l7x-uplbi.tfm
148texmf-dist/fonts/tfm/public/lithuanian/l7x-uplr.tfm
149texmf-dist/fonts/tfm/public/lithuanian/l7x-uplri.tfm
150texmf-dist/fonts/tfm/public/lithuanian/l7x-utmb.tfm
151texmf-dist/fonts/tfm/public/lithuanian/l7x-utmbi.tfm
152texmf-dist/fonts/tfm/public/lithuanian/l7x-utmr.tfm
153texmf-dist/fonts/tfm/public/lithuanian/l7x-utmri.tfm
154texmf-dist/fonts/tfm/public/lithuanian/l7x-uzcmi.tfm
155texmf-dist/tex/latex/lithuanian/cp772.def
156texmf-dist/tex/latex/lithuanian/cp774.def
157texmf-dist/tex/latex/lithuanian/cp775.def
158texmf-dist/tex/latex/lithuanian/cpKBL.def
159texmf-dist/tex/latex/lithuanian/cpRIM.def
160texmf-dist/tex/latex/lithuanian/l7xenc.def
161texmf-dist/tex/latex/lithuanian/l7xenc.sty
162texmf-dist/tex/latex/lithuanian/l7xuag.fd
163texmf-dist/tex/latex/lithuanian/l7xubk.fd
164texmf-dist/tex/latex/lithuanian/l7xucr.fd
165texmf-dist/tex/latex/lithuanian/l7xuhv.fd
166texmf-dist/tex/latex/lithuanian/l7xunc.fd
167texmf-dist/tex/latex/lithuanian/l7xupl.fd
168texmf-dist/tex/latex/lithuanian/l7xutm.fd
169texmf-dist/tex/latex/lithuanian/l7xuzc.fd
170texmf-dist/tex/latex/lithuanian/latin7.def
171texmf-dist/tex/latex/lithuanian/lithuanian.ldf
172texmf-dist/tex/latex/lithuanian/lithuanian.sty
173)
174
175%__mkdir_p ${PREF}/texmf-dist
176for i in "${manifest[@]}"; do
177    %__install -D %{texlive_src}/$i ${PREF}/$i
178done
179
180## info
181%__rm -f %{buildroot}%{_infodir}/dir
182%__gzip -9nf %{buildroot}%{_infodir}/*info* ||:
183
184## man
185## man t1* files are provided by t1utils
186for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do
187    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
188done
189
190## man some files are provided by psutils
191for i in epsffit extractres fixdlsrps fixfmps fixmacps fixpsditps fixpspps fixscribeps fixtpps fixwfwps fixwpps fixwwps getafm includeres psbook psmerge psnup psresize psselect pstops; do
192    %__rm %{buildroot}%{_mandir}/man*/${i}.* ||:
193done
194
195## fix perl path
196for i in source/metapost/expressg/expressg.dtx          doc/metapost/expressg/n2mpsprl.prl          doc/latex/songbook/contrib/crd2sb/crd2sb; do
197    [ -f %{build_texmf}-dist/${i} ] &&         %__sed -i -e "s|^#!/usr/local/bin/perl|#!%{__perl}|" %{build_texmf}-dist/${i}
198done
199
200## remove asymptote directries, which provides asymptote package
201find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
202# find %{buildroot} -name "Makefile" | xargs %__rm -f
203
204# ## remove xindy
205# find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
206
207# ## remove tex4ht
208# find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
209
210## remove arch dependent binaries
211%__rm -f %{build_texmf}-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
212
213## remove unpackaging files
214find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
215find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
216
217## Files list
218find %{buildroot} -type f -or -type l | \
219    %__sed -e "s|%{buildroot}||g" > filelist.full
220
221find %{buildroot}%{texmf}-dist -type d | \
222    %__sed -e "s|^%{buildroot}|%dir |" \
223           -e "s|$|/|"             >> filelist.full
224
225## subpackages
226grep "/texmf-dist/doc/" filelist.full > filelist.doc
227cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
228%__mv -f filelist.tmp filelist.full
229
230%clean
231%__rm -rf %{buildroot}
232
233%post
234%{exec_texhash}
235
236[ -f %{texmf}/web2c/updmap.cfg ] || exit 0
237
238    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^#! Map l7x-urwvn.map" && \
239        echo -n "    " && \
240        echo -n "Running updmap: enable l7x-urwvn.map ... " && \
241        %{exec_updmap} --nomkmap --enable Map l7x-urwvn.map >/dev/null 2>&1 && \
242        echo "done."
243echo -n "    " && \
244    echo -n "Running updmap: recreate map files ... " && \
245    %{exec_updmap} >/dev/null 2>&1 && \
246    echo "done."
247
248echo -n "    "
249echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done."
250
251exit 0
252
253
254%postun
255if [ "$1" = 0 ]; then
256    %{exec_texhash}
257
258    [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
259
260    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^Map l7x-urwvn.map" && \
261        echo -n "    " && \
262        echo -n "Running updmap: disable l7x-urwvn.map ... " && \
263        %{exec_updmap} --nomkmap --disable l7x-urwvn.map >/dev/null 2>&1 && \
264        echo "done."
265echo -n "    " && \
266    echo -n "Running updmap: recreate map files ... " && \
267    %{exec_updmap} >/dev/null 2>&1 && \
268    echo "done."
269
270fi
271
272exit 0
273
274%files -f filelist.full
275%defattr(-,root,root)
276
277%files -f filelist.doc doc
278%defattr(-,root,root)
279
280%changelog
281* Fri Oct 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
282- generated by tlpdb2rpmspec 2009-2: tlpdb2rpmspec collection-langlithuanian
283- removed arch dependent binaries (texlive-collection-latexextra)
284- fixed perl path
285- improved updmap process in %%post and %%postun
286
287* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
288- generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langlithuanian
Note: See TracBrowser for help on using the repository browser.