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