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