]> git.pld-linux.org Git - packages/unifont.git/blob - unifont.spec
bcond header
[packages/unifont.git] / unifont.spec
1 #
2 # Conditional build:
3 %bcond_with     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:        7.0.03
10 Release:        2
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:  17f4b4de9cf0a58049da251611c19415
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 tools
121 Summary:        GNU Unifont utility programs
122 Summary(pl.UTF-8):      Programy narzędziowe dołączone do pakietu GNU Unifont
123 Group:          Development/Tools
124
125 %description tools
126 GNU Unifont utility programs.
127
128 %description tools -l pl.UTF-8
129 Programy narzędziowe dołączone do pakietu GNU Unifont.
130
131 %package viewer
132 Summary:        GNU Unifont viewer
133 Summary(pl.UTF-8):      Przeglądarka GNU Unifont
134 Group:          X11/Applications
135
136 %description viewer
137 GNU Unifont viewer based on wxWidgets Perl interface.
138
139 %description viewer -l pl.UTF-8
140 Przeglądarka GNU Unifont oparta na interfejsie Perla do wxWidgets.
141
142 %prep
143 %setup -q
144
145 %build
146 %{__make} -j1 \
147         CC="%{__cc}" \
148         CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" \
149         LDFLAGS="%{rpmldflags}"
150
151 %install
152 rm -rf $RPM_BUILD_ROOT
153
154 %{__make} install \
155         DESTDIR=$RPM_BUILD_ROOT \
156         USRDIR=usr \
157         CONSOLEDEST=$RPM_BUILD_ROOT/lib/kbd/consolefonts \
158         PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \
159         TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF
160
161 # source data not needed, docs packaged as %doc
162 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/unifont
163 # sample covering plane 0
164 %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,TTF/unifont_sample.ttf}
165
166 %clean
167 rm -rf $RPM_BUILD_ROOT
168
169 %post   -n fonts-misc-unifont
170 fontpostinst misc
171
172 %postun -n fonts-misc-unifont
173 fontpostinst misc
174
175 %post   -n fonts-TTF-unifont
176 fontpostinst TTF
177
178 %postun -n fonts-TTF-unifont
179 fontpostinst TTF
180
181 %files -n fonts-misc-unifont
182 %defattr(644,root,root,755)
183 %doc README
184 %{_fontsdir}/misc/unifont.pcf.gz
185 %{_fontsdir}/misc/unifont_csur.pcf.gz
186 %{_mandir}/man5/unifont.5*
187
188 %files -n fonts-TTF-unifont
189 %defattr(644,root,root,755)
190 %{_fontsdir}/TTF/unifont.ttf
191 %{_fontsdir}/TTF/unifont_csur.ttf
192 %{_fontsdir}/TTF/unifont_upper.ttf
193 %{_fontsdir}/TTF/unifont_upper_csur.ttf
194
195 %files console
196 %defattr(644,root,root,755)
197 /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz
198
199 %files tools
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_bindir}/bdfimplode
202 %attr(755,root,root) %{_bindir}/hex2bdf
203 %attr(755,root,root) %{_bindir}/hex2sfd
204 %attr(755,root,root) %{_bindir}/hexbraille
205 %attr(755,root,root) %{_bindir}/hexdraw
206 %attr(755,root,root) %{_bindir}/hexkinya
207 %attr(755,root,root) %{_bindir}/hexmerge
208 %attr(755,root,root) %{_bindir}/johab2ucs2
209 %attr(755,root,root) %{_bindir}/unibdf2hex
210 %attr(755,root,root) %{_bindir}/unibmp2hex
211 %attr(755,root,root) %{_bindir}/unicoverage
212 %attr(755,root,root) %{_bindir}/unidup
213 %attr(755,root,root) %{_bindir}/unifontchojung
214 %attr(755,root,root) %{_bindir}/unifontksx
215 %attr(755,root,root) %{_bindir}/unifontpic
216 %attr(755,root,root) %{_bindir}/unigencircles
217 %attr(755,root,root) %{_bindir}/unigenwidth
218 %attr(755,root,root) %{_bindir}/unihex2bmp
219 %attr(755,root,root) %{_bindir}/unihex2png
220 %attr(755,root,root) %{_bindir}/unihexfill
221 %attr(755,root,root) %{_bindir}/unihexgen
222 %attr(755,root,root) %{_bindir}/unipagecount
223 %attr(755,root,root) %{_bindir}/unipng2hex
224 %{_mandir}/man1/bdfimplode.1*
225 %{_mandir}/man1/hex2bdf.1*
226 %{_mandir}/man1/hex2sfd.1*
227 %{_mandir}/man1/hexbraille.1*
228 %{_mandir}/man1/hexdraw.1*
229 %{_mandir}/man1/hexkinya.1*
230 %{_mandir}/man1/hexmerge.1*
231 %{_mandir}/man1/johab2ucs2.1*
232 %{_mandir}/man1/unibdf2hex.1*
233 %{_mandir}/man1/unibmp2hex.1*
234 %{_mandir}/man1/unicoverage.1*
235 %{_mandir}/man1/unidup.1*
236 %{_mandir}/man1/unifontchojung.1*
237 %{_mandir}/man1/unifontksx.1*
238 %{_mandir}/man1/unifontpic.1*
239 %{_mandir}/man1/unigencircles.1*
240 %{_mandir}/man1/unigenwidth.1*
241 %{_mandir}/man1/unihex2bmp.1*
242 %{_mandir}/man1/unihex2png.1*
243 %{_mandir}/man1/unihexfill.1*
244 %{_mandir}/man1/unihexgen.1*
245 %{_mandir}/man1/unipagecount.1*
246 %{_mandir}/man1/unipng2hex.1*
247
248 %if %{with viewer}
249 %files viewer
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_bindir}/unifont-viewer
252 %endif
This page took 0.046487 seconds and 4 git commands to generate.