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