]> git.pld-linux.org Git - packages/XFree86-fonts.git/blob - XFree86-fonts.spec
- remove old {fonts.scale,Fontmap}.bak left by type1inst
[packages/XFree86-fonts.git] / XFree86-fonts.spec
1 Summary:        XFree86 Fonts
2 Summary(pl):    Fonty dla systemu XFree86 
3 Name:           XFree86-fonts
4 Version:        4.0.3
5 Release:        1
6 License:        MIT
7 Group:          X11/XFree86
8 Group(de):      X11/XFree86
9 Group(pl):      X11/XFree86
10 Source0:        ftp://ftp.xfree86.org/pub/XFree86/4.0/source/X402src-2.tgz
11 Source1:        ftp://ftp.xfree86.org/pub/XFree86/4.0/source/X402src-1.tgz
12 Source2:        http://www.biz.net.pl/images/ISO8859-2-bdf.tar.gz
13 Source3:        ftp://crash.fce.vutbr.cz/pub/linux_fonts/TGZ/ulT1mo-beta-1.0.tgz
14 Source4:        %{name}.Fontmap
15 Source5:        %{name}-latin2-Type1.Fontmap
16 Patch0:         %{name}-extras-fix.patch
17 Patch1:         %{name}-ISO8859-2.patch
18 Patch2:         ftp://ftp.xfree86.org/pub/XFree86/4.0.3/patches/4.0.2-4.0.3.diff.gz
19 BuildRequires:  XFree86 = %{version}
20 BuildRequires:  XFree86-devel = %{version}
21 BuildRequires:  perl
22 BuildRequires:  t1utils
23 Prereq:         /usr/X11R6/bin/mkfontdir
24 Prereq:         textutils
25 Prereq:         sed
26 Obsoletes:      XFree86-latin2-fonts
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _prefix         /usr/X11R6
31 %define         _mandir         %{_prefix}/man
32 %define         _t1fontsdir     %{_fontsdir}/Type1
33 %define         _t1afmdir       %{_t1fontsdir}/afm
34 %define         _t1pfmdir       %{_t1fontsdir}/pfm
35
36 %description
37 This package contains the basic fonts. This package is required when
38 you have installed X server.
39
40 %description -l pl
41 Pakiet ten zawiera podstawowe czcionki. Pakiet ten jest koniecznie
42 potrzebny, je¶li masz zainstalowany jakikolwiek X serwer.
43
44 %package utils
45 Summary:        Perl scripts for generating BDF fonts
46 Summary(pl):    Skrypty perlowe do generowania fontów BDF
47 Group:          X11/XFree86
48 Group(de):      X11/XFree86
49 Group(pl):      X11/XFree86
50
51 %description utils
52 Perl scripts that allow to generate from an ISO10646-1 encoded
53 BDF font other BDF fonts in any possible encoding.
54
55 %package -n XFree86-75dpi-fonts
56 Summary:        X11R6 75dpi fonts - only need on server side
57 Summary(de):    X11RT 75 dpi-Fonts - nur auf Serverseite erforderlich
58 Summary(fr):    Fontes 75 dpi X11R6 - nécessaire uniquement côté serveur
59 Summary(pl):    Fonty o rozdzielczo¶ci 75dpi - potrzebne tylko po stronie serwera
60 Summary(tr):    X11R6 75dpi yazýtipleri - yalnýzca sunucu tarafýnda gerekir
61 Group:          X11/XFree86
62 Group(de):      X11/XFree86
63 Group(pl):      X11/XFree86
64 Prereq:         %{_bindir}/mkfontdir
65
66 %ifarch sparc
67 Obsoletes:      X11R6.1-75dpi-fonts
68 %endif
69
70 %description -n XFree86-75dpi-fonts
71 The 75dpi fonts used on most Linux systems. Users with high resolution
72 displays may prefer the 100dpi fonts available in a separate package.
73
74 %description -l de -n XFree86-75dpi-fonts
75 Die 75dpi-Fonts, die auf meisten Linux-Systemen verwendet werden. Für
76 Benutzer mit einer hochauflösender Darstellung sind die 100dpi-Fonts
77 eines getrennt erhältlichen Pakets besser geeignet.
78
79 %description -l fr -n XFree86-75dpi-fonts
80 Fontes 75 dpi utilisées sur la plupart des systèmes Linux. Ceux qui
81 ont des écrans à haute résolution préfèreront les fontes 100 dpi
82 disponibles dans un autre paquetage.
83
84 %description -l pl -n XFree86-75dpi-fonts
85 Pakiet ten zawiera czcionki rastrowe 75dpi. W wypadku wiêkszej
86 rozdzielczo¶ci zalecane s± czcionki 100dpi, które s± dostêpne w
87 osobnym pakiecie.
88
89 %description -l tr -n XFree86-75dpi-fonts
90 Çoðu Linux sisteminde 75dpi yazýtipi kullanýlýr. Yüksek çözünürlük
91 kullanan kullanýcýlar 100dpi yazýtiplerini yeðleyebilirler.
92
93 %package -n XFree86-100dpi-fonts
94 Summary:        X11R6 100dpi fonts - only need on server side
95 Summary(de):    X11R6 100dpi-Fonts - nur auf Server-Seite erforderlich
96 Summary(fr):    Fontes 100ppp pour X11R6 - nécessaires seulement coté serveur.
97 Summary(pl):    Fonty o rozdzielczosci 100dpi - potrzebne tylko po stronie serwera
98 Summary(tr):    X11R6 100dpi yazýtipleri - yalnýzca sunucu tarafýnda gereklidir
99 Group:          X11/XFree86
100 Group(de):      X11/XFree86
101 Group(pl):      X11/XFree86
102 Prereq:         %{_bindir}/mkfontdir
103
104 %ifarch sparc
105 Obsoletes:      X11R6.1-100dpi-fonts
106 %endif
107
108 %description -n XFree86-100dpi-fonts
109 The 100dpi fonts used on most Linux systems. Users with high
110 resolution displays may prefer the 100dpi fonts available in a
111 separate package.
112
113 %description -l de -n XFree86-100dpi-fonts
114 Die 100dpi-Schriftarten, die auf den meisten Linux-Systemen zum
115 Einsatz kommen. Anwender mit hochauflösenden Monitoren ziehen unter
116 Umständen die 100dpi-Schriften vor, die in einem separaten Paket
117 erhältlich sind.
118
119 %description -l fr -n XFree86-100dpi-fonts
120 Les fontes 100dpi sont utilisées par la plupart des systèmes Linux.
121 Les utilisateurs ayant des hautes résolutions peuvent préférer les
122 fontes 100dpi disponibles dans un package séparé.
123
124 %description -l pl -n XFree86-100dpi-fonts
125 Pakiet ten zawiera czcionki rastrowe 100dpi. Bed± one potrzebne przy
126 pracy w du¿ych rozdzielczo¶ciach.
127
128 %description -l tr -n XFree86-100dpi-fonts
129 Yüksek çözünürlük kullanan kullanýcýlar 100dpi yazýtiplerini 75dpi
130 olanlara yeðleyebilirler.
131
132 %package -n XFree86-cyrillic-fonts
133 Summary:        Cyrillic fonts - only need on server side
134 Summary(pl):    Fonty rastrowe z cyrylic±
135 Group:          X11/XFree86
136 Group(de):      X11/XFree86
137 Group(pl):      X11/XFree86
138 Prereq:         %{_bindir}/mkfontdir
139
140 %description -n XFree86-cyrillic-fonts
141 Cyrillic raster fonts.
142
143 %description -l pl -n XFree86-cyrillic-fonts
144 Fonty rastrowe z cyrylic±.
145
146 %package -n XFree86-latin2-100dpi-fonts
147 Summary:        Latin 2 100dpi fonts - only need on server side
148 Summary(pl):    Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 100dpi
149 Group:          X11/XFree86
150 Group(de):      X11/XFree86
151 Group(pl):      X11/XFree86
152 Prereq:         %{_bindir}/mkfontdir
153 Obsoletes:      XFree86-ISO8859-2-100dpi-fonts
154
155 %description -n XFree86-latin2-100dpi-fonts
156 Latin 2 raster fonts.
157
158 %description -l pl -n XFree86-latin2-100dpi-fonts
159 Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 100dpi.
160
161 %package -n XFree86-latin2-75dpi-fonts
162 Summary:        Latin 2 75dpi fonts - only need on server side
163 Summary(pl):    Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 75dpi
164 Group:          X11/XFree86
165 Group(de):      X11/XFree86
166 Group(pl):      X11/XFree86
167 Prereq:         %{_bindir}/mkfontdir
168 Obsoletes:      XFree86-ISO8859-2-75dpi-fonts
169
170 %description -n XFree86-latin2-75dpi-fonts
171 Latin 2 raster fonts.
172
173 %description -l pl -n XFree86-latin2-75dpi-fonts
174 Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 75dpi.
175
176 %package -n XFree86-latin2-Type1-fonts
177 Summary:        Type1 (scalable) ISO8859-2 X11 system fonts
178 Summary(pl):    Fonty Type 1 ISO-8859-2
179 Group:          X11/Fonts
180 Group(de):      X11/Fonts
181 Group(pl):      X11/Fonty
182 Prereq:         textutils
183 Prereq:         sed
184 Requires:       XFree86 > 3.2 
185 Obsoletes:      XFree86-ISO8859-2-Type1-fonts
186
187 %description -n XFree86-latin2-Type1-fonts
188 This package includes the Central European (ISO-8859-2) Type1 fonts
189 for the X11 system.
190
191 This is the famous ulT1mo (read ultimo) collection. All fonts are
192 copyrighted to their authors and declared to be freeware. Originals
193 was taken from the net or CDs.
194
195 %description -n XFree86-latin2-Type1-fonts -l pl
196 Pakiet ten zawiera zestaw fontów Type1 ISO-8859-2 dla X Window.
197
198 %prep
199 %setup -q -c -b1 -b2 -a3
200 %patch0 -p1
201 %patch1 -p1
202 %patch2 -p0
203
204 cp xc/extras/fonts/arabic24/*.bdf xc/fonts/bdf/misc/
205 cp xc/extras/fonts/ClearlyU/*.bdf xc/fonts/bdf/misc/
206
207 cd misc
208 for i in {12x24,8x16}*.bdf ; do
209         mv $i "`echo $i | sed 's/\.bdf//'`-ISO8859-2.bdf"
210 done
211 cd ..
212 mv -f misc/{12x24,8x16}*.bdf xc/fonts/bdf/misc/
213 mv -f 100dpi/{char,term,lutBS,lutRS}* xc/fonts/bdf/latin2/100dpi/
214 mv -f 75dpi/{char,term,ncenR{18,24},lutBS{08,19,24},lutRS{08,19,24}}* xc/fonts/bdf/latin2/75dpi/
215
216 %build
217 %{__make} all -C ulT1mo-beta-1.0
218
219 cd xc/fonts
220 imake -DBuildFonts -DUseInstalled -I%{_libdir}/X11/config
221 %{__make} Makefiles
222 %{__make} depend
223 cd ..
224 %{__make} -C fonts TOP=`pwd` \
225         UCS2ANY=`pwd`/fonts/util/ucs2any.pl \
226         BDFTRUNCATE=`pwd`/fonts/util/bdftruncate.pl \
227         UCSMAPPREFIX=`pwd`/fonts/util/map- \
228         CDEBUGFLAGS="%{rpmcflags}"
229
230 %install
231 rm -rf $RPM_BUILD_ROOT
232 cd xc
233 %{__make} -C fonts install TOP=`pwd` \
234         UCS2ANY=`pwd`/fonts/util/ucs2any.pl \
235         BDFTRUNCATE=`pwd`/fonts/util/bdftruncate.pl \
236         UCSMAPPREFIX=`pwd`/fonts/util/map- \
237         DESTDIR=$RPM_BUILD_ROOT
238 %{__make} -C fonts install.man TOP=`pwd` \
239         UCS2ANY=`pwd`/fonts/util/ucs2any.pl \
240         BDFTRUNCATE=`pwd`/fonts/util/bdftruncate.pl \
241         UCSMAPPREFIX=`pwd`/fonts/util/map- \
242         DESTDIR=$RPM_BUILD_ROOT
243 cd ..
244
245 %{__make} -C ulT1mo-beta-1.0 install \
246         FONTDIR=$RPM_BUILD_ROOT%{_fontsdir}
247
248 # separate *.afm, convert *.pfa to .pfb
249 mv -f $RPM_BUILD_ROOT%{_t1fontsdir}/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
250 (cd $RPM_BUILD_ROOT%{_t1fontsdir}
251 for f in *.pfa ; do
252         t1binary $f `basename $f .pfa`.pfb
253         rm -f $f
254 done
255 )
256
257 tail -n +2 ulT1mo-beta-1.0/fonts.scale.ulT1mo \
258         > $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.XFree86-latin2-Type1-fonts
259 tail -n +2 xc/fonts/scaled/Type1/fonts.scale | sed -e 's/\.pfa/\.pfb/' \
260         > $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}
261 install %{SOURCE4} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}
262 install %{SOURCE5} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.XFree86-latin2-Type1-fonts
263
264 # make TrueType font dir, touch default .dir and .scale files
265 install -d $RPM_BUILD_ROOT%{_fontsdir}/TTF
266 echo 0 > $RPM_BUILD_ROOT%{_fontsdir}/TTF/fonts.dir
267 echo 0 > $RPM_BUILD_ROOT%{_fontsdir}/TTF/fonts.scale
268
269 gzip -9nf RELEASE_NOTES.TXT
270
271 %clean
272 rm -rf $RPM_BUILD_ROOT
273
274 %post
275 cd %{_fontsdir}/misc
276 umask 022
277 %{_bindir}/mkfontdir
278 cd %{_t1fontsdir}
279 rm -f fonts.scale.bak Fontmap.bak
280 cat fonts.scale.* | sort -u > fonts.scale.tmp
281 cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
282 cat fonts.scale.tmp >> fonts.scale
283 rm -f fonts.scale.tmp
284 ln -sf fonts.scale fonts.dir
285 cat Fontmap.* > Fontmap
286
287 %postun
288 cd %{_fontsdir}/misc
289 umask 022
290 %{_bindir}/mkfontdir
291 cd %{_t1fontsdir}
292 rm -f fonts.scale.bak Fontmap.bak
293 cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
294 cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
295 cat fonts.scale.tmp >> fonts.scale
296 rm -f fonts.scale.tmp
297 ln -sf fonts.scale fonts.dir
298 cat Fontmap.* > Fontmap 2>/dev/null
299
300 %post -n XFree86-75dpi-fonts
301 cd %{_fontsdir}/75dpi
302 umask 022
303 %{_bindir}/mkfontdir
304
305 %postun -n XFree86-75dpi-fonts
306 cd %{_fontsdir}/75dpi
307 umask 022
308 %{_bindir}/mkfontdir
309
310 %post -n XFree86-100dpi-fonts
311 cd %{_fontsdir}/100dpi
312 umask 022
313 %{_bindir}/mkfontdir
314
315 %postun -n XFree86-100dpi-fonts
316 cd %{_fontsdir}/100dpi
317 umask 022
318 %{_bindir}/mkfontdir
319
320 %post -n XFree86-cyrillic-fonts
321 cd %{_fontsdir}/cyrillic
322 umask 022
323 %{_bindir}/mkfontdir
324
325 %post -n XFree86-latin2-100dpi-fonts
326 cd %{_fontsdir}/latin2/100dpi
327 umask 022
328 %{_bindir}/mkfontdir
329
330 %post -n XFree86-latin2-75dpi-fonts
331 cd %{_fontsdir}/latin2/75dpi
332 umask 022
333 %{_bindir}/mkfontdir
334
335 %post -n XFree86-latin2-Type1-fonts
336 cd %{_t1fontsdir}
337 rm -f fonts.scale.bak Fontmap.bak
338 cat fonts.scale.* | sort -u > fonts.scale.tmp
339 cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
340 cat fonts.scale.tmp >> fonts.scale
341 rm -f fonts.scale.tmp
342 ln -sf fonts.scale fonts.dir
343 cat Fontmap.* > Fontmap
344 grep '^.*ISO-8859-2.pfb' %{_t1fontsdir}/fonts.dir |\
345         sed 's/\(^.*ISO-8859-2.pfb \)\(.*\)/"\2"/' |\
346         sed 's/\(^".*\)\(-[a-z]*-[a-z]*"\)/\1-iso8859-2" \1\2/' |\
347         grep -v ^[0-9] > %{_t1fontsdir}/fonts.alias.tmp
348 cat %{_t1fontsdir}/fonts.alias.tmp >> %{_t1fontsdir}/fonts.alias
349 sort -u < %{_t1fontsdir}/fonts.alias > %{_t1fontsdir}/fonts.alias.tmp
350 mv -f %{_t1fontsdir}/fonts.alias.tmp %{_t1fontsdir}/fonts.alias
351
352 %postun -n XFree86-latin2-Type1-fonts
353 cd %{_t1fontsdir}
354 rm -f fonts.scale.bak Fontmap.bak
355 cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
356 cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
357 cat fonts.scale.tmp >> fonts.scale
358 rm -f fonts.scale.tmp
359 ln -sf fonts.scale fonts.dir
360 cat Fontmap.* > Fontmap 2>/dev/null
361 sed 's/^.*pfb -//' %{_t1fontsdir}/fonts.dir > %{_t1fontsdir}/fonts.dir.tmp 
362 grep -f %{_t1fontsdir}/fonts.dir.tmp \
363         %{_t1fontsdir}/fonts.alias > %{_t1fontsdir}/fonts.alias.tmp
364 mv -f %{_t1fontsdir}/fonts.alias.tmp %{_t1fontsdir}/fonts.alias
365 rm -f %{_t1fontsdir}/fonts.dir.tmp
366
367 %files
368 %defattr(644,root,root,755)
369 %doc RELEASE_NOTES.TXT.gz
370 %dir %{_fontsdir}/CID
371 %dir %{_fontsdir}/PEX
372 %dir %{_fontsdir}/Speedo
373 %dir %{_fontsdir}/TTF
374 %dir %{_fontsdir}/encodings
375 %dir %{_fontsdir}/local
376 %dir %{_fontsdir}/misc
377 %{_fontsdir}/PEX/*
378 %{_fontsdir}/Speedo/*.spd
379 %{_fontsdir}/encodings/*
380 %{_fontsdir}/misc/*gz
381 %{_t1fontsdir}/*[a-z_].pfb
382 %{_t1afmdir}/*[a-z_].afm
383 %{_t1fontsdir}/*.%{name}
384 %verify(not mtime size md5) %{_fontsdir}/CID/fonts.*
385 %verify(not mtime size md5) %{_fontsdir}/Speedo/fonts.*
386 %verify(not mtime size md5) %{_fontsdir}/TTF/fonts.*
387 %verify(not mtime size md5) %{_fontsdir}/local/fonts.*
388 %verify(not mtime size md5) %{_fontsdir}/misc/fonts.*
389
390 %files utils
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_bindir}/*
393 %{_fontsdir}/util
394
395 %files -n XFree86-75dpi-fonts
396 %defattr(644,root,root,755)
397 %dir %{_fontsdir}/75dpi
398 %{_fontsdir}/75dpi/*gz
399 %verify(not mtime size md5) %{_fontsdir}/75dpi/fonts.*
400
401 %files -n XFree86-100dpi-fonts
402 %defattr(644,root,root,755)
403 %dir %{_fontsdir}/100dpi
404 %{_fontsdir}/100dpi/*gz
405 %verify(not mtime size md5) %{_fontsdir}/100dpi/fonts.*
406
407 %files -n XFree86-cyrillic-fonts
408 %defattr(644,root,root,755)
409 %{_fontsdir}/cyrillic
410
411 %files -n XFree86-latin2-100dpi-fonts
412 %defattr(644,root,root,755)
413 %{_fontsdir}/latin2/100dpi
414
415 %files -n XFree86-latin2-75dpi-fonts
416 %defattr(644,root,root,755)
417 %{_fontsdir}/latin2/75dpi
418
419 %files -n XFree86-latin2-Type1-fonts
420 %defattr(644,root,root,755)
421 %{_t1fontsdir}/*-ISO-8859-2*
422 %{_t1afmdir}/*-ISO-8859-2*.afm
423 %{_t1pfmdir}/*-ISO-8859-2*.pfm
424 %{_t1fontsdir}/*.XFree86-latin2-Type1-fonts
This page took 0.101035 seconds and 3 git commands to generate.