3 %bcond_without viewer # build 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+ with GNU font embedding exception
12 Source0: https://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: ee5e7606f7aa273777408cd363ec0624
14 URL: http://czyborra.com/unifont/
15 BuildRequires: fontforge
16 BuildRequires: rpm-perlprov
17 BuildRequires: xorg-app-bdftopcf
18 Requires(post,postun): fontpostinst
19 Requires: %{_fontsdir}/misc
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 GNU Unifont is an official GNU package. It is a dual-width
24 (8x16/16x16) bitmap font, designed to provide coverage for all of
25 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
26 a glyph for each visible code point in the Unicode 7.0 Basic
27 Multilingual Plane (Plane 0).
29 %description -l pl.UTF-8
30 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
31 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
32 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
33 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
34 Multilingual Plane (Plane 0).
36 %package -n fonts-misc-unifont
37 Summary: GNU Unifont - Unicode font in PCF format
38 Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF
40 Requires(post,postun): fontpostinst
41 Requires: %{_fontsdir}/misc
43 %if "%{_rpmversion}" >= "5"
47 %description -n fonts-misc-unifont
48 GNU Unifont is an official GNU package. It is a dual-width
49 (8x16/16x16) bitmap font, designed to provide coverage for all of
50 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
51 a glyph for each visible code point in the Unicode 7.0 Basic
52 Multilingual Plane (Plane 0).
54 This package contains the font in PCF format.
56 %description -n fonts-misc-unifont -l pl.UTF-8
57 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
58 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
59 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
60 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
61 Multilingual Plane (Plane 0).
63 Ten pakiet zawiera font w formacie PCF.
65 %package -n fonts-TTF-unifont
66 Summary: GNU Unifont - Unicode font in PCF format
67 Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF
69 Requires(post,postun): fontpostinst
70 Requires: %{_fontsdir}/TTF
71 %if "%{_rpmversion}" >= "5"
75 %description -n fonts-TTF-unifont
76 GNU Unifont is an official GNU package. It is a dual-width
77 (8x16/16x16) bitmap font, designed to provide coverage for all of
78 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
79 a glyph for each visible code point in the Unicode 7.0 Basic
80 Multilingual Plane (Plane 0).
82 This package contains the font in TTF format.
84 %description -n fonts-TTF-unifont -l pl.UTF-8
85 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
86 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
87 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
88 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
89 Multilingual Plane (Plane 0).
91 Ten pakiet zawiera font w formacie TTF.
94 Summary: GNU Unifont - Unicode font in PSF format
95 Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PSF
100 GNU Unifont is an official GNU package. It is a dual-width
101 (8x16/16x16) bitmap font, designed to provide coverage for all of
102 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
103 a glyph for each visible code point in the Unicode 7.0 Basic
104 Multilingual Plane (Plane 0).
106 This package contains 512 glyph subset in PSF format for use with
109 %description console -l pl.UTF-8
110 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
111 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
112 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
113 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
114 Multilingual Plane (Plane 0).
116 Ten pakiet zawiera 512-znakowy podzbiór w formacie PSF, przeznaczony
117 do używania na linuksowej konsoli.
120 Summary: GNU Unifont source data
121 Summary(pl.UTF-8): Dane źródłowe pakietu GNU Unifont
122 Group: Development/Tools
125 GNU Unifont source data, which could be used to generate or embed
126 fonts in other formats.
128 %description source -l pl.UTF-8
129 Dane źródłowe pakietu GNU Unifont, które można wykorzystać do
130 generowania lub osadzania fontów w innych formatach.
133 Summary: GNU Unifont utility programs
134 Summary(pl.UTF-8): Programy narzędziowe dołączone do pakietu GNU Unifont
135 Group: Development/Tools
138 GNU Unifont utility programs.
140 %description tools -l pl.UTF-8
141 Programy narzędziowe dołączone do pakietu GNU Unifont.
144 Summary: GNU Unifont viewer
145 Summary(pl.UTF-8): Przeglądarka GNU Unifont
146 Group: X11/Applications
149 GNU Unifont viewer based on wxWidgets Perl interface.
151 %description viewer -l pl.UTF-8
152 Przeglądarka GNU Unifont oparta na interfejsie Perla do wxWidgets.
160 CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \
161 LDFLAGS="%{rpmldflags}"
164 rm -rf $RPM_BUILD_ROOT
167 DESTDIR=$RPM_BUILD_ROOT \
169 CONSOLEDEST=$RPM_BUILD_ROOT/lib/kbd/consolefonts \
170 PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \
171 TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF
173 # sample covering plane 0
174 %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,TTF/unifont_sample.ttf}
177 rm -rf $RPM_BUILD_ROOT
179 %post -n fonts-misc-unifont
182 %postun -n fonts-misc-unifont
185 %post -n fonts-TTF-unifont
188 %postun -n fonts-TTF-unifont
191 %files -n fonts-misc-unifont
192 %defattr(644,root,root,755)
193 %doc ChangeLog NEWS README
194 %{_fontsdir}/misc/unifont.pcf.gz
195 %{_fontsdir}/misc/unifont_csur.pcf.gz
196 %{_mandir}/man5/unifont.5*
198 %files -n fonts-TTF-unifont
199 %defattr(644,root,root,755)
200 %{_fontsdir}/TTF/unifont.ttf
201 %{_fontsdir}/TTF/unifont_csur.ttf
202 %{_fontsdir}/TTF/unifont_upper.ttf
205 %defattr(644,root,root,755)
206 /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz
209 %defattr(644,root,root,755)
210 %dir %{_datadir}/unifont
211 %{_datadir}/unifont/plane00-combining.txt
212 %{_datadir}/unifont/unifont.bmp.gz
213 %{_datadir}/unifont/unifont.hex
214 %{_datadir}/unifont/wchardata.c
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_bindir}/bdfimplode
219 %attr(755,root,root) %{_bindir}/hex2bdf
220 %attr(755,root,root) %{_bindir}/hex2sfd
221 %attr(755,root,root) %{_bindir}/hexbraille
222 %attr(755,root,root) %{_bindir}/hexdraw
223 %attr(755,root,root) %{_bindir}/hexkinya
224 %attr(755,root,root) %{_bindir}/hexmerge
225 %attr(755,root,root) %{_bindir}/johab2ucs2
226 %attr(755,root,root) %{_bindir}/unibdf2hex
227 %attr(755,root,root) %{_bindir}/unibmp2hex
228 %attr(755,root,root) %{_bindir}/unibmpbump
229 %attr(755,root,root) %{_bindir}/unicoverage
230 %attr(755,root,root) %{_bindir}/unidup
231 %attr(755,root,root) %{_bindir}/unifont1per
232 %attr(755,root,root) %{_bindir}/unifontchojung
233 %attr(755,root,root) %{_bindir}/unifontksx
234 %attr(755,root,root) %{_bindir}/unifontpic
235 %attr(755,root,root) %{_bindir}/unigencircles
236 %attr(755,root,root) %{_bindir}/unigenwidth
237 %attr(755,root,root) %{_bindir}/unihex2bmp
238 %attr(755,root,root) %{_bindir}/unihex2png
239 %attr(755,root,root) %{_bindir}/unihexfill
240 %attr(755,root,root) %{_bindir}/unihexgen
241 %attr(755,root,root) %{_bindir}/unihexrotate
242 %attr(755,root,root) %{_bindir}/unipagecount
243 %attr(755,root,root) %{_bindir}/unipng2hex
244 %{_mandir}/man1/bdfimplode.1*
245 %{_mandir}/man1/hex2bdf.1*
246 %{_mandir}/man1/hex2sfd.1*
247 %{_mandir}/man1/hexbraille.1*
248 %{_mandir}/man1/hexdraw.1*
249 %{_mandir}/man1/hexkinya.1*
250 %{_mandir}/man1/hexmerge.1*
251 %{_mandir}/man1/johab2ucs2.1*
252 %{_mandir}/man1/unibdf2hex.1*
253 %{_mandir}/man1/unibmp2hex.1*
254 %{_mandir}/man1/unibmpbump.1*
255 %{_mandir}/man1/unicoverage.1*
256 %{_mandir}/man1/unidup.1*
257 %{_mandir}/man1/unifont1per.1*
258 %{_mandir}/man1/unifontchojung.1*
259 %{_mandir}/man1/unifontksx.1*
260 %{_mandir}/man1/unifontpic.1*
261 %{_mandir}/man1/unigencircles.1*
262 %{_mandir}/man1/unigenwidth.1*
263 %{_mandir}/man1/unihex2bmp.1*
264 %{_mandir}/man1/unihex2png.1*
265 %{_mandir}/man1/unihexfill.1*
266 %{_mandir}/man1/unihexgen.1*
267 %{_mandir}/man1/unihexrotate.1*
268 %{_mandir}/man1/unipagecount.1*
269 %{_mandir}/man1/unipng2hex.1*
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_bindir}/unifont-viewer
275 %{_mandir}/man1/unifont-viewer.1*