]>
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 | |
8addaff6 | 11 | Version: 8.1.1 |
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 |
8addaff6 | 16 | # Source0-md5: f0040d0fc02cf94cac9f46a94c44c6de |
7e583981 | 17 | URL: https://harfbuzz.github.io/ |
d83c11ab | 18 | BuildRequires: autoconf >= 2.64 |
089d8430 | 19 | BuildRequires: automake >= 1:1.13.0 |
cf468305 | 20 | BuildRequires: cairo-devel >= 1.8.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 |
d18130a6 | 27 | %{?with_icu:BuildRequires: libicu-devel} |
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} | |
125 | ||
126 | %description icu | |
127 | HarfBuzz text shaping library - ICU integration. | |
128 | ||
129 | %description icu -l pl.UTF-8 | |
130 | Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU. | |
131 | ||
132 | %package icu-devel | |
133 | Summary: Header file for HarfBuzz ICU library | |
134 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki HarfBuzz ICU | |
135 | Group: Development/Libraries | |
136 | Requires: %{name}-devel = %{version}-%{release} | |
137 | Requires: %{name}-icu = %{version}-%{release} | |
138 | Requires: libicu-devel | |
139 | ||
140 | %description icu-devel | |
141 | Header file for HarfBuzz ICU library. | |
142 | ||
143 | %description icu-devel -l pl.UTF-8 | |
144 | Plik nagłówkowy biblioteki HarfBuzz ICU. | |
145 | ||
146 | %package icu-static | |
147 | Summary: Static HarfBuzz ICU library | |
148 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz ICU | |
149 | Group: Development/Libraries | |
150 | Requires: %{name}-icu-devel = %{version}-%{release} | |
151 | ||
152 | %description icu-static | |
153 | Static HarfBuzz ICU library. | |
154 | ||
155 | %description icu-static -l pl.UTF-8 | |
156 | Biblioteka statyczna HarfBuzz ICU. | |
157 | ||
2141b1ec JP |
158 | %package subset |
159 | Summary: HarfBuzz text shaping library - font subsetter | |
160 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - font subsetter | |
161 | Group: Libraries | |
162 | Requires: %{name} = %{version}-%{release} | |
163 | ||
164 | %description subset | |
165 | HarfBuzz text shaping library - font subsetter. | |
166 | ||
167 | %description subset -l pl.UTF-8 | |
168 | Biblioteka HarfBuzz do rysowania tekstu - font subsetter. | |
169 | ||
170 | %package subset-devel | |
4f528c8f JB |
171 | Summary: Header files for HarfBuzz subset library |
172 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz subset | |
2141b1ec JP |
173 | Group: Development/Libraries |
174 | Requires: %{name}-devel = %{version}-%{release} | |
175 | Requires: %{name}-subset = %{version}-%{release} | |
2141b1ec JP |
176 | |
177 | %description subset-devel | |
4f528c8f | 178 | Header files for HarfBuzz subset library. |
2141b1ec JP |
179 | |
180 | %description subset-devel -l pl.UTF-8 | |
4f528c8f | 181 | Pliki nagłówkowe biblioteki HarfBuzz subset. |
2141b1ec JP |
182 | |
183 | %package subset-static | |
184 | Summary: Static HarfBuzz subset library | |
185 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz subset | |
186 | Group: Development/Libraries | |
187 | Requires: %{name}-subset-devel = %{version}-%{release} | |
188 | ||
189 | %description subset-static | |
190 | Static HarfBuzz subset library. | |
191 | ||
192 | %description subset-static -l pl.UTF-8 | |
193 | Biblioteka statyczna HarfBuzz subset. | |
194 | ||
214fe00a | 195 | %package progs |
b4123cee JB |
196 | Summary: HarfBuzz command-line utilities |
197 | Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń | |
214fe00a ER |
198 | Group: Libraries |
199 | Requires: %{name} = %{version}-%{release} | |
200 | Requires: cairo >= 1.8.0 | |
201 | ||
202 | %description progs | |
b4123cee JB |
203 | HarfBuzz command-line utilities. |
204 | ||
205 | %description progs -l pl.UTF-8 | |
206 | Narzędzia HarfBuzz uruchamiane z linii poleceń. | |
214fe00a | 207 | |
96f54f6c JB |
208 | %package apidocs |
209 | Summary: HarfBuzz API documentation | |
210 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
211 | Group: Documentation | |
18e077b0 | 212 | BuildArch: noarch |
96f54f6c JB |
213 | |
214 | %description apidocs | |
215 | API documentation for HarfBuzz libraries. | |
216 | ||
217 | %description apidocs -l pl.UTF-8 | |
218 | Dokumentacja API bibliotek HarfBuzz. | |
219 | ||
cf468305 JB |
220 | %prep |
221 | %setup -q | |
222 | ||
223 | %build | |
d83c11ab | 224 | %{__libtoolize} |
3a67e23d | 225 | %{__gtkdocize} |
d83c11ab JB |
226 | %{__aclocal} -I m4 |
227 | %{__autoconf} | |
228 | %{__autoheader} | |
229 | %{__automake} | |
cf468305 JB |
230 | %configure \ |
231 | --disable-silent-rules \ | |
3a67e23d | 232 | --enable-gtk-doc \ |
d18130a6 JB |
233 | %{?with_static_libs:--enable-static} \ |
234 | --with-cairo \ | |
235 | --with-freetype \ | |
236 | --with-glib \ | |
96f54f6c | 237 | --with-gobject \ |
d18130a6 | 238 | %{?with_graphite2:--with-graphite2} \ |
96f54f6c | 239 | --with-html-dir=%{_gtkdocdir} \ |
d18130a6 | 240 | --with-icu%{!?with_icu:=no} |
cf468305 JB |
241 | %{__make} |
242 | ||
c9ed3fb9 AM |
243 | %{?with_tests:%{__make} check} |
244 | ||
cf468305 JB |
245 | %install |
246 | rm -rf $RPM_BUILD_ROOT | |
d18130a6 | 247 | %{__make} install \ |
cf468305 JB |
248 | DESTDIR=$RPM_BUILD_ROOT |
249 | ||
4e2c56b4 | 250 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
251 | |
252 | %clean | |
253 | rm -rf $RPM_BUILD_ROOT | |
254 | ||
255 | %post -p /sbin/ldconfig | |
256 | %postun -p /sbin/ldconfig | |
257 | ||
6d650794 JP |
258 | %post cairo -p /sbin/ldconfig |
259 | %postun cairo -p /sbin/ldconfig | |
260 | ||
d18130a6 JB |
261 | %post icu -p /sbin/ldconfig |
262 | %postun icu -p /sbin/ldconfig | |
263 | ||
2141b1ec JP |
264 | %post subset -p /sbin/ldconfig |
265 | %postun subset -p /sbin/ldconfig | |
266 | ||
cf468305 JB |
267 | %files |
268 | %defattr(644,root,root,755) | |
e9379292 | 269 | %doc AUTHORS COPYING NEWS README.md THANKS |
cf468305 JB |
270 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* |
271 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
aab43ec3 JR |
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 | |
0844366e | 275 | |
cf468305 JB |
276 | %files devel |
277 | %defattr(644,root,root,755) | |
278 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
aab43ec3 | 279 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so |
d18130a6 JB |
280 | %dir %{_includedir}/harfbuzz |
281 | %{_includedir}/harfbuzz/hb.h | |
3ee666c8 JP |
282 | %{_includedir}/harfbuzz/hb-aat.h |
283 | %{_includedir}/harfbuzz/hb-aat-layout.h | |
d18130a6 JB |
284 | %{_includedir}/harfbuzz/hb-blob.h |
285 | %{_includedir}/harfbuzz/hb-buffer.h | |
286 | %{_includedir}/harfbuzz/hb-common.h | |
65834dc4 | 287 | %{_includedir}/harfbuzz/hb-cplusplus.hh |
96f54f6c | 288 | %{_includedir}/harfbuzz/hb-deprecated.h |
7e583981 | 289 | %{_includedir}/harfbuzz/hb-draw.h |
96f54f6c | 290 | %{_includedir}/harfbuzz/hb-face.h |
d18130a6 JB |
291 | %{_includedir}/harfbuzz/hb-font.h |
292 | %{_includedir}/harfbuzz/hb-ft.h | |
293 | %{_includedir}/harfbuzz/hb-glib.h | |
aab43ec3 JR |
294 | %{_includedir}/harfbuzz/hb-gobject.h |
295 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
296 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
d18130a6 | 297 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
da2b2fda | 298 | %{_includedir}/harfbuzz/hb-map.h |
cf0b2839 | 299 | %{_includedir}/harfbuzz/hb-ot-color.h |
9acbff8e | 300 | %{_includedir}/harfbuzz/hb-ot-deprecated.h |
c9ed3fb9 | 301 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 302 | %{_includedir}/harfbuzz/hb-ot-layout.h |
8acbd1ec | 303 | %{_includedir}/harfbuzz/hb-ot-math.h |
5aafd8c1 JP |
304 | %{_includedir}/harfbuzz/hb-ot-meta.h |
305 | %{_includedir}/harfbuzz/hb-ot-metrics.h | |
06a31627 | 306 | %{_includedir}/harfbuzz/hb-ot-name.h |
16fffe4d | 307 | %{_includedir}/harfbuzz/hb-ot-shape.h |
13e3f4ef | 308 | %{_includedir}/harfbuzz/hb-ot-var.h |
d18130a6 | 309 | %{_includedir}/harfbuzz/hb-ot.h |
6d650794 | 310 | %{_includedir}/harfbuzz/hb-paint.h |
d18130a6 JB |
311 | %{_includedir}/harfbuzz/hb-set.h |
312 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
313 | %{_includedir}/harfbuzz/hb-shape.h | |
25428c77 | 314 | %{_includedir}/harfbuzz/hb-style.h |
d18130a6 JB |
315 | %{_includedir}/harfbuzz/hb-unicode.h |
316 | %{_includedir}/harfbuzz/hb-version.h | |
cf468305 | 317 | %{_pkgconfigdir}/harfbuzz.pc |
aab43ec3 | 318 | %{_pkgconfigdir}/harfbuzz-gobject.pc |
2141b1ec JP |
319 | %dir %{_libdir}/cmake/harfbuzz |
320 | %{_libdir}/cmake/harfbuzz/harfbuzz-config.cmake | |
aab43ec3 | 321 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir |
cf468305 JB |
322 | |
323 | %if %{with static_libs} | |
324 | %files static | |
325 | %defattr(644,root,root,755) | |
326 | %{_libdir}/libharfbuzz.a | |
b4123cee JB |
327 | %{_libdir}/libharfbuzz-gobject.a |
328 | %endif | |
329 | ||
6d650794 JP |
330 | %files cairo |
331 | %defattr(644,root,root,755) | |
332 | %attr(755,root,root) %{_libdir}/libharfbuzz-cairo.so.*.*.* | |
333 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-cairo.so.0 | |
334 | ||
335 | %files cairo-devel | |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/libharfbuzz-cairo.so | |
338 | %{_includedir}/harfbuzz/hb-cairo.h | |
339 | %{_pkgconfigdir}/harfbuzz-cairo.pc | |
340 | ||
341 | %if %{with static_libs} | |
342 | %files cairo-static | |
343 | %defattr(644,root,root,755) | |
344 | %{_libdir}/libharfbuzz-cairo.a | |
345 | %endif | |
346 | ||
d18130a6 JB |
347 | %if %{with icu} |
348 | %files icu | |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.* | |
351 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0 | |
352 | ||
353 | %files icu-devel | |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so | |
356 | %{_includedir}/harfbuzz/hb-icu.h | |
357 | %{_pkgconfigdir}/harfbuzz-icu.pc | |
358 | ||
359 | %if %{with static_libs} | |
360 | %files icu-static | |
361 | %defattr(644,root,root,755) | |
362 | %{_libdir}/libharfbuzz-icu.a | |
363 | %endif | |
364 | %endif | |
96f54f6c | 365 | |
2141b1ec JP |
366 | %files subset |
367 | %defattr(644,root,root,755) | |
368 | %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so.*.*.* | |
369 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-subset.so.0 | |
370 | ||
371 | %files subset-devel | |
372 | %defattr(644,root,root,755) | |
373 | %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so | |
374 | %{_includedir}/harfbuzz/hb-subset.h | |
3e8aa9b8 | 375 | %{_includedir}/harfbuzz/hb-subset-repacker.h |
2141b1ec JP |
376 | %{_pkgconfigdir}/harfbuzz-subset.pc |
377 | ||
378 | %if %{with static_libs} | |
379 | %files subset-static | |
380 | %defattr(644,root,root,755) | |
381 | %{_libdir}/libharfbuzz-subset.a | |
382 | %endif | |
383 | ||
214fe00a ER |
384 | %files progs |
385 | %defattr(644,root,root,755) | |
6d650794 | 386 | %attr(755,root,root) %{_bindir}/hb-info |
214fe00a ER |
387 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure |
388 | %attr(755,root,root) %{_bindir}/hb-shape | |
2141b1ec | 389 | %attr(755,root,root) %{_bindir}/hb-subset |
214fe00a ER |
390 | %attr(755,root,root) %{_bindir}/hb-view |
391 | ||
96f54f6c JB |
392 | %files apidocs |
393 | %defattr(644,root,root,755) | |
394 | %{_gtkdocdir}/harfbuzz |