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