source: projects/specs/branches/6/t/texlive-collection-langlithuanian/texlive-collection-langlithuanian-vl.spec @ 2505

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