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