]>
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 |
8833ef92 | 8 | Version: 14.0.04 |
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 |
8833ef92 | 13 | # Source0-md5: ea0476db0bd55de5fbeccfc7d6214dbf |
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 | |
45 | Obsoletes: unifont | |
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 | ||
539001df | 66 | %package -n fonts-TTF-unifont |
5b094f21 JB |
67 | Summary: GNU Unifont - Unicode font in PCF format |
68 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF | |
931b6ea9 | 69 | License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) |
5b094f21 JB |
70 | Group: Fonts |
71 | Requires(post,postun): fontpostinst | |
72 | Requires: %{_fontsdir}/TTF | |
12b1aaf4 | 73 | BuildArch: noarch |
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 | |
931b6ea9 | 96 | License: SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) |
e17ae58b JB |
97 | Group: Fonts |
98 | Requires: kbd | |
12b1aaf4 | 99 | BuildArch: noarch |
e17ae58b JB |
100 | |
101 | %description console | |
102 | GNU Unifont is an official GNU package. It is a dual-width | |
103 | (8x16/16x16) bitmap font, designed to provide coverage for all of | |
104 | Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has | |
e538609f | 105 | a glyph for each visible code point in the Unicode 7.0 Basic |
e17ae58b JB |
106 | Multilingual Plane (Plane 0). |
107 | ||
108 | This package contains 512 glyph subset in PSF format for use with | |
109 | Linux console. | |
110 | ||
111 | %description console -l pl.UTF-8 | |
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 |
e17ae58b JB |
116 | Multilingual Plane (Plane 0). |
117 | ||
118 | Ten pakiet zawiera 512-znakowy podzbiór w formacie PSF, przeznaczony | |
119 | do używania na linuksowej konsoli. | |
120 | ||
4be67cc6 JB |
121 | %package source |
122 | Summary: GNU Unifont source data | |
123 | Summary(pl.UTF-8): Dane źródłowe pakietu GNU Unifont | |
931b6ea9 | 124 | License: GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts) |
4be67cc6 | 125 | Group: Development/Tools |
12b1aaf4 | 126 | BuildArch: noarch |
4be67cc6 JB |
127 | |
128 | %description source | |
129 | GNU Unifont source data, which could be used to generate or embed | |
130 | fonts in other formats. | |
131 | ||
132 | %description source -l pl.UTF-8 | |
133 | Dane źródłowe pakietu GNU Unifont, które można wykorzystać do | |
134 | generowania lub osadzania fontów w innych formatach. | |
135 | ||
5b094f21 JB |
136 | %package tools |
137 | Summary: GNU Unifont utility programs | |
138 | Summary(pl.UTF-8): Programy narzędziowe dołączone do pakietu GNU Unifont | |
931b6ea9 | 139 | License: GPL v2+ |
5b094f21 JB |
140 | Group: Development/Tools |
141 | ||
142 | %description tools | |
143 | GNU Unifont utility programs. | |
144 | ||
145 | %description tools -l pl.UTF-8 | |
146 | Programy narzędziowe dołączone do pakietu GNU Unifont. | |
8fe1eecf | 147 | |
78a735fd JB |
148 | %package viewer |
149 | Summary: GNU Unifont viewer | |
150 | Summary(pl.UTF-8): Przeglądarka GNU Unifont | |
931b6ea9 | 151 | License: GPL v2+ |
78a735fd JB |
152 | Group: X11/Applications |
153 | ||
154 | %description viewer | |
155 | GNU Unifont viewer based on wxWidgets Perl interface. | |
156 | ||
157 | %description viewer -l pl.UTF-8 | |
158 | Przeglądarka GNU Unifont oparta na interfejsie Perla do wxWidgets. | |
159 | ||
4be14da3 | 160 | %prep |
71412fc4 | 161 | %setup -q |
4be14da3 | 162 | |
8fe1eecf | 163 | %build |
539001df | 164 | %{__make} -j1 \ |
5b094f21 JB |
165 | CC="%{__cc}" \ |
166 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \ | |
167 | LDFLAGS="%{rpmldflags}" | |
8fe1eecf | 168 | |
169 | %install | |
170 | rm -rf $RPM_BUILD_ROOT | |
4be14da3 | 171 | |
5b094f21 JB |
172 | %{__make} install \ |
173 | DESTDIR=$RPM_BUILD_ROOT \ | |
174 | USRDIR=usr \ | |
e17ae58b | 175 | CONSOLEDEST=$RPM_BUILD_ROOT/lib/kbd/consolefonts \ |
5b094f21 JB |
176 | PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \ |
177 | TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF | |
178 | ||
cbda1465 JB |
179 | # sample covering plane 0 |
180 | %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,TTF/unifont_sample.ttf} | |
8fe1eecf | 181 | |
182 | %clean | |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | ||
5b094f21 | 185 | %post -n fonts-misc-unifont |
1cb0199c | 186 | fontpostinst misc |
8fe1eecf | 187 | |
5b094f21 | 188 | %postun -n fonts-misc-unifont |
1cb0199c | 189 | fontpostinst misc |
8fe1eecf | 190 | |
5b094f21 JB |
191 | %post -n fonts-TTF-unifont |
192 | fontpostinst TTF | |
193 | ||
194 | %postun -n fonts-TTF-unifont | |
195 | fontpostinst TTF | |
196 | ||
197 | %files -n fonts-misc-unifont | |
198 | %defattr(644,root,root,755) | |
931b6ea9 | 199 | %doc COPYING ChangeLog NEWS README |
5b094f21 | 200 | %{_fontsdir}/misc/unifont.pcf.gz |
e17ae58b | 201 | %{_fontsdir}/misc/unifont_csur.pcf.gz |
5b094f21 JB |
202 | %{_mandir}/man5/unifont.5* |
203 | ||
204 | %files -n fonts-TTF-unifont | |
205 | %defattr(644,root,root,755) | |
931b6ea9 | 206 | %doc COPYING ChangeLog NEWS README |
5b094f21 | 207 | %{_fontsdir}/TTF/unifont.ttf |
e17ae58b JB |
208 | %{_fontsdir}/TTF/unifont_csur.ttf |
209 | %{_fontsdir}/TTF/unifont_upper.ttf | |
e17ae58b JB |
210 | |
211 | %files console | |
212 | %defattr(644,root,root,755) | |
213 | /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz | |
5b094f21 | 214 | |
4be67cc6 JB |
215 | %files source |
216 | %defattr(644,root,root,755) | |
931b6ea9 | 217 | %doc COPYING ChangeLog NEWS README |
4be67cc6 | 218 | %dir %{_datadir}/unifont |
008d5807 | 219 | %{_datadir}/unifont/plane00-combining.txt |
b25fea55 | 220 | %{_datadir}/unifont/unifont.bmp.gz |
4be67cc6 JB |
221 | %{_datadir}/unifont/unifont.hex |
222 | %{_datadir}/unifont/wchardata.c | |
223 | ||
5b094f21 | 224 | %files tools |
8fe1eecf | 225 | %defattr(644,root,root,755) |
5b094f21 JB |
226 | %attr(755,root,root) %{_bindir}/bdfimplode |
227 | %attr(755,root,root) %{_bindir}/hex2bdf | |
8833ef92 | 228 | %attr(755,root,root) %{_bindir}/hex2otf |
5b094f21 JB |
229 | %attr(755,root,root) %{_bindir}/hex2sfd |
230 | %attr(755,root,root) %{_bindir}/hexbraille | |
231 | %attr(755,root,root) %{_bindir}/hexdraw | |
e17ae58b | 232 | %attr(755,root,root) %{_bindir}/hexkinya |
5b094f21 JB |
233 | %attr(755,root,root) %{_bindir}/hexmerge |
234 | %attr(755,root,root) %{_bindir}/johab2ucs2 | |
235 | %attr(755,root,root) %{_bindir}/unibdf2hex | |
236 | %attr(755,root,root) %{_bindir}/unibmp2hex | |
c9c3ffc2 | 237 | %attr(755,root,root) %{_bindir}/unibmpbump |
5b094f21 JB |
238 | %attr(755,root,root) %{_bindir}/unicoverage |
239 | %attr(755,root,root) %{_bindir}/unidup | |
cee5abe1 | 240 | %attr(755,root,root) %{_bindir}/unifont1per |
5b094f21 JB |
241 | %attr(755,root,root) %{_bindir}/unifontchojung |
242 | %attr(755,root,root) %{_bindir}/unifontksx | |
243 | %attr(755,root,root) %{_bindir}/unifontpic | |
244 | %attr(755,root,root) %{_bindir}/unigencircles | |
245 | %attr(755,root,root) %{_bindir}/unigenwidth | |
246 | %attr(755,root,root) %{_bindir}/unihex2bmp | |
cbda1465 | 247 | %attr(755,root,root) %{_bindir}/unihex2png |
78a735fd | 248 | %attr(755,root,root) %{_bindir}/unihexfill |
5b094f21 | 249 | %attr(755,root,root) %{_bindir}/unihexgen |
c9c3ffc2 | 250 | %attr(755,root,root) %{_bindir}/unihexrotate |
5b094f21 | 251 | %attr(755,root,root) %{_bindir}/unipagecount |
cbda1465 | 252 | %attr(755,root,root) %{_bindir}/unipng2hex |
5b094f21 JB |
253 | %{_mandir}/man1/bdfimplode.1* |
254 | %{_mandir}/man1/hex2bdf.1* | |
255 | %{_mandir}/man1/hex2sfd.1* | |
256 | %{_mandir}/man1/hexbraille.1* | |
257 | %{_mandir}/man1/hexdraw.1* | |
e17ae58b | 258 | %{_mandir}/man1/hexkinya.1* |
5b094f21 JB |
259 | %{_mandir}/man1/hexmerge.1* |
260 | %{_mandir}/man1/johab2ucs2.1* | |
261 | %{_mandir}/man1/unibdf2hex.1* | |
262 | %{_mandir}/man1/unibmp2hex.1* | |
c9c3ffc2 | 263 | %{_mandir}/man1/unibmpbump.1* |
5b094f21 JB |
264 | %{_mandir}/man1/unicoverage.1* |
265 | %{_mandir}/man1/unidup.1* | |
cee5abe1 | 266 | %{_mandir}/man1/unifont1per.1* |
5b094f21 JB |
267 | %{_mandir}/man1/unifontchojung.1* |
268 | %{_mandir}/man1/unifontksx.1* | |
269 | %{_mandir}/man1/unifontpic.1* | |
270 | %{_mandir}/man1/unigencircles.1* | |
271 | %{_mandir}/man1/unigenwidth.1* | |
272 | %{_mandir}/man1/unihex2bmp.1* | |
cbda1465 | 273 | %{_mandir}/man1/unihex2png.1* |
e538609f | 274 | %{_mandir}/man1/unihexfill.1* |
5b094f21 | 275 | %{_mandir}/man1/unihexgen.1* |
c9c3ffc2 | 276 | %{_mandir}/man1/unihexrotate.1* |
5b094f21 | 277 | %{_mandir}/man1/unipagecount.1* |
cbda1465 | 278 | %{_mandir}/man1/unipng2hex.1* |
78a735fd | 279 | |
23464367 | 280 | %if %{with viewer} |
78a735fd JB |
281 | %files viewer |
282 | %defattr(644,root,root,755) | |
283 | %attr(755,root,root) %{_bindir}/unifont-viewer | |
50c43191 | 284 | %{_mandir}/man1/unifont-viewer.1* |
23464367 | 285 | %endif |