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