]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries build | |
4 | %bcond_without graphite2 # Graphite2 library usage | |
5 | %bcond_without icu # ICU integration | |
6 | %bcond_with tests # "make check" call (cmap14 test fails as of 2.6.2 +otsanitizer-8.0.0 +fonttools-3.44.0) | |
7 | ||
8 | Summary: HarfBuzz - internationalized text shaping library | |
9 | Summary(pl.UTF-8): HarfBuzz - biblioteka rysująca tekst z obsługą wielu języków | |
10 | Name: harfbuzz | |
11 | Version: 2.7.1 | |
12 | Release: 2 | |
13 | License: MIT | |
14 | Group: Libraries | |
15 | Source0: https://github.com/harfbuzz/harfbuzz/archive/%{version}/%{name}-%{version}.tar.gz | |
16 | # Source0-md5: 76f22a4e888d0eb9e26049136c3e3a69 | |
17 | URL: https://harfbuzz.github.io/ | |
18 | BuildRequires: autoconf >= 2.64 | |
19 | BuildRequires: automake >= 1:1.13.0 | |
20 | BuildRequires: cairo-devel >= 1.8.0 | |
21 | # hb-fc-list is disabled in util/Makefile.am | |
22 | #BuildRequires: fontconfig-devel | |
23 | %{?with_tests:BuildRequires: fonttools} | |
24 | BuildRequires: freetype-devel >= 1:2.9 | |
25 | BuildRequires: glib2-devel >= 1:2.38 | |
26 | BuildRequires: gobject-introspection-devel >= 1.34.0 | |
27 | %{?with_graphite2:BuildRequires: graphite2-devel >= 1.2.0} | |
28 | BuildRequires: gtk-doc >= 1.15 | |
29 | %{?with_icu:BuildRequires: libicu-devel} | |
30 | BuildRequires: libstdc++-devel >= 6:4.9 | |
31 | BuildRequires: libtool >= 2:2.2 | |
32 | %{?with_tests:BuildRequires: otsanitizer >= 8} | |
33 | BuildRequires: pkgconfig >= 1:0.27 | |
34 | BuildRequires: sed >= 4.0 | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | Requires: freetype >= 1:2.9 | |
38 | Requires: glib2 >= 1:2.38 | |
39 | %{?with_graphite2:Requires: graphite2 >= 1.2.0} | |
40 | Obsoletes: harfbuzz-gobject < 2.7.1-1 | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | Internationalized OpenType text layout and rendering library. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
48 | obsługująca wiele języków. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for HarfBuzz library | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Requires: freetype-devel >= 1:2.9 | |
56 | Requires: glib2-devel >= 1:2.38 | |
57 | %{?with_graphite2:Requires: graphite2-devel >= 1.2.0} | |
58 | Obsoletes: harfbuzz-gobject-devel < 2.7.1-1 | |
59 | Requires: libstdc++-devel | |
60 | ||
61 | %description devel | |
62 | Header files for HarfBuzz library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki HarfBuzz. | |
66 | ||
67 | %package static | |
68 | Summary: Static HarfBuzz library | |
69 | Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Static HarfBuzz library. | |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka HarfBuzz. | |
78 | ||
79 | %package gobject | |
80 | Summary: Harfbuzz GObject interface | |
81 | Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz | |
82 | Group: Libraries | |
83 | Requires: %{name} = %{version}-%{release} | |
84 | ||
85 | %description gobject | |
86 | Harfbuzz GObject interface. | |
87 | ||
88 | %description gobject -l pl.UTF-8 | |
89 | Interfejs GObject do biblioteki Harfbuzz. | |
90 | ||
91 | %package gobject-devel | |
92 | Summary: Header files for Harfbuzz GObject interface | |
93 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz | |
94 | Group: Development/Libraries | |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | Requires: %{name}-gobject = %{version}-%{release} | |
97 | ||
98 | %description gobject-devel | |
99 | This is the package containing the header files for Harfbuzz GObject | |
100 | interface. | |
101 | ||
102 | %description gobject-devel -l pl.UTF-8 | |
103 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki | |
104 | Harfbuzz. | |
105 | ||
106 | %package gobject-static | |
107 | Summary: Static Harfbuzz GObject library | |
108 | Summary(pl.UTF-8): Statyczna biblioteka Harfbuzz GObject | |
109 | Group: Development/Libraries | |
110 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
111 | ||
112 | %description gobject-static | |
113 | Static Harfbuzz GObject library. | |
114 | ||
115 | %description gobject-static -l pl.UTF-8 | |
116 | Statyczna biblioteka Harfbuzz GObject. | |
117 | ||
118 | %package icu | |
119 | Summary: HarfBuzz text shaping library - ICU integration | |
120 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU | |
121 | Group: Libraries | |
122 | Requires: %{name} = %{version}-%{release} | |
123 | ||
124 | %description icu | |
125 | HarfBuzz text shaping library - ICU integration. | |
126 | ||
127 | %description icu -l pl.UTF-8 | |
128 | Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU. | |
129 | ||
130 | %package icu-devel | |
131 | Summary: Header file for HarfBuzz ICU library | |
132 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki HarfBuzz ICU | |
133 | Group: Development/Libraries | |
134 | Requires: %{name}-devel = %{version}-%{release} | |
135 | Requires: %{name}-icu = %{version}-%{release} | |
136 | Requires: libicu-devel | |
137 | ||
138 | %description icu-devel | |
139 | Header file for HarfBuzz ICU library. | |
140 | ||
141 | %description icu-devel -l pl.UTF-8 | |
142 | Plik nagłówkowy biblioteki HarfBuzz ICU. | |
143 | ||
144 | %package icu-static | |
145 | Summary: Static HarfBuzz ICU library | |
146 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz ICU | |
147 | Group: Development/Libraries | |
148 | Requires: %{name}-icu-devel = %{version}-%{release} | |
149 | ||
150 | %description icu-static | |
151 | Static HarfBuzz ICU library. | |
152 | ||
153 | %description icu-static -l pl.UTF-8 | |
154 | Biblioteka statyczna HarfBuzz ICU. | |
155 | ||
156 | %package subset | |
157 | Summary: HarfBuzz text shaping library - font subsetter | |
158 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - font subsetter | |
159 | Group: Libraries | |
160 | Requires: %{name} = %{version}-%{release} | |
161 | ||
162 | %description subset | |
163 | HarfBuzz text shaping library - font subsetter. | |
164 | ||
165 | %description subset -l pl.UTF-8 | |
166 | Biblioteka HarfBuzz do rysowania tekstu - font subsetter. | |
167 | ||
168 | %package subset-devel | |
169 | Summary: Header files for HarfBuzz subset library | |
170 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz subset | |
171 | Group: Development/Libraries | |
172 | Requires: %{name}-devel = %{version}-%{release} | |
173 | Requires: %{name}-subset = %{version}-%{release} | |
174 | ||
175 | %description subset-devel | |
176 | Header files for HarfBuzz subset library. | |
177 | ||
178 | %description subset-devel -l pl.UTF-8 | |
179 | Pliki nagłówkowe biblioteki HarfBuzz subset. | |
180 | ||
181 | %package subset-static | |
182 | Summary: Static HarfBuzz subset library | |
183 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz subset | |
184 | Group: Development/Libraries | |
185 | Requires: %{name}-subset-devel = %{version}-%{release} | |
186 | ||
187 | %description subset-static | |
188 | Static HarfBuzz subset library. | |
189 | ||
190 | %description subset-static -l pl.UTF-8 | |
191 | Biblioteka statyczna HarfBuzz subset. | |
192 | ||
193 | %package progs | |
194 | Summary: HarfBuzz command-line utilities | |
195 | Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń | |
196 | Group: Libraries | |
197 | Requires: %{name} = %{version}-%{release} | |
198 | Requires: cairo >= 1.8.0 | |
199 | ||
200 | %description progs | |
201 | HarfBuzz command-line utilities. | |
202 | ||
203 | %description progs -l pl.UTF-8 | |
204 | Narzędzia HarfBuzz uruchamiane z linii poleceń. | |
205 | ||
206 | %package apidocs | |
207 | Summary: HarfBuzz API documentation | |
208 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
209 | Group: Documentation | |
210 | %if "%{_rpmversion}" >= "5" | |
211 | BuildArch: noarch | |
212 | %endif | |
213 | ||
214 | %description apidocs | |
215 | API documentation for HarfBuzz libraries. | |
216 | ||
217 | %description apidocs -l pl.UTF-8 | |
218 | Dokumentacja API bibliotek HarfBuzz. | |
219 | ||
220 | %prep | |
221 | %setup -q | |
222 | ||
223 | %build | |
224 | %{__libtoolize} | |
225 | %{__gtkdocize} | |
226 | %{__aclocal} -I m4 | |
227 | %{__autoconf} | |
228 | %{__autoheader} | |
229 | %{__automake} | |
230 | %configure \ | |
231 | --disable-silent-rules \ | |
232 | --enable-gtk-doc \ | |
233 | %{?with_static_libs:--enable-static} \ | |
234 | --with-cairo \ | |
235 | --with-freetype \ | |
236 | --with-glib \ | |
237 | --with-gobject \ | |
238 | %{?with_graphite2:--with-graphite2} \ | |
239 | --with-html-dir=%{_gtkdocdir} \ | |
240 | --with-icu%{!?with_icu:=no} | |
241 | %{__make} | |
242 | ||
243 | %{?with_tests:%{__make} check} | |
244 | ||
245 | %install | |
246 | rm -rf $RPM_BUILD_ROOT | |
247 | %{__make} install \ | |
248 | DESTDIR=$RPM_BUILD_ROOT | |
249 | ||
250 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
251 | ||
252 | %clean | |
253 | rm -rf $RPM_BUILD_ROOT | |
254 | ||
255 | %post -p /sbin/ldconfig | |
256 | %postun -p /sbin/ldconfig | |
257 | ||
258 | %post gobject -p /sbin/ldconfig | |
259 | %postun gobject -p /sbin/ldconfig | |
260 | ||
261 | %post icu -p /sbin/ldconfig | |
262 | %postun icu -p /sbin/ldconfig | |
263 | ||
264 | %post subset -p /sbin/ldconfig | |
265 | %postun subset -p /sbin/ldconfig | |
266 | ||
267 | %files | |
268 | %defattr(644,root,root,755) | |
269 | %doc AUTHORS COPYING NEWS README.md THANKS TODO | |
270 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* | |
271 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
272 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* | |
273 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
274 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib | |
275 | ||
276 | %files devel | |
277 | %defattr(644,root,root,755) | |
278 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
279 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so | |
280 | %dir %{_includedir}/harfbuzz | |
281 | %{_includedir}/harfbuzz/hb.h | |
282 | %{_includedir}/harfbuzz/hb-aat.h | |
283 | %{_includedir}/harfbuzz/hb-aat-layout.h | |
284 | %{_includedir}/harfbuzz/hb-blob.h | |
285 | %{_includedir}/harfbuzz/hb-buffer.h | |
286 | %{_includedir}/harfbuzz/hb-common.h | |
287 | %{_includedir}/harfbuzz/hb-deprecated.h | |
288 | %{_includedir}/harfbuzz/hb-draw.h | |
289 | %{_includedir}/harfbuzz/hb-face.h | |
290 | %{_includedir}/harfbuzz/hb-font.h | |
291 | %{_includedir}/harfbuzz/hb-ft.h | |
292 | %{_includedir}/harfbuzz/hb-glib.h | |
293 | %{_includedir}/harfbuzz/hb-gobject.h | |
294 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
295 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
296 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} | |
297 | %{_includedir}/harfbuzz/hb-map.h | |
298 | %{_includedir}/harfbuzz/hb-ot-color.h | |
299 | %{_includedir}/harfbuzz/hb-ot-deprecated.h | |
300 | %{_includedir}/harfbuzz/hb-ot-font.h | |
301 | %{_includedir}/harfbuzz/hb-ot-layout.h | |
302 | %{_includedir}/harfbuzz/hb-ot-math.h | |
303 | %{_includedir}/harfbuzz/hb-ot-meta.h | |
304 | %{_includedir}/harfbuzz/hb-ot-metrics.h | |
305 | %{_includedir}/harfbuzz/hb-ot-name.h | |
306 | %{_includedir}/harfbuzz/hb-ot-shape.h | |
307 | %{_includedir}/harfbuzz/hb-ot-var.h | |
308 | %{_includedir}/harfbuzz/hb-ot.h | |
309 | %{_includedir}/harfbuzz/hb-set.h | |
310 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
311 | %{_includedir}/harfbuzz/hb-shape.h | |
312 | %{_includedir}/harfbuzz/hb-style.h | |
313 | %{_includedir}/harfbuzz/hb-unicode.h | |
314 | %{_includedir}/harfbuzz/hb-version.h | |
315 | %{_pkgconfigdir}/harfbuzz.pc | |
316 | %{_pkgconfigdir}/harfbuzz-gobject.pc | |
317 | %dir %{_libdir}/cmake/harfbuzz | |
318 | %{_libdir}/cmake/harfbuzz/harfbuzz-config.cmake | |
319 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir | |
320 | ||
321 | %if %{with static_libs} | |
322 | %files static | |
323 | %defattr(644,root,root,755) | |
324 | %{_libdir}/libharfbuzz.a | |
325 | %endif | |
326 | ||
327 | %if %{with static_libs} | |
328 | %files gobject-static | |
329 | %defattr(644,root,root,755) | |
330 | %{_libdir}/libharfbuzz-gobject.a | |
331 | %endif | |
332 | ||
333 | %if %{with icu} | |
334 | %files icu | |
335 | %defattr(644,root,root,755) | |
336 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.* | |
337 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0 | |
338 | ||
339 | %files icu-devel | |
340 | %defattr(644,root,root,755) | |
341 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so | |
342 | %{_includedir}/harfbuzz/hb-icu.h | |
343 | %{_pkgconfigdir}/harfbuzz-icu.pc | |
344 | ||
345 | %if %{with static_libs} | |
346 | %files icu-static | |
347 | %defattr(644,root,root,755) | |
348 | %{_libdir}/libharfbuzz-icu.a | |
349 | %endif | |
350 | %endif | |
351 | ||
352 | %files subset | |
353 | %defattr(644,root,root,755) | |
354 | %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so.*.*.* | |
355 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-subset.so.0 | |
356 | ||
357 | %files subset-devel | |
358 | %defattr(644,root,root,755) | |
359 | %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so | |
360 | %{_includedir}/harfbuzz/hb-subset.h | |
361 | %{_pkgconfigdir}/harfbuzz-subset.pc | |
362 | ||
363 | %if %{with static_libs} | |
364 | %files subset-static | |
365 | %defattr(644,root,root,755) | |
366 | %{_libdir}/libharfbuzz-subset.a | |
367 | %endif | |
368 | ||
369 | %files progs | |
370 | %defattr(644,root,root,755) | |
371 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure | |
372 | %attr(755,root,root) %{_bindir}/hb-shape | |
373 | %attr(755,root,root) %{_bindir}/hb-subset | |
374 | %attr(755,root,root) %{_bindir}/hb-view | |
375 | ||
376 | %files apidocs | |
377 | %defattr(644,root,root,755) | |
378 | %{_gtkdocdir}/harfbuzz |