]>
Commit | Line | Data |
---|---|---|
23464367 JR |
1 | %bcond_with viewer # build unifont-viewer package, requires perl-Wx |
2 | ||
78a735fd | 3 | %include /usr/lib/rpm/macros.perl |
5b094f21 JB |
4 | Summary: GNU Unifont - Unicode bitmap font |
5 | Summary(pl.UTF-8): GNU Unifont - font bitmapowy Unicode | |
8fe1eecf | 6 | Name: unifont |
e538609f | 7 | Version: 7.0.03 |
23464367 | 8 | Release: 2 |
5b094f21 | 9 | License: GPL v2+ with GNU font embedding exception |
0ec7b099 | 10 | Group: Fonts |
5b094f21 | 11 | Source0: http://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz |
e538609f | 12 | # Source0-md5: 17f4b4de9cf0a58049da251611c19415 |
5b094f21 | 13 | URL: http://czyborra.com/unifont/ |
539001df | 14 | BuildRequires: fontforge |
78a735fd | 15 | BuildRequires: rpm-perlprov |
f41faa7e | 16 | BuildRequires: xorg-app-bdftopcf |
1cb0199c | 17 | Requires(post,postun): fontpostinst |
09c282e8 | 18 | Requires: %{_fontsdir}/misc |
8fe1eecf | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
5b094f21 JB |
22 | GNU Unifont is an official GNU package. It is a dual-width |
23 | (8x16/16x16) bitmap font, designed to provide coverage for all of | |
24 | Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has | |
e538609f | 25 | a glyph for each visible code point in the Unicode 7.0 Basic |
5b094f21 | 26 | Multilingual Plane (Plane 0). |
8fe1eecf | 27 | |
45624604 | 28 | %description -l pl.UTF-8 |
5b094f21 JB |
29 | GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej |
30 | szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości | |
31 | warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja | |
e538609f | 32 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
5b094f21 JB |
33 | Multilingual Plane (Plane 0). |
34 | ||
539001df | 35 | %package -n fonts-misc-unifont |
5b094f21 JB |
36 | Summary: GNU Unifont - Unicode font in PCF format |
37 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF | |
38 | Group: Fonts | |
39 | Requires(post,postun): fontpostinst | |
40 | Requires: %{_fontsdir}/misc | |
41 | Obsoletes: unifont | |
f41faa7e ER |
42 | %if "%{_rpmversion}" >= "5" |
43 | BuildArch: noarch | |
44 | %endif | |
5b094f21 | 45 | |
539001df | 46 | %description -n fonts-misc-unifont |
5b094f21 JB |
47 | GNU Unifont is an official GNU package. It is a dual-width |
48 | (8x16/16x16) bitmap font, designed to provide coverage for all of | |
49 | Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has | |
e538609f | 50 | a glyph for each visible code point in the Unicode 7.0 Basic |
5b094f21 JB |
51 | Multilingual Plane (Plane 0). |
52 | ||
53 | This package contains the font in PCF format. | |
54 | ||
539001df | 55 | %description -n fonts-misc-unifont -l pl.UTF-8 |
5b094f21 JB |
56 | GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej |
57 | szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości | |
58 | warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja | |
e538609f | 59 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
5b094f21 JB |
60 | Multilingual Plane (Plane 0). |
61 | ||
62 | Ten pakiet zawiera font w formacie PCF. | |
63 | ||
539001df | 64 | %package -n fonts-TTF-unifont |
5b094f21 JB |
65 | Summary: GNU Unifont - Unicode font in PCF format |
66 | Summary(pl.UTF-8): GNU Unifont - font Unicode w formacie PCF | |
67 | Group: Fonts | |
68 | Requires(post,postun): fontpostinst | |
69 | Requires: %{_fontsdir}/TTF | |
f41faa7e ER |
70 | %if "%{_rpmversion}" >= "5" |
71 | BuildArch: noarch | |
72 | %endif | |
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 | |
95 | Group: Fonts | |
96 | Requires: kbd | |
97 | ||
98 | %description console | |
99 | GNU Unifont is an official GNU package. It is a dual-width | |
100 | (8x16/16x16) bitmap font, designed to provide coverage for all of | |
101 | Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has | |
e538609f | 102 | a glyph for each visible code point in the Unicode 7.0 Basic |
e17ae58b JB |
103 | Multilingual Plane (Plane 0). |
104 | ||
105 | This package contains 512 glyph subset in PSF format for use with | |
106 | Linux console. | |
107 | ||
108 | %description console -l pl.UTF-8 | |
109 | GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej | |
110 | szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości | |
111 | warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja | |
e538609f | 112 | zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic |
e17ae58b JB |
113 | Multilingual Plane (Plane 0). |
114 | ||
115 | Ten pakiet zawiera 512-znakowy podzbiór w formacie PSF, przeznaczony | |
116 | do używania na linuksowej konsoli. | |
117 | ||
5b094f21 JB |
118 | %package tools |
119 | Summary: GNU Unifont utility programs | |
120 | Summary(pl.UTF-8): Programy narzędziowe dołączone do pakietu GNU Unifont | |
121 | Group: Development/Tools | |
122 | ||
123 | %description tools | |
124 | GNU Unifont utility programs. | |
125 | ||
126 | %description tools -l pl.UTF-8 | |
127 | Programy narzędziowe dołączone do pakietu GNU Unifont. | |
8fe1eecf | 128 | |
78a735fd JB |
129 | %package viewer |
130 | Summary: GNU Unifont viewer | |
131 | Summary(pl.UTF-8): Przeglądarka GNU Unifont | |
132 | Group: X11/Applications | |
133 | ||
134 | %description viewer | |
135 | GNU Unifont viewer based on wxWidgets Perl interface. | |
136 | ||
137 | %description viewer -l pl.UTF-8 | |
138 | Przeglądarka GNU Unifont oparta na interfejsie Perla do wxWidgets. | |
139 | ||
4be14da3 | 140 | %prep |
5b094f21 | 141 | %setup -q |
4be14da3 | 142 | |
8fe1eecf | 143 | %build |
539001df | 144 | %{__make} -j1 \ |
5b094f21 JB |
145 | CC="%{__cc}" \ |
146 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \ | |
147 | LDFLAGS="%{rpmldflags}" | |
8fe1eecf | 148 | |
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
4be14da3 | 151 | |
5b094f21 JB |
152 | %{__make} install \ |
153 | DESTDIR=$RPM_BUILD_ROOT \ | |
154 | USRDIR=usr \ | |
e17ae58b | 155 | CONSOLEDEST=$RPM_BUILD_ROOT/lib/kbd/consolefonts \ |
5b094f21 JB |
156 | PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \ |
157 | TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF | |
158 | ||
159 | # source data not needed, docs packaged as %doc | |
160 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/unifont | |
cbda1465 JB |
161 | # sample covering plane 0 |
162 | %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,TTF/unifont_sample.ttf} | |
8fe1eecf | 163 | |
164 | %clean | |
165 | rm -rf $RPM_BUILD_ROOT | |
166 | ||
5b094f21 | 167 | %post -n fonts-misc-unifont |
1cb0199c | 168 | fontpostinst misc |
8fe1eecf | 169 | |
5b094f21 | 170 | %postun -n fonts-misc-unifont |
1cb0199c | 171 | fontpostinst misc |
8fe1eecf | 172 | |
5b094f21 JB |
173 | %post -n fonts-TTF-unifont |
174 | fontpostinst TTF | |
175 | ||
176 | %postun -n fonts-TTF-unifont | |
177 | fontpostinst TTF | |
178 | ||
179 | %files -n fonts-misc-unifont | |
180 | %defattr(644,root,root,755) | |
cbda1465 | 181 | %doc README |
5b094f21 | 182 | %{_fontsdir}/misc/unifont.pcf.gz |
e17ae58b | 183 | %{_fontsdir}/misc/unifont_csur.pcf.gz |
5b094f21 JB |
184 | %{_mandir}/man5/unifont.5* |
185 | ||
186 | %files -n fonts-TTF-unifont | |
187 | %defattr(644,root,root,755) | |
188 | %{_fontsdir}/TTF/unifont.ttf | |
e17ae58b JB |
189 | %{_fontsdir}/TTF/unifont_csur.ttf |
190 | %{_fontsdir}/TTF/unifont_upper.ttf | |
191 | %{_fontsdir}/TTF/unifont_upper_csur.ttf | |
192 | ||
193 | %files console | |
194 | %defattr(644,root,root,755) | |
195 | /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz | |
5b094f21 JB |
196 | |
197 | %files tools | |
8fe1eecf | 198 | %defattr(644,root,root,755) |
5b094f21 JB |
199 | %attr(755,root,root) %{_bindir}/bdfimplode |
200 | %attr(755,root,root) %{_bindir}/hex2bdf | |
201 | %attr(755,root,root) %{_bindir}/hex2sfd | |
202 | %attr(755,root,root) %{_bindir}/hexbraille | |
203 | %attr(755,root,root) %{_bindir}/hexdraw | |
e17ae58b | 204 | %attr(755,root,root) %{_bindir}/hexkinya |
5b094f21 JB |
205 | %attr(755,root,root) %{_bindir}/hexmerge |
206 | %attr(755,root,root) %{_bindir}/johab2ucs2 | |
207 | %attr(755,root,root) %{_bindir}/unibdf2hex | |
208 | %attr(755,root,root) %{_bindir}/unibmp2hex | |
209 | %attr(755,root,root) %{_bindir}/unicoverage | |
210 | %attr(755,root,root) %{_bindir}/unidup | |
211 | %attr(755,root,root) %{_bindir}/unifontchojung | |
212 | %attr(755,root,root) %{_bindir}/unifontksx | |
213 | %attr(755,root,root) %{_bindir}/unifontpic | |
214 | %attr(755,root,root) %{_bindir}/unigencircles | |
215 | %attr(755,root,root) %{_bindir}/unigenwidth | |
216 | %attr(755,root,root) %{_bindir}/unihex2bmp | |
cbda1465 | 217 | %attr(755,root,root) %{_bindir}/unihex2png |
78a735fd | 218 | %attr(755,root,root) %{_bindir}/unihexfill |
5b094f21 JB |
219 | %attr(755,root,root) %{_bindir}/unihexgen |
220 | %attr(755,root,root) %{_bindir}/unipagecount | |
cbda1465 | 221 | %attr(755,root,root) %{_bindir}/unipng2hex |
5b094f21 JB |
222 | %{_mandir}/man1/bdfimplode.1* |
223 | %{_mandir}/man1/hex2bdf.1* | |
224 | %{_mandir}/man1/hex2sfd.1* | |
225 | %{_mandir}/man1/hexbraille.1* | |
226 | %{_mandir}/man1/hexdraw.1* | |
e17ae58b | 227 | %{_mandir}/man1/hexkinya.1* |
5b094f21 JB |
228 | %{_mandir}/man1/hexmerge.1* |
229 | %{_mandir}/man1/johab2ucs2.1* | |
230 | %{_mandir}/man1/unibdf2hex.1* | |
231 | %{_mandir}/man1/unibmp2hex.1* | |
232 | %{_mandir}/man1/unicoverage.1* | |
233 | %{_mandir}/man1/unidup.1* | |
234 | %{_mandir}/man1/unifontchojung.1* | |
235 | %{_mandir}/man1/unifontksx.1* | |
236 | %{_mandir}/man1/unifontpic.1* | |
237 | %{_mandir}/man1/unigencircles.1* | |
238 | %{_mandir}/man1/unigenwidth.1* | |
239 | %{_mandir}/man1/unihex2bmp.1* | |
cbda1465 | 240 | %{_mandir}/man1/unihex2png.1* |
e538609f | 241 | %{_mandir}/man1/unihexfill.1* |
5b094f21 JB |
242 | %{_mandir}/man1/unihexgen.1* |
243 | %{_mandir}/man1/unipagecount.1* | |
cbda1465 | 244 | %{_mandir}/man1/unipng2hex.1* |
78a735fd | 245 | |
23464367 | 246 | %if %{with viewer} |
78a735fd JB |
247 | %files viewer |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_bindir}/unifont-viewer | |
23464367 | 250 | %endif |