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