]>
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 | |
6fcdffea | 11 | Version: 2.6.7 |
890bf101 | 12 | Release: 1 |
cf468305 JB |
13 | License: MIT |
14 | Group: Libraries | |
7e583981 | 15 | Source0: https://github.com/harfbuzz/harfbuzz/releases/download/%{version}/%{name}-%{version}.tar.xz |
6fcdffea | 16 | # Source0-md5: 3b884586a09328c5fae76d8c200b0e1c |
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 JB |
222 | %{__libtoolize} |
223 | %{__aclocal} -I m4 | |
224 | %{__autoconf} | |
225 | %{__autoheader} | |
226 | %{__automake} | |
cf468305 JB |
227 | %configure \ |
228 | --disable-silent-rules \ | |
d18130a6 JB |
229 | %{?with_static_libs:--enable-static} \ |
230 | --with-cairo \ | |
231 | --with-freetype \ | |
232 | --with-glib \ | |
96f54f6c | 233 | --with-gobject \ |
d18130a6 | 234 | %{?with_graphite2:--with-graphite2} \ |
96f54f6c | 235 | --with-html-dir=%{_gtkdocdir} \ |
d18130a6 | 236 | --with-icu%{!?with_icu:=no} |
cf468305 JB |
237 | %{__make} |
238 | ||
c9ed3fb9 AM |
239 | %{?with_tests:%{__make} check} |
240 | ||
cf468305 JB |
241 | %install |
242 | rm -rf $RPM_BUILD_ROOT | |
d18130a6 | 243 | %{__make} install \ |
cf468305 JB |
244 | DESTDIR=$RPM_BUILD_ROOT |
245 | ||
4e2c56b4 | 246 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
247 | |
248 | %clean | |
249 | rm -rf $RPM_BUILD_ROOT | |
250 | ||
251 | %post -p /sbin/ldconfig | |
252 | %postun -p /sbin/ldconfig | |
253 | ||
0844366e ER |
254 | %post gobject -p /sbin/ldconfig |
255 | %postun gobject -p /sbin/ldconfig | |
256 | ||
d18130a6 JB |
257 | %post icu -p /sbin/ldconfig |
258 | %postun icu -p /sbin/ldconfig | |
259 | ||
2141b1ec JP |
260 | %post subset -p /sbin/ldconfig |
261 | %postun subset -p /sbin/ldconfig | |
262 | ||
cf468305 JB |
263 | %files |
264 | %defattr(644,root,root,755) | |
d18130a6 | 265 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO |
cf468305 JB |
266 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* |
267 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
0844366e | 268 | |
cf468305 JB |
269 | %files devel |
270 | %defattr(644,root,root,755) | |
271 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
d18130a6 JB |
272 | %dir %{_includedir}/harfbuzz |
273 | %{_includedir}/harfbuzz/hb.h | |
3ee666c8 JP |
274 | %{_includedir}/harfbuzz/hb-aat.h |
275 | %{_includedir}/harfbuzz/hb-aat-layout.h | |
d18130a6 JB |
276 | %{_includedir}/harfbuzz/hb-blob.h |
277 | %{_includedir}/harfbuzz/hb-buffer.h | |
278 | %{_includedir}/harfbuzz/hb-common.h | |
96f54f6c | 279 | %{_includedir}/harfbuzz/hb-deprecated.h |
7e583981 | 280 | %{_includedir}/harfbuzz/hb-draw.h |
96f54f6c | 281 | %{_includedir}/harfbuzz/hb-face.h |
d18130a6 JB |
282 | %{_includedir}/harfbuzz/hb-font.h |
283 | %{_includedir}/harfbuzz/hb-ft.h | |
284 | %{_includedir}/harfbuzz/hb-glib.h | |
d18130a6 | 285 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
da2b2fda | 286 | %{_includedir}/harfbuzz/hb-map.h |
cf0b2839 | 287 | %{_includedir}/harfbuzz/hb-ot-color.h |
9acbff8e | 288 | %{_includedir}/harfbuzz/hb-ot-deprecated.h |
c9ed3fb9 | 289 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 290 | %{_includedir}/harfbuzz/hb-ot-layout.h |
8acbd1ec | 291 | %{_includedir}/harfbuzz/hb-ot-math.h |
5aafd8c1 JP |
292 | %{_includedir}/harfbuzz/hb-ot-meta.h |
293 | %{_includedir}/harfbuzz/hb-ot-metrics.h | |
06a31627 | 294 | %{_includedir}/harfbuzz/hb-ot-name.h |
16fffe4d | 295 | %{_includedir}/harfbuzz/hb-ot-shape.h |
13e3f4ef | 296 | %{_includedir}/harfbuzz/hb-ot-var.h |
d18130a6 JB |
297 | %{_includedir}/harfbuzz/hb-ot.h |
298 | %{_includedir}/harfbuzz/hb-set.h | |
299 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
300 | %{_includedir}/harfbuzz/hb-shape.h | |
301 | %{_includedir}/harfbuzz/hb-unicode.h | |
302 | %{_includedir}/harfbuzz/hb-version.h | |
cf468305 | 303 | %{_pkgconfigdir}/harfbuzz.pc |
2141b1ec JP |
304 | %dir %{_libdir}/cmake/harfbuzz |
305 | %{_libdir}/cmake/harfbuzz/harfbuzz-config.cmake | |
cf468305 JB |
306 | |
307 | %if %{with static_libs} | |
308 | %files static | |
309 | %defattr(644,root,root,755) | |
310 | %{_libdir}/libharfbuzz.a | |
311 | %endif | |
d18130a6 | 312 | |
b4123cee JB |
313 | %files gobject |
314 | %defattr(644,root,root,755) | |
315 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* | |
316 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
317 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib | |
318 | ||
319 | %files gobject-devel | |
320 | %defattr(644,root,root,755) | |
321 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so | |
322 | %{_includedir}/harfbuzz/hb-gobject.h | |
323 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
324 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
325 | %{_pkgconfigdir}/harfbuzz-gobject.pc | |
326 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir | |
327 | ||
328 | %if %{with static_libs} | |
329 | %files gobject-static | |
330 | %defattr(644,root,root,755) | |
331 | %{_libdir}/libharfbuzz-gobject.a | |
332 | %endif | |
333 | ||
d18130a6 JB |
334 | %if %{with icu} |
335 | %files icu | |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.* | |
338 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0 | |
339 | ||
340 | %files icu-devel | |
341 | %defattr(644,root,root,755) | |
342 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so | |
343 | %{_includedir}/harfbuzz/hb-icu.h | |
344 | %{_pkgconfigdir}/harfbuzz-icu.pc | |
345 | ||
346 | %if %{with static_libs} | |
347 | %files icu-static | |
348 | %defattr(644,root,root,755) | |
349 | %{_libdir}/libharfbuzz-icu.a | |
350 | %endif | |
351 | %endif | |
96f54f6c | 352 | |
2141b1ec JP |
353 | %files subset |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so.*.*.* | |
356 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-subset.so.0 | |
357 | ||
358 | %files subset-devel | |
359 | %defattr(644,root,root,755) | |
360 | %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so | |
361 | %{_includedir}/harfbuzz/hb-subset.h | |
2141b1ec JP |
362 | %{_pkgconfigdir}/harfbuzz-subset.pc |
363 | ||
364 | %if %{with static_libs} | |
365 | %files subset-static | |
366 | %defattr(644,root,root,755) | |
367 | %{_libdir}/libharfbuzz-subset.a | |
368 | %endif | |
369 | ||
214fe00a ER |
370 | %files progs |
371 | %defattr(644,root,root,755) | |
372 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure | |
373 | %attr(755,root,root) %{_bindir}/hb-shape | |
2141b1ec | 374 | %attr(755,root,root) %{_bindir}/hb-subset |
214fe00a ER |
375 | %attr(755,root,root) %{_bindir}/hb-view |
376 | ||
96f54f6c JB |
377 | %files apidocs |
378 | %defattr(644,root,root,755) | |
379 | %{_gtkdocdir}/harfbuzz |