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