]>
Commit | Line | Data |
---|---|---|
d7ad3529 ER |
1 | # |
2 | # Conditional build: | |
4be67cc6 | 3 | %bcond_without viewer # build unifont-viewer package (requires perl-Wx) |
23464367 | 4 | |
5b094f21 JB |
5 | Summary: GNU Unifont - Unicode bitmap font |
6 | Summary(pl.UTF-8): GNU Unifont - font bitmapowy Unicode | |
8fe1eecf | 7 | Name: unifont |
292e8109 | 8 | Version: 12.1.04 |
50c43191 | 9 | Release: 1 |
5b094f21 | 10 | License: GPL v2+ with GNU font embedding exception |
0ec7b099 | 11 | Group: Fonts |
c9c3ffc2 | 12 | Source0: https://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz |
292e8109 | 13 | # Source0-md5: b227ac14cefc5c437d66572b0d139d7b |
5b094f21 | 14 | URL: http://czyborra.com/unifont/ |
539001df | 15 | BuildRequires: fontforge |
78a735fd | 16 | BuildRequires: rpm-perlprov |
f41faa7e | 17 | BuildRequires: xorg-app-bdftopcf |
1cb0199c | 18 | Requires(post,postun): fontpostinst |
09c282e8 | 19 | Requires: %{_fontsdir}/misc |
8fe1eecf | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
5b094f21 JB |
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 | |
e538609f | 26 | a glyph for each visible code point in the Unicode 7.0 Basic |
5b094f21 | 27 | Multilingual Plane (Plane 0). |
8fe1eecf | 28 | |
45624604 | 29 | %description -l pl.UTF-8 |
5b094f21 JB |
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 | |
e538609f | 33 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
5b094f21 JB |
34 | Multilingual Plane (Plane 0). |
35 | ||
539001df | 36 | %package -n fonts-misc-unifont |
5b094f21 JB |
37 | Summary: GNU Unifont - Unicode font in PCF format |
38 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF | |
39 | Group: Fonts | |
40 | Requires(post,postun): fontpostinst | |
41 | Requires: %{_fontsdir}/misc | |
42 | Obsoletes: unifont | |
f41faa7e ER |
43 | %if "%{_rpmversion}" >= "5" |
44 | BuildArch: noarch | |
45 | %endif | |
5b094f21 | 46 | |
539001df | 47 | %description -n fonts-misc-unifont |
5b094f21 JB |
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 | |
e538609f | 51 | a glyph for each visible code point in the Unicode 7.0 Basic |
5b094f21 JB |
52 | Multilingual Plane (Plane 0). |
53 | ||
54 | This package contains the font in PCF format. | |
55 | ||
539001df | 56 | %description -n fonts-misc-unifont -l pl.UTF-8 |
5b094f21 JB |
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 | |
e538609f | 60 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
5b094f21 JB |
61 | Multilingual Plane (Plane 0). |
62 | ||
63 | Ten pakiet zawiera font w formacie PCF. | |
64 | ||
539001df | 65 | %package -n fonts-TTF-unifont |
5b094f21 JB |
66 | Summary: GNU Unifont - Unicode font in PCF format |
67 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF | |
68 | Group: Fonts | |
69 | Requires(post,postun): fontpostinst | |
70 | Requires: %{_fontsdir}/TTF | |
f41faa7e ER |
71 | %if "%{_rpmversion}" >= "5" |
72 | BuildArch: noarch | |
73 | %endif | |
5b094f21 | 74 | |
539001df | 75 | %description -n fonts-TTF-unifont |
5b094f21 JB |
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 | |
e538609f | 79 | a glyph for each visible code point in the Unicode 7.0 Basic |
5b094f21 JB |
80 | Multilingual Plane (Plane 0). |
81 | ||
82 | This package contains the font in TTF format. | |
83 | ||
539001df | 84 | %description -n fonts-TTF-unifont -l pl.UTF-8 |
5b094f21 JB |
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 | |
e538609f | 88 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
5b094f21 JB |
89 | Multilingual Plane (Plane 0). |
90 | ||
91 | Ten pakiet zawiera font w formacie TTF. | |
92 | ||
e17ae58b JB |
93 | %package console |
94 | Summary: GNU Unifont - Unicode font in PSF format | |
95 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PSF | |
96 | Group: Fonts | |
97 | Requires: kbd | |
98 | ||
99 | %description console | |
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 | |
e538609f | 103 | a glyph for each visible code point in the Unicode 7.0 Basic |
e17ae58b JB |
104 | Multilingual Plane (Plane 0). |
105 | ||
106 | This package contains 512 glyph subset in PSF format for use with | |
107 | Linux console. | |
108 | ||
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 | |
e538609f | 113 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
e17ae58b JB |
114 | Multilingual Plane (Plane 0). |
115 | ||
116 | Ten pakiet zawiera 512-znakowy podzbiór w formacie PSF, przeznaczony | |
117 | do używania na linuksowej konsoli. | |
118 | ||
4be67cc6 JB |
119 | %package source |
120 | Summary: GNU Unifont source data | |
121 | Summary(pl.UTF-8): Dane źródłowe pakietu GNU Unifont | |
122 | Group: Development/Tools | |
123 | ||
124 | %description source | |
125 | GNU Unifont source data, which could be used to generate or embed | |
126 | fonts in other formats. | |
127 | ||
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. | |
131 | ||
5b094f21 JB |
132 | %package tools |
133 | Summary: GNU Unifont utility programs | |
134 | Summary(pl.UTF-8): Programy narzędziowe dołączone do pakietu GNU Unifont | |
135 | Group: Development/Tools | |
136 | ||
137 | %description tools | |
138 | GNU Unifont utility programs. | |
139 | ||
140 | %description tools -l pl.UTF-8 | |
141 | Programy narzędziowe dołączone do pakietu GNU Unifont. | |
8fe1eecf | 142 | |
78a735fd JB |
143 | %package viewer |
144 | Summary: GNU Unifont viewer | |
145 | Summary(pl.UTF-8): Przeglądarka GNU Unifont | |
146 | Group: X11/Applications | |
147 | ||
148 | %description viewer | |
149 | GNU Unifont viewer based on wxWidgets Perl interface. | |
150 | ||
151 | %description viewer -l pl.UTF-8 | |
152 | Przeglądarka GNU Unifont oparta na interfejsie Perla do wxWidgets. | |
153 | ||
4be14da3 | 154 | %prep |
71412fc4 | 155 | %setup -q |
4be14da3 | 156 | |
8fe1eecf | 157 | %build |
539001df | 158 | %{__make} -j1 \ |
5b094f21 JB |
159 | CC="%{__cc}" \ |
160 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \ | |
161 | LDFLAGS="%{rpmldflags}" | |
8fe1eecf | 162 | |
163 | %install | |
164 | rm -rf $RPM_BUILD_ROOT | |
4be14da3 | 165 | |
5b094f21 JB |
166 | %{__make} install \ |
167 | DESTDIR=$RPM_BUILD_ROOT \ | |
168 | USRDIR=usr \ | |
e17ae58b | 169 | CONSOLEDEST=$RPM_BUILD_ROOT/lib/kbd/consolefonts \ |
5b094f21 JB |
170 | PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \ |
171 | TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF | |
172 | ||
cbda1465 JB |
173 | # sample covering plane 0 |
174 | %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,TTF/unifont_sample.ttf} | |
8fe1eecf | 175 | |
176 | %clean | |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
5b094f21 | 179 | %post -n fonts-misc-unifont |
1cb0199c | 180 | fontpostinst misc |
8fe1eecf | 181 | |
5b094f21 | 182 | %postun -n fonts-misc-unifont |
1cb0199c | 183 | fontpostinst misc |
8fe1eecf | 184 | |
5b094f21 JB |
185 | %post -n fonts-TTF-unifont |
186 | fontpostinst TTF | |
187 | ||
188 | %postun -n fonts-TTF-unifont | |
189 | fontpostinst TTF | |
190 | ||
191 | %files -n fonts-misc-unifont | |
192 | %defattr(644,root,root,755) | |
6e1988af | 193 | %doc ChangeLog NEWS README |
5b094f21 | 194 | %{_fontsdir}/misc/unifont.pcf.gz |
e17ae58b | 195 | %{_fontsdir}/misc/unifont_csur.pcf.gz |
5b094f21 JB |
196 | %{_mandir}/man5/unifont.5* |
197 | ||
198 | %files -n fonts-TTF-unifont | |
199 | %defattr(644,root,root,755) | |
200 | %{_fontsdir}/TTF/unifont.ttf | |
e17ae58b JB |
201 | %{_fontsdir}/TTF/unifont_csur.ttf |
202 | %{_fontsdir}/TTF/unifont_upper.ttf | |
e17ae58b JB |
203 | |
204 | %files console | |
205 | %defattr(644,root,root,755) | |
206 | /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz | |
5b094f21 | 207 | |
4be67cc6 JB |
208 | %files source |
209 | %defattr(644,root,root,755) | |
210 | %dir %{_datadir}/unifont | |
008d5807 | 211 | %{_datadir}/unifont/plane00-combining.txt |
b25fea55 | 212 | %{_datadir}/unifont/unifont.bmp.gz |
4be67cc6 JB |
213 | %{_datadir}/unifont/unifont.hex |
214 | %{_datadir}/unifont/wchardata.c | |
215 | ||
5b094f21 | 216 | %files tools |
8fe1eecf | 217 | %defattr(644,root,root,755) |
5b094f21 JB |
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 | |
e17ae58b | 223 | %attr(755,root,root) %{_bindir}/hexkinya |
5b094f21 JB |
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 | |
c9c3ffc2 | 228 | %attr(755,root,root) %{_bindir}/unibmpbump |
5b094f21 JB |
229 | %attr(755,root,root) %{_bindir}/unicoverage |
230 | %attr(755,root,root) %{_bindir}/unidup | |
cee5abe1 | 231 | %attr(755,root,root) %{_bindir}/unifont1per |
5b094f21 JB |
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 | |
cbda1465 | 238 | %attr(755,root,root) %{_bindir}/unihex2png |
78a735fd | 239 | %attr(755,root,root) %{_bindir}/unihexfill |
5b094f21 | 240 | %attr(755,root,root) %{_bindir}/unihexgen |
c9c3ffc2 | 241 | %attr(755,root,root) %{_bindir}/unihexrotate |
5b094f21 | 242 | %attr(755,root,root) %{_bindir}/unipagecount |
cbda1465 | 243 | %attr(755,root,root) %{_bindir}/unipng2hex |
5b094f21 JB |
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* | |
e17ae58b | 249 | %{_mandir}/man1/hexkinya.1* |
5b094f21 JB |
250 | %{_mandir}/man1/hexmerge.1* |
251 | %{_mandir}/man1/johab2ucs2.1* | |
252 | %{_mandir}/man1/unibdf2hex.1* | |
253 | %{_mandir}/man1/unibmp2hex.1* | |
c9c3ffc2 | 254 | %{_mandir}/man1/unibmpbump.1* |
5b094f21 JB |
255 | %{_mandir}/man1/unicoverage.1* |
256 | %{_mandir}/man1/unidup.1* | |
cee5abe1 | 257 | %{_mandir}/man1/unifont1per.1* |
5b094f21 JB |
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* | |
cbda1465 | 264 | %{_mandir}/man1/unihex2png.1* |
e538609f | 265 | %{_mandir}/man1/unihexfill.1* |
5b094f21 | 266 | %{_mandir}/man1/unihexgen.1* |
c9c3ffc2 | 267 | %{_mandir}/man1/unihexrotate.1* |
5b094f21 | 268 | %{_mandir}/man1/unipagecount.1* |
cbda1465 | 269 | %{_mandir}/man1/unipng2hex.1* |
78a735fd | 270 | |
23464367 | 271 | %if %{with viewer} |
78a735fd JB |
272 | %files viewer |
273 | %defattr(644,root,root,755) | |
274 | %attr(755,root,root) %{_bindir}/unifont-viewer | |
50c43191 | 275 | %{_mandir}/man1/unifont-viewer.1* |
23464367 | 276 | %endif |