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