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