2 Summary(pl): Fonty dla systemu 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}
22 BuildRequires: t1utils
23 Prereq: /usr/X11R6/bin/mkfontdir
26 Obsoletes: XFree86-latin2-fonts
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
37 This package contains the basic fonts. This package is required when
38 you have installed X server.
41 Pakiet ten zawiera podstawowe czcionki. Pakiet ten jest koniecznie
42 potrzebny, je¶li masz zainstalowany jakikolwiek X serwer.
45 Summary: Perl scripts for generating BDF fonts
46 Summary(pl): Skrypty perlowe do generowania fontów BDF
48 Group(de): X11/XFree86
49 Group(pl): X11/XFree86
52 Perl scripts that allow to generate from an ISO10646-1 encoded
53 BDF font other BDF fonts in any possible encoding.
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
62 Group(de): X11/XFree86
63 Group(pl): X11/XFree86
64 Prereq: %{_bindir}/mkfontdir
67 Obsoletes: X11R6.1-75dpi-fonts
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.
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.
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.
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
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.
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
100 Group(de): X11/XFree86
101 Group(pl): X11/XFree86
102 Prereq: %{_bindir}/mkfontdir
105 Obsoletes: X11R6.1-100dpi-fonts
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
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
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é.
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.
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.
132 %package -n XFree86-cyrillic-fonts
133 Summary: Cyrillic fonts - only need on server side
134 Summary(pl): Fonty rastrowe z cyrylic±
136 Group(de): X11/XFree86
137 Group(pl): X11/XFree86
138 Prereq: %{_bindir}/mkfontdir
140 %description -n XFree86-cyrillic-fonts
141 Cyrillic raster fonts.
143 %description -l pl -n XFree86-cyrillic-fonts
144 Fonty rastrowe z cyrylic±.
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
150 Group(de): X11/XFree86
151 Group(pl): X11/XFree86
152 Prereq: %{_bindir}/mkfontdir
153 Obsoletes: XFree86-ISO8859-2-100dpi-fonts
155 %description -n XFree86-latin2-100dpi-fonts
156 Latin 2 raster fonts.
158 %description -l pl -n XFree86-latin2-100dpi-fonts
159 Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 100dpi.
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
165 Group(de): X11/XFree86
166 Group(pl): X11/XFree86
167 Prereq: %{_bindir}/mkfontdir
168 Obsoletes: XFree86-ISO8859-2-75dpi-fonts
170 %description -n XFree86-latin2-75dpi-fonts
171 Latin 2 raster fonts.
173 %description -l pl -n XFree86-latin2-75dpi-fonts
174 Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 75dpi.
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
184 Requires: XFree86 > 3.2
185 Obsoletes: XFree86-ISO8859-2-Type1-fonts
187 %description -n XFree86-latin2-Type1-fonts
188 This package includes the Central European (ISO-8859-2) Type1 fonts
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.
195 %description -n XFree86-latin2-Type1-fonts -l pl
196 Pakiet ten zawiera zestaw fontów Type1 ISO-8859-2 dla X Window.
199 %setup -q -c -b1 -b2 -a3
204 cp xc/extras/fonts/arabic24/*.bdf xc/fonts/bdf/misc/
205 cp xc/extras/fonts/ClearlyU/*.bdf xc/fonts/bdf/misc/
208 for i in {12x24,8x16}*.bdf ; do
209 mv $i "`echo $i | sed 's/\.bdf//'`-ISO8859-2.bdf"
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/
217 %{__make} all -C ulT1mo-beta-1.0
220 imake -DBuildFonts -DUseInstalled -I%{_libdir}/X11/config
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}"
231 rm -rf $RPM_BUILD_ROOT
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
245 %{__make} -C ulT1mo-beta-1.0 install \
246 FONTDIR=$RPM_BUILD_ROOT%{_fontsdir}
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}
252 t1binary $f `basename $f .pfa`.pfb
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
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
269 gzip -9nf RELEASE_NOTES.TXT
272 rm -rf $RPM_BUILD_ROOT
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
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
300 %post -n XFree86-75dpi-fonts
301 cd %{_fontsdir}/75dpi
305 %postun -n XFree86-75dpi-fonts
306 cd %{_fontsdir}/75dpi
310 %post -n XFree86-100dpi-fonts
311 cd %{_fontsdir}/100dpi
315 %postun -n XFree86-100dpi-fonts
316 cd %{_fontsdir}/100dpi
320 %post -n XFree86-cyrillic-fonts
321 cd %{_fontsdir}/cyrillic
325 %post -n XFree86-latin2-100dpi-fonts
326 cd %{_fontsdir}/latin2/100dpi
330 %post -n XFree86-latin2-75dpi-fonts
331 cd %{_fontsdir}/latin2/75dpi
335 %post -n XFree86-latin2-Type1-fonts
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
352 %postun -n XFree86-latin2-Type1-fonts
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
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
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.*
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_bindir}/*
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.*
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.*
407 %files -n XFree86-cyrillic-fonts
408 %defattr(644,root,root,755)
409 %{_fontsdir}/cyrillic
411 %files -n XFree86-latin2-100dpi-fonts
412 %defattr(644,root,root,755)
413 %{_fontsdir}/latin2/100dpi
415 %files -n XFree86-latin2-75dpi-fonts
416 %defattr(644,root,root,755)
417 %{_fontsdir}/latin2/75dpi
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