]> git.pld-linux.org Git - packages/XFree86-fonts.git/blob - XFree86-fonts.spec
94aa704d6be665b8e65090671300a4c91510827a
[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:        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/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}-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 -n XFree86-75dpi-fonts
37 Summary:        X11R6 75dpi fonts - only need on server side
38 Summary(de):    X11RT 76 dpi-Fonts - nur auf Serverseite erforderlich
39 Summary(fr):    Fontes 75 dpi X11R6 - nécessaire uniquement côté serveur
40 Summary(pl):    Fonty o rozdzielczo¶ci 75dpi-niebêdne dla serwera.
41 Summary(tr):    X11R6 75dpi yazýtipleri - yalnýzca sunucu tarafýnda gerekir
42 Group:          X11/XFree86
43 Group(de):      X11/XFree86
44 Group(pl):      X11/XFree86
45 Prereq:         %{_bindir}/mkfontdir
46
47 %ifarch sparc
48 Obsoletes:      X11R6.1-75dpi-fonts
49 %endif
50
51 %description -n XFree86-75dpi-fonts
52 The 75dpi fonts used on most Linux systems. Users with high resolution
53 displays may prefer the 100dpi fonts available in a separate package.
54
55 %description -l de -n XFree86-75dpi-fonts
56 Die 75dpi-Fonts, die auf meisten Linux-Systemen verwendet werden. Für
57 Benutzer mit einer hochauflösender Darstellung sind die 100dpi-Fonts
58 eines getrennt erhältlichen Pakets besser geeignet.
59
60 %description -l fr -n XFree86-75dpi-fonts
61 Fontes 75 dpi utilisées sur la plupart des systèmes Linux. Ceux qui
62 ont des écrans à haute résolution préfèreront les fontes 100 dpi
63 disponibles dans un autre paquetage.
64
65 %description -l pl -n XFree86-75dpi-fonts
66 Pakiet ten zawiera czcionki rastrowe 75dpi. W wypadku wiêkszej
67 rozdzielczo¶ci zalecane s± czcionki 100dpi, które s± dostêpne w
68 osobnym pakiecie.
69
70 %description -l tr -n XFree86-75dpi-fonts
71 Çoðu Linux sisteminde 75dpi yazýtipi kullanýlýr. Yüksek çözünürlük
72 kullanan kullanýcýlar 100dpi yazýtiplerini yeðleyebilirler.
73
74 %package -n XFree86-100dpi-fonts
75 Summary:        X11R6 100dpi fonts - only need on server side
76 Summary(de):    X11R6 100dpi-Fonts - nur auf Server-Seite erforderlich
77 Summary(fr):    Fontes 100ppp pour X11R6 - nécessaires seulement coté serveur.
78 Summary(pl):    Fonty o rozdzielczosci 100dpi - niezbêdne dla serwera.
79 Summary(tr):    X11R6 100dpi yazýtipleri - yalnýzca sunucu tarafýnda gereklidir
80 Group:          X11/XFree86
81 Group(de):      X11/XFree86
82 Group(pl):      X11/XFree86
83 Prereq:         %{_bindir}/mkfontdir
84
85 %ifarch sparc
86 Obsoletes:      X11R6.1-100dpi-fonts
87 %endif
88
89 %description -n XFree86-100dpi-fonts
90 The 100dpi fonts used on most Linux systems. Users with high
91 resolution displays may prefer the 100dpi fonts available in a
92 separate package.
93
94 %description -l de -n XFree86-100dpi-fonts
95 Die 100dpi-Schriftarten, die auf den meisten Linux-Systemen zum
96 Einsatz kommen. Anwender mit hochauflösenden Monitoren ziehen unter
97 Umständen die 100dpi-Schriften vor, die in einem separaten Paket
98 erhältlich sind.
99
100 %description -l fr -n XFree86-100dpi-fonts
101 Les fontes 100dpi sont utilisées par la plupart des systèmes Linux.
102 Les utilisateurs ayant des hautes résolutions peuvent préférer les
103 fontes 100dpi disponibles dans un package séparé.
104
105 %description -l pl -n XFree86-100dpi-fonts
106 Pakiet ten zawiera czcionki rastrowe 100dpi. Bed± one potrzebne przy
107 pracy z du¿± rozdzielczo¶ci±.
108
109 %description -l tr -n XFree86-100dpi-fonts
110 Yüksek çözünürlük kullanan kullanýcýlar 100dpi yazýtiplerini 75dpi
111 olanlara yeðleyebilirler.
112
113 %package -n XFree86-cyrillic-fonts
114 Summary:        Cyrillic fonts - only need on server side
115 Summary(pl):    Fonty rastrowe z cyrylic±
116 Group:          X11/XFree86
117 Group(de):      X11/XFree86
118 Group(pl):      X11/XFree86
119 Prereq:         %{_bindir}/mkfontdir
120
121 %description -n XFree86-cyrillic-fonts
122 Cyrillic raster fonts.
123
124 %description -l pl -n XFree86-cyrillic-fonts
125 Fonty rastrowe z cyrylic±.
126
127 %package -n XFree86-latin2-100dpi-fonts
128 Summary:        Latin 2 100dpi fonts - only need on server side
129 Summary(pl):    Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 100dpi
130 Group:          X11/XFree86
131 Group(de):      X11/XFree86
132 Group(pl):      X11/XFree86
133 Prereq:         %{_bindir}/mkfontdir
134
135 %description -n XFree86-latin2-100dpi-fonts
136 Latin 2 raster fonts.
137
138 %description -l pl -n XFree86-latin2-100dpi-fonts
139 Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 100dpi.
140
141 %package -n XFree86-latin2-75dpi-fonts
142 Summary:        Latin 2 75dpi fonts - only need on server side
143 Summary(pl):    Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 75dpi
144 Group:          X11/XFree86
145 Group(de):      X11/XFree86
146 Group(pl):      X11/XFree86
147 Prereq:         %{_bindir}/mkfontdir
148
149 %description -n XFree86-latin2-75dpi-fonts
150 Latin 2 raster fonts.
151
152 %description -l pl -n XFree86-latin2-75dpi-fonts
153 Fonty rastrowe ISO-8859-2 o rozdzielczo¶ci 75dpi
154
155 %package -n XFree86-latin2-Type1-fonts
156 Summary:        Type1 (scalable) ISO8859-2 X11 system fonts
157 Summary(pl):    Fonty Type 1 ISO-8859-2
158 Group:          X11/Fonts
159 Group(de):      X11/Fonts
160 Group(pl):      X11/Fonty
161 Prereq:         type1inst
162 Prereq:         /usr/bin/type1inst
163 Requires:       XFree86 > 3.2 
164 Requires:       type1inst >= 0.6.1
165 Prereq:         textutils
166
167 %description -n XFree86-latin2-Type1-fonts
168 This package includes the Central European (ISO-8859-2) Type1 fonts
169 for the X11 system.
170
171 This is the famous ulT1mo (read ultimo) collection. All fonts are
172 copyrighted to their authors and declared to be freeware. Originals
173 was taken from the net or CDs.
174
175 %description -n XFree86-latin2-Type1-fonts -l pl
176 Pakiet ten zawiera zestaw fontów Type 1 ISO-8859-2 dla X Window.
177
178 %prep
179 %setup -q -c -b1 -b2 -a3
180 %patch0 -p0
181 %patch1 -p1
182 ln -s . xc/fonts/fonts
183
184 rm -f misc/{font*,*13*}
185
186 cd misc
187 for i in *.bdf ; do
188         mv $i "`echo $i | sed 's/\.bdf//'`-ISO8859-2.bdf"
189 done
190 cd ..
191 mv -f misc/*.bdf xc/fonts/bdf/misc/
192 mv -f 100dpi/{char,term,lutBS,lutRS}* xc/fonts/bdf/latin2/100dpi/
193 mv -f 75dpi/{char,term,ncenR{18,24},lutBS{08,19,24},lutRS{08,19,24}}* xc/fonts/bdf/latin2/75dpi/
194
195 cp xc/extras/fonts/arabic24/*.bdf xc/fonts/bdf/misc/
196 cp xc/extras/fonts/ClearlyU/*.bdf xc/fonts/bdf/misc/
197
198 %build
199 %{__make} all -C ulT1mo-beta-1.0
200
201 cd xc/fonts
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-100dpi-fonts
260 cd %{_fontdir}/latin2/100dpi
261 %{_bindir}/mkfontdir
262
263 %post -n XFree86-latin2-75dpi-fonts
264 cd %{_fontdir}/latin2/75dpi
265 %{_bindir}/mkfontdir
266
267 %post -n XFree86-latin2-Type1-fonts
268 cd %{_fontdir}/Type1
269 rm -f fonts.dir fonts.scale
270 /usr/bin/type1inst -nogs -nolog -q
271 grep '^.*ISO-8859-2.pfb' %{_fontdir}/Type1/fonts.dir |\
272 sed 's/\(^.*ISO-8859-2.pfb \)\(.*\)/"\2"/' |\
273 sed 's/\(^".*\)\(-[a-z]*-[a-z]*"\)/\1-iso8859-2" \1\2/' |\
274 grep -v ^[0-9] > %{_fontdir}/Type1/fonts.alias.tmp
275 cat %{_fontdir}/Type1/fonts.alias.tmp >>\
276 %{_fontdir}/Type1/fonts.alias
277 sort < %{_fontdir}/Type1/fonts.alias | uniq >\
278 %{_fontdir}/Type1/fonts.alias.tmp
279 mv -f %{_fontdir}/Type1/fonts.alias.tmp %{_fontdir}/Type1/fonts.alias
280
281 %postun -n XFree86-latin2-Type1-fonts
282 cd %{_fontdir}/Type1
283 rm -f fonts.dir fonts.scale
284 /usr/bin/type1inst -nogs -nolog -q
285 sed 's/^.*pfb -//' %{_fontdir}/Type1/fonts.dir > \
286 %{_fontdir}/Type1/fonts.dir.tmp 
287 grep -f %{_fontdir}/Type1/fonts.dir.tmp \
288 %{_fontdir}/Type1/fonts.alias > \
289 %{_fontdir}/Type1/fonts.alias.tmp
290 mv -f %{_fontdir}/Type1/fonts.alias.tmp %{_fontdir}/Type1/fonts.alias
291 rm -f %{_fontdir}/Type1/fonts.dir.tmp
292
293 %files
294 %defattr(644,root,root,755)
295 %doc RELEASE_NOTES.TXT.gz
296 %dir %{_fontdir}/CID
297 %dir %{_fontdir}/PEX
298 %dir %{_fontdir}/Speedo
299 %dir %{_fontdir}/TTF
300 %dir %{_fontdir}/encodings
301 %dir %{_fontdir}/local
302 %dir %{_fontdir}/Type1
303 %dir %{_fontdir}/misc
304 %{_fontdir}/PEX/*
305 %{_fontdir}/Speedo/*.spd
306 %{_fontdir}/encodings/*
307 %{_fontdir}/misc/*gz
308 %{_fontdir}/Type1/*[a-z_].*f*
309 %verify(not mtime size md5) %{_fontdir}/CID/fonts.*
310 %verify(not mtime size md5) %{_fontdir}/Speedo/fonts.*
311 %verify(not mtime size md5) %{_fontdir}/TTF/fonts.*
312 %verify(not mtime size md5) %{_fontdir}/local/fonts.*
313 %verify(not mtime size md5) %{_fontdir}/Type1/fonts.*
314 %verify(not mtime size md5) %{_fontdir}/misc/fonts.*
315
316 %files -n XFree86-75dpi-fonts
317 %defattr(644,root,root,755)
318 %dir %{_fontdir}/75dpi
319 %{_fontdir}/75dpi/*gz
320 %verify(not mtime size md5) %{_fontdir}/75dpi/fonts.*
321
322 %files -n XFree86-100dpi-fonts
323 %defattr(644,root,root,755)
324 %dir %{_fontdir}/100dpi
325 %{_fontdir}/100dpi/*gz
326 %verify(not mtime size md5) %{_fontdir}/100dpi/fonts.*
327
328 %files -n XFree86-cyrillic-fonts
329 %defattr(644,root,root,755)
330 %{_fontdir}/cyrillic
331
332 %files -n XFree86-latin2-100dpi-fonts
333 %defattr(644,root,root,755)
334 %{_fontdir}/latin2/100dpi
335
336 %files -n XFree86-latin2-75dpi-fonts
337 %defattr(644,root,root,755)
338 %{_fontdir}/latin2/75dpi
339
340 %files -n XFree86-latin2-Type1-fonts
341 %defattr(644,root,root,755)
342 %{_fontdir}/Type1/afm/*
343 %{_fontdir}/Type1/pfm/*
344 %{_fontdir}/Type1/*-ISO-8859-2*
This page took 0.049592 seconds and 3 git commands to generate.