]>
Commit | Line | Data |
---|---|---|
d7ad3529 ER |
1 | # |
2 | # Conditional build: | |
931b6ea9 | 3 | %bcond_without viewer # 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 |
cee84226 | 8 | Version: 15.0.01 |
ec20816d | 9 | Release: 1 |
931b6ea9 | 10 | License: GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) |
0ec7b099 | 11 | Group: Fonts |
c9c3ffc2 | 12 | Source0: https://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz |
cee84226 | 13 | # Source0-md5: d6366a8fd03e815c2f18d36ff1a5cca7 |
5b094f21 | 14 | URL: http://czyborra.com/unifont/ |
539001df | 15 | BuildRequires: fontforge |
ec20816d | 16 | BuildRequires: rpm-build >= 4.6 |
78a735fd | 17 | BuildRequires: rpm-perlprov |
931b6ea9 | 18 | BuildRequires: rpmbuild(macros) >= 1.752 |
f41faa7e | 19 | BuildRequires: xorg-app-bdftopcf |
1cb0199c | 20 | Requires(post,postun): fontpostinst |
09c282e8 | 21 | Requires: %{_fontsdir}/misc |
8fe1eecf | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
5b094f21 JB |
25 | GNU Unifont is an official GNU package. It is a dual-width |
26 | (8x16/16x16) bitmap font, designed to provide coverage for all of | |
27 | Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has | |
e538609f | 28 | a glyph for each visible code point in the Unicode 7.0 Basic |
5b094f21 | 29 | Multilingual Plane (Plane 0). |
8fe1eecf | 30 | |
45624604 | 31 | %description -l pl.UTF-8 |
5b094f21 JB |
32 | GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej |
33 | szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości | |
34 | warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja | |
e538609f | 35 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
5b094f21 JB |
36 | Multilingual Plane (Plane 0). |
37 | ||
539001df | 38 | %package -n fonts-misc-unifont |
5b094f21 JB |
39 | Summary: GNU Unifont - Unicode font in PCF format |
40 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF | |
931b6ea9 | 41 | License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) |
5b094f21 JB |
42 | Group: Fonts |
43 | Requires(post,postun): fontpostinst | |
44 | Requires: %{_fontsdir}/misc | |
e61f9f30 | 45 | Obsoletes: unifont < 6 |
12b1aaf4 | 46 | BuildArch: noarch |
5b094f21 | 47 | |
539001df | 48 | %description -n fonts-misc-unifont |
5b094f21 JB |
49 | GNU Unifont is an official GNU package. It is a dual-width |
50 | (8x16/16x16) bitmap font, designed to provide coverage for all of | |
51 | Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has | |
e538609f | 52 | a glyph for each visible code point in the Unicode 7.0 Basic |
5b094f21 JB |
53 | Multilingual Plane (Plane 0). |
54 | ||
55 | This package contains the font in PCF format. | |
56 | ||
539001df | 57 | %description -n fonts-misc-unifont -l pl.UTF-8 |
5b094f21 JB |
58 | GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej |
59 | szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości | |
60 | warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja | |
e538609f | 61 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
5b094f21 JB |
62 | Multilingual Plane (Plane 0). |
63 | ||
64 | Ten pakiet zawiera font w formacie PCF. | |
65 | ||
cee84226 JP |
66 | %package -n fonts-OTF-unifont |
67 | Summary: GNU Unifont - Unicode font in OpenType format | |
68 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie OpenType | |
69 | License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) | |
70 | Group: Fonts | |
71 | Requires(post,postun): fontpostinst | |
72 | Requires: %{_fontsdir}/OTF | |
73 | BuildArch: noarch | |
74 | ||
75 | %description -n fonts-OTF-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). | |
81 | ||
82 | This package contains the font in OpenType format. | |
83 | ||
84 | %description -n fonts-OTF-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). | |
90 | ||
91 | Ten pakiet zawiera font w formacie OpenType. | |
92 | ||
539001df | 93 | %package -n fonts-TTF-unifont |
ac1fecc1 JP |
94 | Summary: GNU Unifont - Unicode font in TrueType format |
95 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie TrueType | |
931b6ea9 | 96 | License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) |
5b094f21 JB |
97 | Group: Fonts |
98 | Requires(post,postun): fontpostinst | |
99 | Requires: %{_fontsdir}/TTF | |
12b1aaf4 | 100 | BuildArch: noarch |
5b094f21 | 101 | |
539001df | 102 | %description -n fonts-TTF-unifont |
5b094f21 JB |
103 | GNU Unifont is an official GNU package. It is a dual-width |
104 | (8x16/16x16) bitmap font, designed to provide coverage for all of | |
105 | Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has | |
e538609f | 106 | a glyph for each visible code point in the Unicode 7.0 Basic |
5b094f21 JB |
107 | Multilingual Plane (Plane 0). |
108 | ||
ac1fecc1 | 109 | This package contains the font in TrueType format. |
5b094f21 | 110 | |
539001df | 111 | %description -n fonts-TTF-unifont -l pl.UTF-8 |
5b094f21 JB |
112 | GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej |
113 | szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości | |
114 | warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja | |
e538609f | 115 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
5b094f21 JB |
116 | Multilingual Plane (Plane 0). |
117 | ||
ac1fecc1 | 118 | Ten pakiet zawiera font w formacie TrueType. |
5b094f21 | 119 | |
e17ae58b JB |
120 | %package console |
121 | Summary: GNU Unifont - Unicode font in PSF format | |
122 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PSF | |
931b6ea9 | 123 | License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) |
e17ae58b JB |
124 | Group: Fonts |
125 | Requires: kbd | |
12b1aaf4 | 126 | BuildArch: noarch |
e17ae58b JB |
127 | |
128 | %description console | |
129 | GNU Unifont is an official GNU package. It is a dual-width | |
130 | (8x16/16x16) bitmap font, designed to provide coverage for all of | |
131 | Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has | |
e538609f | 132 | a glyph for each visible code point in the Unicode 7.0 Basic |
e17ae58b JB |
133 | Multilingual Plane (Plane 0). |
134 | ||
135 | This package contains 512 glyph subset in PSF format for use with | |
136 | Linux console. | |
137 | ||
138 | %description console -l pl.UTF-8 | |
139 | GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej | |
140 | szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości | |
141 | warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja | |
e538609f | 142 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
e17ae58b JB |
143 | Multilingual Plane (Plane 0). |
144 | ||
145 | Ten pakiet zawiera 512-znakowy podzbiór w formacie PSF, przeznaczony | |
146 | do używania na linuksowej konsoli. | |
147 | ||
4be67cc6 JB |
148 | %package source |
149 | Summary: GNU Unifont source data | |
150 | Summary(pl.UTF-8): Dane źródłowe pakietu GNU Unifont | |
931b6ea9 | 151 | License: GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) |
4be67cc6 | 152 | Group: Development/Tools |
12b1aaf4 | 153 | BuildArch: noarch |
4be67cc6 JB |
154 | |
155 | %description source | |
156 | GNU Unifont source data, which could be used to generate or embed | |
157 | fonts in other formats. | |
158 | ||
159 | %description source -l pl.UTF-8 | |
160 | Dane źródłowe pakietu GNU Unifont, które można wykorzystać do | |
161 | generowania lub osadzania fontów w innych formatach. | |
162 | ||
5b094f21 JB |
163 | %package tools |
164 | Summary: GNU Unifont utility programs | |
165 | Summary(pl.UTF-8): Programy narzędziowe dołączone do pakietu GNU Unifont | |
931b6ea9 | 166 | License: GPL v2+ |
5b094f21 JB |
167 | Group: Development/Tools |
168 | ||
169 | %description tools | |
170 | GNU Unifont utility programs. | |
171 | ||
172 | %description tools -l pl.UTF-8 | |
173 | Programy narzędziowe dołączone do pakietu GNU Unifont. | |
8fe1eecf | 174 | |
78a735fd JB |
175 | %package viewer |
176 | Summary: GNU Unifont viewer | |
177 | Summary(pl.UTF-8): Przeglądarka GNU Unifont | |
931b6ea9 | 178 | License: GPL v2+ |
78a735fd JB |
179 | Group: X11/Applications |
180 | ||
181 | %description viewer | |
182 | GNU Unifont viewer based on wxWidgets Perl interface. | |
183 | ||
184 | %description viewer -l pl.UTF-8 | |
185 | Przeglądarka GNU Unifont oparta na interfejsie Perla do wxWidgets. | |
186 | ||
4be14da3 | 187 | %prep |
71412fc4 | 188 | %setup -q |
4be14da3 | 189 | |
8fe1eecf | 190 | %build |
539001df | 191 | %{__make} -j1 \ |
5b094f21 JB |
192 | CC="%{__cc}" \ |
193 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \ | |
194 | LDFLAGS="%{rpmldflags}" | |
8fe1eecf | 195 | |
196 | %install | |
197 | rm -rf $RPM_BUILD_ROOT | |
4be14da3 | 198 | |
cee84226 JP |
199 | install -d $RPM_BUILD_ROOT%{_fontsdir}/OTF |
200 | ||
5b094f21 JB |
201 | %{__make} install \ |
202 | DESTDIR=$RPM_BUILD_ROOT \ | |
203 | USRDIR=usr \ | |
e17ae58b | 204 | CONSOLEDEST=$RPM_BUILD_ROOT/lib/kbd/consolefonts \ |
cee84226 | 205 | OTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/OTF \ |
5b094f21 JB |
206 | PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \ |
207 | TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF | |
208 | ||
cbda1465 JB |
209 | # sample covering plane 0 |
210 | %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,TTF/unifont_sample.ttf} | |
8fe1eecf | 211 | |
212 | %clean | |
213 | rm -rf $RPM_BUILD_ROOT | |
214 | ||
5b094f21 | 215 | %post -n fonts-misc-unifont |
1cb0199c | 216 | fontpostinst misc |
8fe1eecf | 217 | |
5b094f21 | 218 | %postun -n fonts-misc-unifont |
1cb0199c | 219 | fontpostinst misc |
8fe1eecf | 220 | |
cee84226 JP |
221 | %post -n fonts-OTF-unifont |
222 | fontpostinst OTF | |
223 | ||
224 | %postun -n fonts-OTF-unifont | |
225 | fontpostinst OTF | |
226 | ||
5b094f21 JB |
227 | %post -n fonts-TTF-unifont |
228 | fontpostinst TTF | |
229 | ||
230 | %postun -n fonts-TTF-unifont | |
231 | fontpostinst TTF | |
232 | ||
233 | %files -n fonts-misc-unifont | |
234 | %defattr(644,root,root,755) | |
931b6ea9 | 235 | %doc COPYING ChangeLog NEWS README |
5b094f21 | 236 | %{_fontsdir}/misc/unifont.pcf.gz |
e17ae58b | 237 | %{_fontsdir}/misc/unifont_csur.pcf.gz |
5b094f21 JB |
238 | %{_mandir}/man5/unifont.5* |
239 | ||
cee84226 JP |
240 | %files -n fonts-OTF-unifont |
241 | %defattr(644,root,root,755) | |
242 | %doc COPYING ChangeLog NEWS README | |
243 | %{_fontsdir}/OTF/unifont.otf | |
244 | %{_fontsdir}/OTF/unifont_csur.otf | |
245 | %{_fontsdir}/OTF/unifont_jp.otf | |
246 | %{_fontsdir}/OTF/unifont_upper.otf | |
247 | ||
5b094f21 JB |
248 | %files -n fonts-TTF-unifont |
249 | %defattr(644,root,root,755) | |
931b6ea9 | 250 | %doc COPYING ChangeLog NEWS README |
5b094f21 | 251 | %{_fontsdir}/TTF/unifont.ttf |
e17ae58b JB |
252 | %{_fontsdir}/TTF/unifont_csur.ttf |
253 | %{_fontsdir}/TTF/unifont_upper.ttf | |
e17ae58b JB |
254 | |
255 | %files console | |
256 | %defattr(644,root,root,755) | |
257 | /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz | |
5b094f21 | 258 | |
4be67cc6 JB |
259 | %files source |
260 | %defattr(644,root,root,755) | |
931b6ea9 | 261 | %doc COPYING ChangeLog NEWS README |
4be67cc6 | 262 | %dir %{_datadir}/unifont |
008d5807 | 263 | %{_datadir}/unifont/plane00-combining.txt |
b25fea55 | 264 | %{_datadir}/unifont/unifont.bmp.gz |
4be67cc6 JB |
265 | %{_datadir}/unifont/unifont.hex |
266 | %{_datadir}/unifont/wchardata.c | |
267 | ||
5b094f21 | 268 | %files tools |
8fe1eecf | 269 | %defattr(644,root,root,755) |
5b094f21 JB |
270 | %attr(755,root,root) %{_bindir}/bdfimplode |
271 | %attr(755,root,root) %{_bindir}/hex2bdf | |
8833ef92 | 272 | %attr(755,root,root) %{_bindir}/hex2otf |
5b094f21 JB |
273 | %attr(755,root,root) %{_bindir}/hex2sfd |
274 | %attr(755,root,root) %{_bindir}/hexbraille | |
275 | %attr(755,root,root) %{_bindir}/hexdraw | |
e17ae58b | 276 | %attr(755,root,root) %{_bindir}/hexkinya |
5b094f21 JB |
277 | %attr(755,root,root) %{_bindir}/hexmerge |
278 | %attr(755,root,root) %{_bindir}/johab2ucs2 | |
279 | %attr(755,root,root) %{_bindir}/unibdf2hex | |
280 | %attr(755,root,root) %{_bindir}/unibmp2hex | |
c9c3ffc2 | 281 | %attr(755,root,root) %{_bindir}/unibmpbump |
5b094f21 JB |
282 | %attr(755,root,root) %{_bindir}/unicoverage |
283 | %attr(755,root,root) %{_bindir}/unidup | |
cee5abe1 | 284 | %attr(755,root,root) %{_bindir}/unifont1per |
5b094f21 JB |
285 | %attr(755,root,root) %{_bindir}/unifontchojung |
286 | %attr(755,root,root) %{_bindir}/unifontksx | |
287 | %attr(755,root,root) %{_bindir}/unifontpic | |
288 | %attr(755,root,root) %{_bindir}/unigencircles | |
289 | %attr(755,root,root) %{_bindir}/unigenwidth | |
290 | %attr(755,root,root) %{_bindir}/unihex2bmp | |
cbda1465 | 291 | %attr(755,root,root) %{_bindir}/unihex2png |
78a735fd | 292 | %attr(755,root,root) %{_bindir}/unihexfill |
5b094f21 | 293 | %attr(755,root,root) %{_bindir}/unihexgen |
c9c3ffc2 | 294 | %attr(755,root,root) %{_bindir}/unihexrotate |
5b094f21 | 295 | %attr(755,root,root) %{_bindir}/unipagecount |
cbda1465 | 296 | %attr(755,root,root) %{_bindir}/unipng2hex |
5b094f21 JB |
297 | %{_mandir}/man1/bdfimplode.1* |
298 | %{_mandir}/man1/hex2bdf.1* | |
299 | %{_mandir}/man1/hex2sfd.1* | |
300 | %{_mandir}/man1/hexbraille.1* | |
301 | %{_mandir}/man1/hexdraw.1* | |
e17ae58b | 302 | %{_mandir}/man1/hexkinya.1* |
5b094f21 JB |
303 | %{_mandir}/man1/hexmerge.1* |
304 | %{_mandir}/man1/johab2ucs2.1* | |
305 | %{_mandir}/man1/unibdf2hex.1* | |
306 | %{_mandir}/man1/unibmp2hex.1* | |
c9c3ffc2 | 307 | %{_mandir}/man1/unibmpbump.1* |
5b094f21 JB |
308 | %{_mandir}/man1/unicoverage.1* |
309 | %{_mandir}/man1/unidup.1* | |
cee5abe1 | 310 | %{_mandir}/man1/unifont1per.1* |
5b094f21 JB |
311 | %{_mandir}/man1/unifontchojung.1* |
312 | %{_mandir}/man1/unifontksx.1* | |
313 | %{_mandir}/man1/unifontpic.1* | |
314 | %{_mandir}/man1/unigencircles.1* | |
315 | %{_mandir}/man1/unigenwidth.1* | |
316 | %{_mandir}/man1/unihex2bmp.1* | |
cbda1465 | 317 | %{_mandir}/man1/unihex2png.1* |
e538609f | 318 | %{_mandir}/man1/unihexfill.1* |
5b094f21 | 319 | %{_mandir}/man1/unihexgen.1* |
c9c3ffc2 | 320 | %{_mandir}/man1/unihexrotate.1* |
5b094f21 | 321 | %{_mandir}/man1/unipagecount.1* |
cbda1465 | 322 | %{_mandir}/man1/unipng2hex.1* |
78a735fd | 323 | |
23464367 | 324 | %if %{with viewer} |
78a735fd JB |
325 | %files viewer |
326 | %defattr(644,root,root,755) | |
327 | %attr(755,root,root) %{_bindir}/unifont-viewer | |
50c43191 | 328 | %{_mandir}/man1/unifont-viewer.1* |
23464367 | 329 | %endif |