]> git.pld-linux.org Git - packages/unifont.git/blob - unifont.spec
058c32065cc4b1b424b6d83c66c4d5aaaca02917
[packages/unifont.git] / unifont.spec
1 #
2 # Conditional build:
3 %bcond_with     ttf     # TrueType fonts
4 %bcond_without  viewer  # unifont-viewer package (requires perl-Wx)
5
6 Summary:        GNU Unifont - Unicode bitmap font
7 Summary(pl.UTF-8):      GNU Unifont - font bitmapowy Unicode
8 Name:           unifont
9 Version:        15.1.04
10 Release:        1
11 License:        GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
12 Group:          Fonts
13 Source0:        https://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  e8953e109a3dbe1e7bafc69bfc1ba942
15 Patch0:         %{name}-info.patch
16 URL:            http://czyborra.com/unifont/
17 BuildRequires:  fontforge
18 BuildRequires:  rpm-build >= 4.6
19 BuildRequires:  rpm-perlprov
20 BuildRequires:  rpmbuild(macros) >= 1.752
21 BuildRequires:  sed >= 4.0
22 BuildRequires:  texinfo
23 BuildRequires:  xorg-app-bdftopcf
24 Requires(post,postun):  fontpostinst
25 Requires:       %{_fontsdir}/misc
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 GNU Unifont is an official GNU package. It is a dual-width
30 (8x16/16x16) bitmap font, designed to provide coverage for all of
31 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
32 a glyph for each visible code point in the Unicode 7.0 Basic
33 Multilingual Plane (Plane 0).
34
35 %description -l pl.UTF-8
36 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
37 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
38 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
39 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
40 Multilingual Plane (Plane 0).
41
42 %package -n fonts-misc-unifont
43 Summary:        GNU Unifont - Unicode font in PCF format
44 Summary(pl.UTF-8):      GNU Unifont - font Unicode w formacie PCF
45 License:        SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
46 Group:          Fonts
47 Requires(post,postun):  fontpostinst
48 Requires:       %{_fontsdir}/misc
49 Obsoletes:      unifont < 6
50 BuildArch:      noarch
51
52 %description -n fonts-misc-unifont
53 GNU Unifont is an official GNU package. It is a dual-width
54 (8x16/16x16) bitmap font, designed to provide coverage for all of
55 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
56 a glyph for each visible code point in the Unicode 7.0 Basic
57 Multilingual Plane (Plane 0).
58
59 This package contains the font in PCF format.
60
61 %description -n fonts-misc-unifont -l pl.UTF-8
62 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
63 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
64 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
65 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
66 Multilingual Plane (Plane 0).
67
68 Ten pakiet zawiera font w formacie PCF.
69
70 %package -n fonts-OTF-unifont
71 Summary:        GNU Unifont - Unicode font in OpenType format
72 Summary(pl.UTF-8):      GNU Unifont - font Unicode w formacie OpenType
73 License:        SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
74 Group:          Fonts
75 Requires(post,postun):  fontpostinst
76 Requires:       %{_fontsdir}/OTF
77 BuildArch:      noarch
78
79 %description -n fonts-OTF-unifont
80 GNU Unifont is an official GNU package. It is a dual-width
81 (8x16/16x16) bitmap font, designed to provide coverage for all of
82 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
83 a glyph for each visible code point in the Unicode 7.0 Basic
84 Multilingual Plane (Plane 0).
85
86 This package contains the font in OpenType format.
87
88 %description -n fonts-OTF-unifont -l pl.UTF-8
89 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
90 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
91 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
92 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
93 Multilingual Plane (Plane 0).
94
95 Ten pakiet zawiera font w formacie OpenType.
96
97 %package -n fonts-TTF-unifont
98 Summary:        GNU Unifont - Unicode font in TrueType format
99 Summary(pl.UTF-8):      GNU Unifont - font Unicode w formacie TrueType
100 License:        SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
101 Group:          Fonts
102 Requires(post,postun):  fontpostinst
103 Requires:       %{_fontsdir}/TTF
104 BuildArch:      noarch
105
106 %description -n fonts-TTF-unifont
107 GNU Unifont is an official GNU package. It is a dual-width
108 (8x16/16x16) bitmap font, designed to provide coverage for all of
109 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
110 a glyph for each visible code point in the Unicode 7.0 Basic
111 Multilingual Plane (Plane 0).
112
113 This package contains the font in TrueType format.
114
115 %description -n fonts-TTF-unifont -l pl.UTF-8
116 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
117 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
118 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
119 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
120 Multilingual Plane (Plane 0).
121
122 Ten pakiet zawiera font w formacie TrueType.
123
124 %package console
125 Summary:        GNU Unifont - Unicode font in PSF format
126 Summary(pl.UTF-8):      GNU Unifont - font Unicode w formacie PSF
127 License:        SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
128 Group:          Fonts
129 Requires:       kbd
130 BuildArch:      noarch
131
132 %description console
133 GNU Unifont is an official GNU package. It is a dual-width
134 (8x16/16x16) bitmap font, designed to provide coverage for all of
135 Unicode Plane 0, the Basic Multilingual Plane (BMP). This version has
136 a glyph for each visible code point in the Unicode 7.0 Basic
137 Multilingual Plane (Plane 0).
138
139 This package contains 512 glyph subset in PSF format for use with
140 Linux console.
141
142 %description console -l pl.UTF-8
143 GNU Unifont to oficjalny pakiet GNU. Jest to font bitmapowy podwójnej
144 szerokości (8x16/16x16), zaprojektowany z myślą o pokryciu całości
145 warstwy Unicode Plane 0 (Basic Multilingual Plane - BMP). Ta wersja
146 zawiera glify dla wszystkich widocznych znaków Unicode 7.0 Basic
147 Multilingual Plane (Plane 0).
148
149 Ten pakiet zawiera 512-znakowy podzbiór w formacie PSF, przeznaczony
150 do używania na linuksowej konsoli.
151
152 %package source
153 Summary:        GNU Unifont source data
154 Summary(pl.UTF-8):      Dane źródłowe pakietu GNU Unifont
155 License:        GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
156 Group:          Development/Tools
157 BuildArch:      noarch
158
159 %description source
160 GNU Unifont source data, which could be used to generate or embed
161 fonts in other formats.
162
163 %description source -l pl.UTF-8
164 Dane źródłowe pakietu GNU Unifont, które można wykorzystać do
165 generowania lub osadzania fontów w innych formatach.
166
167 %package tools
168 Summary:        GNU Unifont utility programs
169 Summary(pl.UTF-8):      Programy narzędziowe dołączone do pakietu GNU Unifont
170 License:        GPL v2+
171 Group:          Development/Tools
172
173 %description tools
174 GNU Unifont utility programs.
175
176 %description tools -l pl.UTF-8
177 Programy narzędziowe dołączone do pakietu GNU Unifont.
178
179 %package viewer
180 Summary:        GNU Unifont viewer
181 Summary(pl.UTF-8):      Przeglądarka GNU Unifont
182 License:        GPL v2+
183 Group:          X11/Applications
184
185 %description viewer
186 GNU Unifont viewer based on wxWidgets Perl interface.
187
188 %description viewer -l pl.UTF-8
189 Przeglądarka GNU Unifont oparta na interfejsie Perla do wxWidgets.
190
191 %prep
192 %setup -q
193 %patch0 -p1
194
195 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' src/{hexdraw,johab2ucs2}
196
197 %build
198 %{__make} -C doc doc
199
200 %{__make} -j1 \
201         CC="%{__cc}" \
202         CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \
203         LDFLAGS="%{rpmldflags}"
204
205 %if %{with ttf}
206 %{__make} -C font truetype
207 %endif
208
209 %install
210 rm -rf $RPM_BUILD_ROOT
211 install -d $RPM_BUILD_ROOT%{_fontsdir}/OTF
212
213 %{__make} install \
214         DESTDIR=$RPM_BUILD_ROOT \
215         USRDIR=usr \
216         CONSOLEDEST=$RPM_BUILD_ROOT/lib/kbd/consolefonts \
217         OTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/OTF \
218         PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \
219         TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF
220
221 # sample covering plane 0
222 %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,OTF/unifont*_sample.otf}
223 %if %{with ttf}
224 %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/TTF/unifont_sample.ttf
225 %endif
226
227 # doxygen documentation for unpackaged code
228 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/unifont/html
229 %{__rm} $RPM_BUILD_ROOT%{_datadir}/unifont/unifont-doxy.pdf
230
231 # generated from texi
232 %{__rm} $RPM_BUILD_ROOT%{_datadir}/unifont/unifont.{pdf,txt.gz}
233 # move to standard place
234 install -d $RPM_BUILD_ROOT%{_infodir}
235 %{__mv} $RPM_BUILD_ROOT%{_datadir}/unifont/unifont.info* $RPM_BUILD_ROOT%{_infodir}
236
237 %clean
238 rm -rf $RPM_BUILD_ROOT
239
240 %post   -n fonts-misc-unifont
241 fontpostinst misc
242
243 %postun -n fonts-misc-unifont
244 fontpostinst misc
245
246 %post   -n fonts-OTF-unifont
247 fontpostinst OTF
248
249 %postun -n fonts-OTF-unifont
250 fontpostinst OTF
251
252 %post   -n fonts-TTF-unifont
253 fontpostinst TTF
254
255 %postun -n fonts-TTF-unifont
256 fontpostinst TTF
257
258 %post   tools -p /sbin/postshell
259 -/usr/sbin/fix-info-dir -c %{_infodir}
260
261 %postun tools -p /sbin/postshell
262 -/usr/sbin/fix-info-dir -c %{_infodir}
263
264 %files -n fonts-misc-unifont
265 %defattr(644,root,root,755)
266 %doc COPYING ChangeLog NEWS README
267 %{_fontsdir}/misc/unifont.pcf.gz
268 %{_fontsdir}/misc/unifont_csur.pcf.gz
269 %{_mandir}/man5/unifont.5*
270
271 %files -n fonts-OTF-unifont
272 %defattr(644,root,root,755)
273 %doc COPYING ChangeLog NEWS README
274 %{_fontsdir}/OTF/unifont.otf
275 %{_fontsdir}/OTF/unifont_csur.otf
276 %{_fontsdir}/OTF/unifont_jp.otf
277 %{_fontsdir}/OTF/unifont_upper.otf
278
279 %if %{with ttf}
280 %files -n fonts-TTF-unifont
281 %defattr(644,root,root,755)
282 %doc COPYING ChangeLog NEWS README
283 %{_fontsdir}/TTF/unifont.ttf
284 %{_fontsdir}/TTF/unifont_csur.ttf
285 %{_fontsdir}/TTF/unifont_upper.ttf
286 %endif
287
288 %files console
289 %defattr(644,root,root,755)
290 /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz
291
292 %files source
293 %defattr(644,root,root,755)
294 %doc COPYING ChangeLog NEWS README
295 %dir %{_datadir}/unifont
296 %{_datadir}/unifont/plane00-combining.txt
297 %{_datadir}/unifont/unifont.bmp.gz
298 %{_datadir}/unifont/unifont.hex
299 %{_datadir}/unifont/unifont_all.hex
300 %{_datadir}/unifont/unifont_jp.hex
301 %{_datadir}/unifont/wchardata.c
302
303 %files tools
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_bindir}/bdfimplode
306 %attr(755,root,root) %{_bindir}/hex2bdf
307 %attr(755,root,root) %{_bindir}/hex2otf
308 %attr(755,root,root) %{_bindir}/hex2sfd
309 %attr(755,root,root) %{_bindir}/hexbraille
310 %attr(755,root,root) %{_bindir}/hexdraw
311 %attr(755,root,root) %{_bindir}/hexkinya
312 %attr(755,root,root) %{_bindir}/hexmerge
313 %attr(755,root,root) %{_bindir}/johab2syllables
314 %attr(755,root,root) %{_bindir}/johab2ucs2
315 %attr(755,root,root) %{_bindir}/unibdf2hex
316 %attr(755,root,root) %{_bindir}/unibmp2hex
317 %attr(755,root,root) %{_bindir}/unibmpbump
318 %attr(755,root,root) %{_bindir}/unicoverage
319 %attr(755,root,root) %{_bindir}/unidup
320 %attr(755,root,root) %{_bindir}/unifont1per
321 %attr(755,root,root) %{_bindir}/unifontchojung
322 %attr(755,root,root) %{_bindir}/unifontksx
323 %attr(755,root,root) %{_bindir}/unifontpic
324 %attr(755,root,root) %{_bindir}/unigen-hangul
325 %attr(755,root,root) %{_bindir}/unigencircles
326 %attr(755,root,root) %{_bindir}/unigenwidth
327 %attr(755,root,root) %{_bindir}/unihex2bmp
328 %attr(755,root,root) %{_bindir}/unihex2png
329 %attr(755,root,root) %{_bindir}/unihexfill
330 %attr(755,root,root) %{_bindir}/unihexgen
331 %attr(755,root,root) %{_bindir}/unihexpose
332 %attr(755,root,root) %{_bindir}/unihexrotate
333 %attr(755,root,root) %{_bindir}/unijohab2html
334 %attr(755,root,root) %{_bindir}/unipagecount
335 %attr(755,root,root) %{_bindir}/unipng2hex
336 %{_mandir}/man1/bdfimplode.1*
337 %{_mandir}/man1/hex2bdf.1*
338 %{_mandir}/man1/hex2otf.1*
339 %{_mandir}/man1/hex2sfd.1*
340 %{_mandir}/man1/hexbraille.1*
341 %{_mandir}/man1/hexdraw.1*
342 %{_mandir}/man1/hexkinya.1*
343 %{_mandir}/man1/hexmerge.1*
344 %{_mandir}/man1/johab2syllables.1*
345 %{_mandir}/man1/johab2ucs2.1*
346 %{_mandir}/man1/unibdf2hex.1*
347 %{_mandir}/man1/unibmp2hex.1*
348 %{_mandir}/man1/unibmpbump.1*
349 %{_mandir}/man1/unicoverage.1*
350 %{_mandir}/man1/unidup.1*
351 %{_mandir}/man1/unifont1per.1*
352 %{_mandir}/man1/unifontchojung.1*
353 %{_mandir}/man1/unifontksx.1*
354 %{_mandir}/man1/unifontpic.1*
355 %{_mandir}/man1/unigen-hangul.1*
356 %{_mandir}/man1/unigencircles.1*
357 %{_mandir}/man1/unigenwidth.1*
358 %{_mandir}/man1/unihex2bmp.1*
359 %{_mandir}/man1/unihex2png.1*
360 %{_mandir}/man1/unihexfill.1*
361 %{_mandir}/man1/unihexgen.1*
362 %{_mandir}/man1/unihexpose.1*
363 %{_mandir}/man1/unihexrotate.1*
364 %{_mandir}/man1/unijohab2html.1*
365 %{_mandir}/man1/unipagecount.1*
366 %{_mandir}/man1/unipng2hex.1*
367 %{_mandir}/man5/unifont-johab631.5*
368 %{_infodir}/unifont.info*
369
370 %if %{with viewer}
371 %files viewer
372 %defattr(644,root,root,755)
373 %attr(755,root,root) %{_bindir}/unifont-viewer
374 %{_mandir}/man1/unifont-viewer.1*
375 %endif
This page took 0.28426 seconds and 2 git commands to generate.