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