3 %bcond_without viewer # unifont-viewer package (requires perl-Wx)
5 Summary: GNU Unifont - Unicode bitmap font
6 Summary(pl.UTF-8): GNU Unifont - font bitmapowy Unicode
10 License: GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
12 Source0: https://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: d39857a6490b16dddbb6f5b18a2a2b39
14 Patch0: %{name}-info.patch
15 URL: http://czyborra.com/unifont/
16 BuildRequires: fontforge
17 BuildRequires: rpm-build >= 4.6
18 BuildRequires: rpm-perlprov
19 BuildRequires: rpmbuild(macros) >= 1.752
20 BuildRequires: sed >= 4.0
21 BuildRequires: texinfo
22 BuildRequires: xorg-app-bdftopcf
23 Requires(post,postun): fontpostinst
24 Requires: %{_fontsdir}/misc
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 GNU Unifont is an official GNU package. It is a dual-width
29 (8x16/16x16) bitmap font, designed to provide coverage for all of
30 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
31 a glyph for each visible code point in the Unicode 7.0 Basic
32 Multilingual Plane (Plane 0).
34 %description -l pl.UTF-8
35 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
36 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
37 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
38 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
39 Multilingual Plane (Plane 0).
41 %package -n fonts-misc-unifont
42 Summary: GNU Unifont - Unicode font in PCF format
43 Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF
44 License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
46 Requires(post,postun): fontpostinst
47 Requires: %{_fontsdir}/misc
48 Obsoletes: unifont < 6
51 %description -n fonts-misc-unifont
52 GNU Unifont is an official GNU package. It is a dual-width
53 (8x16/16x16) bitmap font, designed to provide coverage for all of
54 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
55 a glyph for each visible code point in the Unicode 7.0 Basic
56 Multilingual Plane (Plane 0).
58 This package contains the font in PCF format.
60 %description -n fonts-misc-unifont -l pl.UTF-8
61 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
62 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
63 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
64 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
65 Multilingual Plane (Plane 0).
67 Ten pakiet zawiera font w formacie PCF.
69 %package -n fonts-OTF-unifont
70 Summary: GNU Unifont - Unicode font in OpenType format
71 Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie OpenType
72 License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
74 Requires(post,postun): fontpostinst
75 Requires: %{_fontsdir}/OTF
78 %description -n fonts-OTF-unifont
79 GNU Unifont is an official GNU package. It is a dual-width
80 (8x16/16x16) bitmap font, designed to provide coverage for all of
81 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
82 a glyph for each visible code point in the Unicode 7.0 Basic
83 Multilingual Plane (Plane 0).
85 This package contains the font in OpenType format.
87 %description -n fonts-OTF-unifont -l pl.UTF-8
88 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
89 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
90 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
91 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
92 Multilingual Plane (Plane 0).
94 Ten pakiet zawiera font w formacie OpenType.
96 %package -n fonts-TTF-unifont
97 Summary: GNU Unifont - Unicode font in TrueType format
98 Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie TrueType
99 License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
101 Requires(post,postun): fontpostinst
102 Requires: %{_fontsdir}/TTF
105 %description -n fonts-TTF-unifont
106 GNU Unifont is an official GNU package. It is a dual-width
107 (8x16/16x16) bitmap font, designed to provide coverage for all of
108 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
109 a glyph for each visible code point in the Unicode 7.0 Basic
110 Multilingual Plane (Plane 0).
112 This package contains the font in TrueType format.
114 %description -n fonts-TTF-unifont -l pl.UTF-8
115 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
116 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
117 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
118 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
119 Multilingual Plane (Plane 0).
121 Ten pakiet zawiera font w formacie TrueType.
124 Summary: GNU Unifont - Unicode font in PSF format
125 Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PSF
126 License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
132 GNU Unifont is an official GNU package. It is a dual-width
133 (8x16/16x16) bitmap font, designed to provide coverage for all of
134 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
135 a glyph for each visible code point in the Unicode 7.0 Basic
136 Multilingual Plane (Plane 0).
138 This package contains 512 glyph subset in PSF format for use with
141 %description console -l pl.UTF-8
142 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
143 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
144 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
145 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
146 Multilingual Plane (Plane 0).
148 Ten pakiet zawiera 512-znakowy podzbiór w formacie PSF, przeznaczony
149 do używania na linuksowej konsoli.
152 Summary: GNU Unifont source data
153 Summary(pl.UTF-8): Dane źródłowe pakietu GNU Unifont
154 License: GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
155 Group: Development/Tools
159 GNU Unifont source data, which could be used to generate or embed
160 fonts in other formats.
162 %description source -l pl.UTF-8
163 Dane źródłowe pakietu GNU Unifont, które można wykorzystać do
164 generowania lub osadzania fontów w innych formatach.
167 Summary: GNU Unifont utility programs
168 Summary(pl.UTF-8): Programy narzędziowe dołączone do pakietu GNU Unifont
170 Group: Development/Tools
173 GNU Unifont utility programs.
175 %description tools -l pl.UTF-8
176 Programy narzędziowe dołączone do pakietu GNU Unifont.
179 Summary: GNU Unifont viewer
180 Summary(pl.UTF-8): Przeglądarka GNU Unifont
182 Group: X11/Applications
185 GNU Unifont viewer based on wxWidgets Perl interface.
187 %description viewer -l pl.UTF-8
188 Przeglądarka GNU Unifont oparta na interfejsie Perla do wxWidgets.
194 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' src/johab2ucs2
201 CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \
202 LDFLAGS="%{rpmldflags}"
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT%{_fontsdir}/OTF
209 DESTDIR=$RPM_BUILD_ROOT \
211 CONSOLEDEST=$RPM_BUILD_ROOT/lib/kbd/consolefonts \
212 OTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/OTF \
213 PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \
214 TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF
216 # sample covering plane 0
217 %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,OTF/unifont*_sample.otf,TTF/unifont_sample.ttf}
219 # doxygen documentation for unpackaged code
220 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/unifont/html
221 %{__rm} $RPM_BUILD_ROOT%{_datadir}/unifont/unifont-doxy.pdf
223 # generated from texi
224 %{__rm} $RPM_BUILD_ROOT%{_datadir}/unifont/unifont.{pdf,txt.gz}
225 # move to standard place
226 install -d $RPM_BUILD_ROOT%{_infodir}
227 %{__mv} $RPM_BUILD_ROOT%{_datadir}/unifont/unifont.info* $RPM_BUILD_ROOT%{_infodir}
230 rm -rf $RPM_BUILD_ROOT
232 %post -n fonts-misc-unifont
235 %postun -n fonts-misc-unifont
238 %post -n fonts-OTF-unifont
241 %postun -n fonts-OTF-unifont
244 %post -n fonts-TTF-unifont
247 %postun -n fonts-TTF-unifont
250 %post tools -p /sbin/postshell
251 -/usr/sbin/fix-info-dir -c %{_infodir}
253 %postun tools -p /sbin/postshell
254 -/usr/sbin/fix-info-dir -c %{_infodir}
256 %files -n fonts-misc-unifont
257 %defattr(644,root,root,755)
258 %doc COPYING ChangeLog NEWS README
259 %{_fontsdir}/misc/unifont.pcf.gz
260 %{_fontsdir}/misc/unifont_csur.pcf.gz
261 %{_mandir}/man5/unifont.5*
263 %files -n fonts-OTF-unifont
264 %defattr(644,root,root,755)
265 %doc COPYING ChangeLog NEWS README
266 %{_fontsdir}/OTF/unifont.otf
267 %{_fontsdir}/OTF/unifont_csur.otf
268 %{_fontsdir}/OTF/unifont_jp.otf
269 %{_fontsdir}/OTF/unifont_upper.otf
271 %files -n fonts-TTF-unifont
272 %defattr(644,root,root,755)
273 %doc COPYING ChangeLog NEWS README
274 %{_fontsdir}/TTF/unifont.ttf
275 %{_fontsdir}/TTF/unifont_csur.ttf
276 %{_fontsdir}/TTF/unifont_upper.ttf
279 %defattr(644,root,root,755)
280 /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz
283 %defattr(644,root,root,755)
284 %doc COPYING ChangeLog NEWS README
285 %dir %{_datadir}/unifont
286 %{_datadir}/unifont/plane00-combining.txt
287 %{_datadir}/unifont/unifont.bmp.gz
288 %{_datadir}/unifont/unifont.hex
289 %{_datadir}/unifont/unifont_all.hex
290 %{_datadir}/unifont/unifont_jp.hex
291 %{_datadir}/unifont/wchardata.c
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_bindir}/bdfimplode
296 %attr(755,root,root) %{_bindir}/hex2bdf
297 %attr(755,root,root) %{_bindir}/hex2otf
298 %attr(755,root,root) %{_bindir}/hex2sfd
299 %attr(755,root,root) %{_bindir}/hexbraille
300 %attr(755,root,root) %{_bindir}/hexdraw
301 %attr(755,root,root) %{_bindir}/hexkinya
302 %attr(755,root,root) %{_bindir}/hexmerge
303 %attr(755,root,root) %{_bindir}/johab2ucs2
304 %attr(755,root,root) %{_bindir}/unibdf2hex
305 %attr(755,root,root) %{_bindir}/unibmp2hex
306 %attr(755,root,root) %{_bindir}/unibmpbump
307 %attr(755,root,root) %{_bindir}/unicoverage
308 %attr(755,root,root) %{_bindir}/unidup
309 %attr(755,root,root) %{_bindir}/unifont1per
310 %attr(755,root,root) %{_bindir}/unifontchojung
311 %attr(755,root,root) %{_bindir}/unifontksx
312 %attr(755,root,root) %{_bindir}/unifontpic
313 %attr(755,root,root) %{_bindir}/unigencircles
314 %attr(755,root,root) %{_bindir}/unigenwidth
315 %attr(755,root,root) %{_bindir}/unihex2bmp
316 %attr(755,root,root) %{_bindir}/unihex2png
317 %attr(755,root,root) %{_bindir}/unihexfill
318 %attr(755,root,root) %{_bindir}/unihexgen
319 %attr(755,root,root) %{_bindir}/unihexrotate
320 %attr(755,root,root) %{_bindir}/unipagecount
321 %attr(755,root,root) %{_bindir}/unipng2hex
322 %{_mandir}/man1/bdfimplode.1*
323 %{_mandir}/man1/hex2bdf.1*
324 %{_mandir}/man1/hex2sfd.1*
325 %{_mandir}/man1/hexbraille.1*
326 %{_mandir}/man1/hexdraw.1*
327 %{_mandir}/man1/hexkinya.1*
328 %{_mandir}/man1/hexmerge.1*
329 %{_mandir}/man1/johab2ucs2.1*
330 %{_mandir}/man1/unibdf2hex.1*
331 %{_mandir}/man1/unibmp2hex.1*
332 %{_mandir}/man1/unibmpbump.1*
333 %{_mandir}/man1/unicoverage.1*
334 %{_mandir}/man1/unidup.1*
335 %{_mandir}/man1/unifont1per.1*
336 %{_mandir}/man1/unifontchojung.1*
337 %{_mandir}/man1/unifontksx.1*
338 %{_mandir}/man1/unifontpic.1*
339 %{_mandir}/man1/unigencircles.1*
340 %{_mandir}/man1/unigenwidth.1*
341 %{_mandir}/man1/unihex2bmp.1*
342 %{_mandir}/man1/unihex2png.1*
343 %{_mandir}/man1/unihexfill.1*
344 %{_mandir}/man1/unihexgen.1*
345 %{_mandir}/man1/unihexrotate.1*
346 %{_mandir}/man1/unipagecount.1*
347 %{_mandir}/man1/unipng2hex.1*
348 %{_infodir}/unifont.info*
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/unifont-viewer
354 %{_mandir}/man1/unifont-viewer.1*