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 | |
---|
25 | Autoreq: 0 |
---|
26 | |
---|
27 | Summary: TeX Live: Lithuanian |
---|
28 | Summary(ja): TeX Live: Lithuanian |
---|
29 | Name: texlive-collection-langlithuanian |
---|
30 | Version: 2009 |
---|
31 | Release: 3%{?_dist_release} |
---|
32 | License: LPPL |
---|
33 | Group: Applications/Publishing |
---|
34 | URL:http://www.tug.org/texlive/ |
---|
35 | |
---|
36 | Requires: texlive = %{version} |
---|
37 | Requires: texlive-collection-basic = %{version} |
---|
38 | |
---|
39 | Requires(post): texlive = %{version} |
---|
40 | Requires(postun): texlive = %{version} |
---|
41 | BuildRequires: texlive-sources = %{version} |
---|
42 | |
---|
43 | BuildArch: noarch |
---|
44 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
45 | |
---|
46 | Vendor: Project Vine |
---|
47 | Distribution: Vine Linux |
---|
48 | Packager: munepi |
---|
49 | |
---|
50 | %description |
---|
51 | The TeX Live software distribution offers a complete TeX system for a |
---|
52 | variety of Unix, Macintosh, Windows and other platforms. It |
---|
53 | encompasses programs for editing, typesetting, previewing and printing |
---|
54 | of TeX documents in many different languages, and a large collection |
---|
55 | of TeX macros and font libraries. |
---|
56 | |
---|
57 | The distribution includes extensive general documentation about TeX, |
---|
58 | as well as the documentation for the included software packages. |
---|
59 | |
---|
60 | This package is a collection of Lithuanian: |
---|
61 | Support for typesetting Lithuanian. |
---|
62 | |
---|
63 | This package contains the following CTAN packages: |
---|
64 | lithuanian: Lithuanian language support. |
---|
65 | hyphen-lithuanian: |
---|
66 | |
---|
67 | %description -l ja |
---|
68 | TeX Live ソフトウェアディストリビューションは、 |
---|
69 | さまざまな Unix, Macintosh, Windows、および |
---|
70 | 他のプラットホームに対して完全な TeX システムを提供します。 |
---|
71 | 多くの異なった言語を含む TeX ドキュメントの |
---|
72 | 編集、組版、閲覧、印刷するためのプログラム、 |
---|
73 | そして、TeX マクロやフォントライブラリの大きなコレクションを |
---|
74 | 同梱しています。 |
---|
75 | |
---|
76 | このディストリビューションは |
---|
77 | 同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、 |
---|
78 | TeX に関するたくさんの一般的なドキュメントを含んでいます。 |
---|
79 | |
---|
80 | このパッケージは以下のようなパッケージ集です。 |
---|
81 | Lithuanian: |
---|
82 | Support for typesetting Lithuanian. |
---|
83 | |
---|
84 | このパッケージは以下の CTAN パッケージを含んでいます: |
---|
85 | lithuanian: Lithuanian language support. |
---|
86 | hyphen-lithuanian: |
---|
87 | |
---|
88 | %package doc |
---|
89 | Summary: TeX Live: Documentation files of %{name} |
---|
90 | Group: Applications/Publishing |
---|
91 | Requires: %{name} = %{version}-%{release} |
---|
92 | |
---|
93 | %description doc |
---|
94 | This package contains documentation files of %{name}. |
---|
95 | |
---|
96 | %prep |
---|
97 | |
---|
98 | %build |
---|
99 | |
---|
100 | %install |
---|
101 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot} |
---|
102 | |
---|
103 | PREF=%{buildroot}%{tex_destdir} |
---|
104 | |
---|
105 | manifest=( |
---|
106 | texmf-dist/doc/latex/lithuanian/COPYING |
---|
107 | texmf-dist/doc/latex/lithuanian/ChangeLog |
---|
108 | texmf-dist/doc/latex/lithuanian/Copyright |
---|
109 | texmf-dist/doc/latex/lithuanian/README.lithuanian |
---|
110 | texmf-dist/doc/latex/lithuanian/l7xenc.dfu |
---|
111 | texmf-dist/doc/latex/lithuanian/latin7lt.tex |
---|
112 | texmf-dist/doc/latex/lithuanian/latin7x.etx |
---|
113 | texmf-dist/doc/latex/lithuanian/latin7x.mtx |
---|
114 | texmf-dist/doc/latex/lithuanian/latin7x.pdf |
---|
115 | texmf-dist/doc/latex/lithuanian/makeLT.html |
---|
116 | texmf-dist/doc/latex/lithuanian/makelt.tex |
---|
117 | texmf-dist/doc/latex/lithuanian/makeltmap.tex |
---|
118 | texmf-dist/doc/latex/lithuanian/testlt-urw.tex |
---|
119 | texmf-dist/doc/latex/lithuanian/testlt.tex |
---|
120 | texmf-dist/fonts/enc/dvips/lithuanian/latin7x.enc |
---|
121 | texmf-dist/fonts/map/dvips/lithuanian/l7x-urwvn.map |
---|
122 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uagd.tfm |
---|
123 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uagdo.tfm |
---|
124 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uagk.tfm |
---|
125 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uagko.tfm |
---|
126 | texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkd.tfm |
---|
127 | texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkdi.tfm |
---|
128 | texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkl.tfm |
---|
129 | texmf-dist/fonts/tfm/public/lithuanian/l7x-ubkli.tfm |
---|
130 | texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrb.tfm |
---|
131 | texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrbo.tfm |
---|
132 | texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrr.tfm |
---|
133 | texmf-dist/fonts/tfm/public/lithuanian/l7x-ucrro.tfm |
---|
134 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvb.tfm |
---|
135 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvbc.tfm |
---|
136 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvbo.tfm |
---|
137 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvboc.tfm |
---|
138 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvr.tfm |
---|
139 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvrc.tfm |
---|
140 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvro.tfm |
---|
141 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uhvroc.tfm |
---|
142 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uncb.tfm |
---|
143 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uncbi.tfm |
---|
144 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uncr.tfm |
---|
145 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uncri.tfm |
---|
146 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uplb.tfm |
---|
147 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uplbi.tfm |
---|
148 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uplr.tfm |
---|
149 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uplri.tfm |
---|
150 | texmf-dist/fonts/tfm/public/lithuanian/l7x-utmb.tfm |
---|
151 | texmf-dist/fonts/tfm/public/lithuanian/l7x-utmbi.tfm |
---|
152 | texmf-dist/fonts/tfm/public/lithuanian/l7x-utmr.tfm |
---|
153 | texmf-dist/fonts/tfm/public/lithuanian/l7x-utmri.tfm |
---|
154 | texmf-dist/fonts/tfm/public/lithuanian/l7x-uzcmi.tfm |
---|
155 | texmf-dist/tex/latex/lithuanian/cp772.def |
---|
156 | texmf-dist/tex/latex/lithuanian/cp774.def |
---|
157 | texmf-dist/tex/latex/lithuanian/cp775.def |
---|
158 | texmf-dist/tex/latex/lithuanian/cpKBL.def |
---|
159 | texmf-dist/tex/latex/lithuanian/cpRIM.def |
---|
160 | texmf-dist/tex/latex/lithuanian/l7xenc.def |
---|
161 | texmf-dist/tex/latex/lithuanian/l7xenc.sty |
---|
162 | texmf-dist/tex/latex/lithuanian/l7xuag.fd |
---|
163 | texmf-dist/tex/latex/lithuanian/l7xubk.fd |
---|
164 | texmf-dist/tex/latex/lithuanian/l7xucr.fd |
---|
165 | texmf-dist/tex/latex/lithuanian/l7xuhv.fd |
---|
166 | texmf-dist/tex/latex/lithuanian/l7xunc.fd |
---|
167 | texmf-dist/tex/latex/lithuanian/l7xupl.fd |
---|
168 | texmf-dist/tex/latex/lithuanian/l7xutm.fd |
---|
169 | texmf-dist/tex/latex/lithuanian/l7xuzc.fd |
---|
170 | texmf-dist/tex/latex/lithuanian/latin7.def |
---|
171 | texmf-dist/tex/latex/lithuanian/lithuanian.ldf |
---|
172 | texmf-dist/tex/latex/lithuanian/lithuanian.sty |
---|
173 | ) |
---|
174 | |
---|
175 | %__mkdir_p ${PREF}/texmf-dist |
---|
176 | for i in "${manifest[@]}"; do |
---|
177 | %__install -D %{texlive_src}/$i ${PREF}/$i |
---|
178 | done |
---|
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 |
---|
186 | for i in t1ascii t1asm t1binary t1disasm t1mac t1unmac; do |
---|
187 | %__rm %{buildroot}%{_mandir}/man*/${i}.* ||: |
---|
188 | done |
---|
189 | |
---|
190 | ## man some files are provided by psutils |
---|
191 | for 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}.* ||: |
---|
193 | done |
---|
194 | |
---|
195 | ## fix perl path |
---|
196 | for 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} |
---|
201 | done |
---|
202 | |
---|
203 | ## remove asymptote directries, which provides asymptote package |
---|
204 | find %{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 |
---|
217 | find %{buildroot} | %__grep -e "\.\(la\|a\)$" | xargs %__rm -f |
---|
218 | find %{buildroot} | %__grep -e "\.\(diff\|patch\)$" | xargs %__rm -f |
---|
219 | |
---|
220 | ## Files list |
---|
221 | find %{buildroot} -type f -or -type l | \ |
---|
222 | %__sed -e "s|%{buildroot}||g" > filelist.full |
---|
223 | |
---|
224 | find %{buildroot}%{texmf}-dist -type d | \ |
---|
225 | %__sed -e "s|^%{buildroot}|%dir |" \ |
---|
226 | -e "s|$|/|" >> filelist.full |
---|
227 | |
---|
228 | ## subpackages |
---|
229 | grep "/texmf-dist/doc/" filelist.full > filelist.doc |
---|
230 | cat 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 | |
---|
241 | updmap_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 | |
---|
249 | rpm -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 | |
---|
258 | rpm -q --quiet texlive-common || exit 0 |
---|
259 | |
---|
260 | echo -n " " |
---|
261 | echo -n "Running fmtutil ... " && %{exec_fmtutil} && echo "done." |
---|
262 | |
---|
263 | exit 0 |
---|
264 | |
---|
265 | |
---|
266 | %postun |
---|
267 | if [ "$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 | |
---|
282 | fi |
---|
283 | |
---|
284 | exit 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 |
---|