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