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

Revision 1533, 9.3 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: Lithuanian
28Summary(ja): TeX Live: Lithuanian
29Name: texlive-collection-langlithuanian
30Version: 2009
31Release: 1%{?_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## remove asymptote directries, which provides asymptote package
196find %{buildroot} -regex ".*asymptote.*" | xargs %__rm -rf
197# find %{buildroot} -name "Makefile" | xargs %__rm -f
198
199# ## remove xindy
200# find %{buildroot} -regex ".*xindy.*" | xargs %__rm -rf
201
202# ## remove tex4ht
203# find %{buildroot} -regex ".*tex4ht.*" | xargs %__rm -rf
204
205## remove unpackaging files
206find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f
207find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f
208
209## Files list
210find %{buildroot} -type f -or -type l | \
211    %__sed -e "s|%{buildroot}||g" > filelist.full
212
213find %{buildroot}%{texmf}-dist -type d | \
214    %__sed -e "s|^%{buildroot}|%dir |" \
215           -e "s|$|/|"             >> filelist.full
216
217## subpackages
218grep "/texmf-dist/doc/" filelist.full > filelist.doc
219cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
220%__mv -f filelist.tmp filelist.full
221
222%clean
223%__rm -rf %{buildroot}
224
225%post
226%{exec_texhash}
227
228[ -f %{texmf}/web2c/updmap.cfg ] || exit 0
229
230    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^#! Map l7x-urwvn.map" && \
231        echo -n "    " && \
232        echo -n "Running updmap: enable l7x-urwvn.map ... " && \
233        %{exec_updmap} --enable Map l7x-urwvn.map >/dev/null 2>&1 && \
234        echo "done."
235
236echo -n "    "
237echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done."
238
239exit 0
240
241
242%postun
243if [ "$1" = 0 ]; then
244    %{exec_texhash}
245
246    [ -f %{texmf}/web2c/updmap.cfg ] || exit 0
247
248    %{exec_updmap} --listmaps 2>/dev/null | egrep -q "^Map l7x-urwvn.map" && \
249        echo -n "    " && \
250        echo -n "Running updmap: disable l7x-urwvn.map ... " && \
251        %{exec_updmap} --disable l7x-urwvn.map >/dev/null 2>&1 && \
252        echo "done."
253
254fi
255
256exit 0
257
258%files -f filelist.full
259%defattr(-,root,root)
260
261%files -f filelist.doc doc
262%defattr(-,root,root)
263
264%changelog
265* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
266- generated by tlpdb2rpmspec 2009-1: tlpdb2rpmspec collection-langlithuanian
Note: See TracBrowser for help on using the repository browser.