]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - xorg-x11-fonts/xorg-x11-fonts.nm
Merge remote-tracking branch 'stevee/compat-packages'
[people/ms/ipfire-3.x.git] / xorg-x11-fonts / xorg-x11-fonts.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = xorg-x11-fonts
7 version = 7.2
8 release = 4
9 arch = noarch
10
11 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
12 groups = X/Fonts
13 url = http://www.x.org/
14 license = MIT
15 summary = X.Org X11 fonts.
16
17 description
18 This package contains misc bitmap Chinese, Japanese, Korean, Indic, and
19 Arabic fonts for use with X Window System.
20 end
21
22 source_dl = http://ftp.x.org/pub/individual/font/
23 source_dl += http://unifoundry.com/
24
25 sources = \
26 encodings-1.0.3.tar.bz2 \
27 font-alias-1.0.2.tar.bz2 \
28 font-adobe-100dpi-1.0.1.tar.bz2 \
29 font-adobe-75dpi-1.0.1.tar.bz2 \
30 font-adobe-utopia-100dpi-1.0.2.tar.bz2 \
31 font-adobe-utopia-75dpi-1.0.2.tar.bz2 \
32 font-adobe-utopia-type1-1.0.2.tar.bz2 \
33 font-arabic-misc-1.0.1.tar.bz2 \
34 font-bh-100dpi-1.0.1.tar.bz2 \
35 font-bh-75dpi-1.0.1.tar.bz2 \
36 font-bh-lucidatypewriter-100dpi-1.0.1.tar.bz2 \
37 font-bh-lucidatypewriter-75dpi-1.0.1.tar.bz2 \
38 font-bitstream-100dpi-1.0.1.tar.bz2 \
39 font-bitstream-75dpi-1.0.1.tar.bz2 \
40 font-bitstream-type1-1.0.1.tar.bz2 \
41 font-cronyx-cyrillic-1.0.1.tar.bz2 \
42 font-cursor-misc-1.0.1.tar.bz2 \
43 font-daewoo-misc-1.0.1.tar.bz2 \
44 font-dec-misc-1.0.1.tar.bz2 \
45 font-isas-misc-1.0.1.tar.bz2 \
46 font-jis-misc-1.0.1.tar.bz2 \
47 font-micro-misc-1.0.1.tar.bz2 \
48 font-misc-cyrillic-1.0.1.tar.bz2 \
49 font-misc-misc-1.1.0.tar.bz2 \
50 font-mutt-misc-1.0.1.tar.bz2 \
51 font-schumacher-misc-1.1.0.tar.bz2 \
52 font-screen-cyrillic-1.0.2.tar.bz2 \
53 font-sony-misc-1.0.1.tar.bz2 \
54 font-sun-misc-1.0.1.tar.bz2 \
55 font-winitzki-cyrillic-1.0.1.tar.bz2 \
56 font-xfree86-type1-1.0.2.tar.bz2 \
57 unifont-5.1.20080820.pcf.gz
58
59 build
60 requires
61 /usr/bin/mkfontscale
62 perl
63 pkg-config
64 xorg-x11-font-utils-devel
65 end
66
67 configure_options += \
68 --with-fontrootdir=/usr/share/X11/fonts \
69 --disable-iso8859-3 \
70 --disable-iso8859-4 \
71 --disable-iso8859-6 \
72 --disable-iso8859-10 \
73 --disable-iso8859-11 \
74 --disable-iso8859-12 \
75 --disable-iso8859-13 \
76 --disable-iso8859-16
77
78 prepare
79 # Extract all source tarballs.
80 for object in %{sources}; do
81 # Only extract tar.bz2 files
82 object=${object//*pcf.gz/}
83 if [ -n "${object}" ]; then
84 %{MACRO_EXTRACT} %{DIR_DL}/${object}
85 fi
86 done
87 end
88
89 build
90 for object in %{sources}; do
91 dir=%{DIR_SRC}/${object%*.tar.bz2}
92
93 if [ -d "${dir}" ]; then
94 cd ${dir}
95 ./configure %{configure_options}
96
97 make %{PARALLELISMFLAGS}
98 fi
99 done
100 end
101
102 install
103 for object in %{sources}; do
104 dir=%{DIR_SRC}/${object%*.tar.bz2}
105
106 if [ -d "${dir}" ]; then
107 cd ${dir}
108
109 make install DESTDIR=%{BUILDROOT}
110 fi
111 done
112
113 # Install unifont
114 mkdir -pv %{BUILDROOT}/usr/share/X11/fonts/misc
115 cp -vf %{DIR_DL}/unifont-5.1.20080820.pcf.gz \
116 %{BUILDROOT}/usr/share/X11/fonts/misc/unifont.pcf.gz
117
118 # XXX Do we need to create these symlinks to use the fonts - check this in a running X environment.
119 # Install catalogue symlinks
120 #mkdir -pv %{BUILDROOT}/etc/X11/fontpath.d
121 #ln -svf ../../../usr/share/X11/fonts/100dpi %{BUILDROOT}/etc/X11/fontpath.d/xorg-x11-fonts-100dpi
122 #ln -svf ../../../usr/share/X11/fonts/75dpi %{BUILDROOT}/etc/X11/fontpath.d/xorg-x11-fonts-75dpi
123 #ln -svf ../../../usr/share/X11/fonts/cyrillic %{BUILDROOT}/etc/X11/fontpath.d/xorg-x11-fonts-cyrillic
124 #ln -svf ../../../usr/share/X11/fonts/misc %{BUILDROOT}/etc/X11/fontpath.d/xorg-x11-fonts-misc
125 #ln -svf ../../../usr/share/X11/fonts/Type1 %{BUILDROOT}/etc/X11/fontpath.d/xorg-x11-fonts-Type1
126 end
127 end
128
129 packages
130 # Template for 75 DPI fonts
131 template 75DPI
132 requires
133 fontconfig
134 end
135
136 #files
137 # /etc/X11/fontpath.d/xorg-x11-fonts-75dpi
138 #end
139
140 prerequires = xorg-x11-font-utils
141
142 script postin
143 /usr/bin/mkfontdir /usr/share/X11/fonts/75dpi
144 end
145
146 script postun
147 /usr/bin/mkfontdir /usr/share/X11/fonts/75dpi
148 end
149 end
150
151 # Template for 100 DPI fonts
152 template 100DPI
153 requires
154 fontconfig
155 end
156
157 #files
158 # /etc/X11/fontpath.d/xorg-x11-fonts-100
159 #end
160
161 prerequires = xorg-x11-font-utils
162
163 script postin
164 /usr/bin/mkfontdir /usr/share/X11/fonts/100dpi
165 end
166
167 script postun
168 /usr/bin/mkfontdir /usr/share/X11/fonts/100dpi
169 end
170 end
171
172 package %{name}
173 summary = Bitmap fonts for the X Window System.
174 description
175 This package contains misc bitmap Chinese, Japanese, Korean, Indic, and Arabic
176 fonts for use with X Window System.
177 end
178
179 requires
180 fontconfig
181 end
182
183 prerequires = xorg-x11-font-utils
184
185 script postin
186 /usr/bin/xorg-x11-fonts-update-dirs --skip-fontscale /usr/share/X11/fonts/misc
187 end
188
189 script postun
190 /usr/bin/xorg-x11-fonts-update-dirs --skip-fontscale /usr/share/X11/fonts/misc
191 end
192 end
193
194 package %{name}-Type1
195 summary = Type1 fonts provided by the X Window System.
196 description
197 A collection of Type1 fonts which are part of the core X Window System
198 distribution.
199 end
200
201 requires
202 fontconfig
203 end
204
205 files
206 /usr/share/X11/fonts/Type1/
207 end
208
209 prerequires = xorg-x11-font-utils
210
211 script postin
212 /usr/bin/xorg-x11-fonts-update-dirs --skip-fontscale /usr/share/X11/fonts/Type1
213 end
214
215 script postun
216 /usr/bin/xorg-x11-fonts-update-dirs --skip-fontscale /usr/share/X11/fonts/Type1
217 end
218 end
219
220 package %{name}-75dpi
221 template 75DPI
222
223 summary = A set of 75dpi resolution fonts for the X Window System.
224 description
225 A set of 75 dpi fonts used by the X window system.
226 end
227
228 files +=\
229 /usr/share/X11/fonts/75dpi/
230 end
231
232 package %{name}-100dpi
233 template 100DPI
234
235 summary = A set of 100dpi resolution fonts for the X Window System.
236 description
237 A set of 100 dpi fonts used by the X window system.
238 end
239
240 files +=\
241 /usr/share/X11/fonts/100dpi/
242 end
243
244 package %{name}-ISO8859-1-75dpi
245 template 75DPI
246
247 summary = A set of 75dpi ISO-8859-1 fonts for X.
248 description
249 Contains a set of 75dpi fonts for ISO-8859-1.
250 end
251
252 files +=\
253 /usr/share/X11/fonts/75dpi/*ISO8859-1.*
254 end
255
256 package %{name}-ISO8859-1-100dpi
257 template 100DPI
258
259 summary = A set of 100dpi ISO-8859-1 fonts for X.
260 description
261 Contains a set of 100dpi fonts for ISO-8859-1.
262 end
263
264 files +=\
265 /usr/share/X11/fonts/100dpi/*ISO8859-1.*
266 end
267
268 package %{name}-ISO8859-2-75dpi
269 template 75DPI
270
271 summary = A set of 75dpi Central European language fonts for X.
272 description
273 Contains a set of 75dpi fonts for Central European languages.
274 end
275
276 files +=\
277 /usr/share/X11/fonts/75dpi/*ISO8859-2.*
278 end
279
280 package %{name}-ISO8859-2-100dpi
281 template 100DPI
282
283 summary = A set of 100dpi Central European language fonts for X.
284 description
285 Contains a set of 100dpi fonts for Central European languages.
286 end
287
288 files +=\
289 /usr/share/X11/fonts/100dpi/*ISO8859-2.*
290 end
291
292 package %{name}-ISO8859-9-75dpi
293 template 75DPI
294
295 summary = ISO8859-9-75dpi fonts.
296 description
297 Contains a set of 75dpi fonts for the Turkish language.
298 end
299
300 files +=\
301 /usr/share/X11/fonts/75dpi/*ISO8859-9.*
302 end
303
304 package %{name}-ISO8859-9-100dpi
305 template 100DPI
306
307 summary = ISO8859-9-100dpi fonts.
308 description
309 Contains a set of 100dpi fonts for the Turkish language.
310 end
311
312 files +=\
313 /usr/share/X11/fonts/100dpi/*ISO8859-9.*
314 end
315
316 package %{name}-ISO8859-14-75dpi
317 template 75DPI
318
319 summary = ISO8859-14-75dpi fonts.
320 description
321 Contains a set of 75dpi fonts in the ISO8859-14 encoding which
322 provide Welsh support.
323 end
324
325 files +=\
326 /usr/share/X11/fonts/75dpi/*ISO8859-14.*
327 end
328
329 package %{name}-ISO8859-14-100dpi
330 template 100DPI
331
332 summary = ISO8859-14-100dpi fonts.
333 description
334 Contains a set of 100dpi fonts in the ISO8859-14 encoding which
335 provide Welsh support.
336 end
337
338 files +=\
339 /usr/share/X11/fonts/100dpi/*ISO8859-14.*
340 end
341
342 package %{name}-ISO8859-15-75dpi
343 template 75DPI
344
345 summary = ISO8859-15-75dpi fonts.
346 description
347 Contains a set of 75dpi fonts in the ISO8859-15 encoding which
348 provide Euro support.
349 end
350
351 files +=\
352 /usr/share/X11/fonts/75dpi/*ISO8859-15.*
353 end
354
355 package %{name}-ISO8859-15-100dpi
356 template 100DPI
357
358 summary = ISO8859-15-100dpi fonts.
359 description
360 Contains a set of 100dpi fonts in the ISO8859-15 encoding which
361 provide Euro support.
362 end
363
364 files +=\
365 /usr/share/X11/fonts/100dpi/*ISO8859-15.*
366 end
367
368 package %{name}-cyrillic
369 summary = Cyrillic fonts for X.
370 description
371 Contains a set of Cyrillic fonts.
372 end
373
374 requires
375 fontconfig
376 end
377
378 files
379 /usr/share/X11/fonts/cyrillic/
380 end
381
382 prerequires = xorg-x11-font-utils
383
384 script postin
385 /usr/bin/mkfontdir /usr/share/X11/fonts/cyrillic
386 end
387
388 script postun
389 /usr/bin/mkfontdir /usr/share/X11/fonts/cyrillic
390 end
391 end
392
393 package %{name}-unifont
394 summary = The GNU unifont.
395 description
396 GNU Unifont, contains glyphs for every printable code point in the Unicode 5.1 Basic Multilingual Plane (BMP).
397 end
398
399 files
400 /usr/share/X11/fonts/misc/unifont.pcf.gz
401 end
402 end
403 end