]>
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 | |
4aa80faf | 11 | Version: 2.7.1 |
aab43ec3 | 12 | Release: 2 |
cf468305 JB |
13 | License: MIT |
14 | Group: Libraries | |
3a67e23d | 15 | Source0: https://github.com/harfbuzz/harfbuzz/archive/%{version}/%{name}-%{version}.tar.gz |
4aa80faf | 16 | # Source0-md5: 76f22a4e888d0eb9e26049136c3e3a69 |
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} |
aab43ec3 | 40 | Obsoletes: harfbuzz-gobject < 2.7.1-1 |
cf468305 JB |
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} | |
06d83441 | 55 | Requires: freetype-devel >= 1:2.9 |
8acbd1ec | 56 | Requires: glib2-devel >= 1:2.38 |
06a31627 | 57 | %{?with_graphite2:Requires: graphite2-devel >= 1.2.0} |
aab43ec3 | 58 | Obsoletes: harfbuzz-gobject-devel < 2.7.1-1 |
cf468305 JB |
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 | ||
0844366e ER |
79 | %package gobject |
80 | Summary: Harfbuzz GObject interface | |
b4123cee | 81 | Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz |
0844366e | 82 | Group: Libraries |
214fe00a | 83 | Requires: %{name} = %{version}-%{release} |
0844366e ER |
84 | |
85 | %description gobject | |
86 | Harfbuzz GObject interface. | |
87 | ||
88 | %description gobject -l pl.UTF-8 | |
b4123cee | 89 | Interfejs GObject do biblioteki Harfbuzz. |
0844366e ER |
90 | |
91 | %package gobject-devel | |
92 | Summary: Header files for Harfbuzz GObject interface | |
b4123cee | 93 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz |
0844366e ER |
94 | Group: Development/Libraries |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | Requires: %{name}-gobject = %{version}-%{release} | |
0844366e ER |
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 | |
b4123cee JB |
103 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki |
104 | Harfbuzz. | |
0844366e ER |
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 | ||
d18130a6 JB |
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 | ||
2141b1ec JP |
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 | |
4f528c8f JB |
169 | Summary: Header files for HarfBuzz subset library |
170 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz subset | |
2141b1ec JP |
171 | Group: Development/Libraries |
172 | Requires: %{name}-devel = %{version}-%{release} | |
173 | Requires: %{name}-subset = %{version}-%{release} | |
2141b1ec JP |
174 | |
175 | %description subset-devel | |
4f528c8f | 176 | Header files for HarfBuzz subset library. |
2141b1ec JP |
177 | |
178 | %description subset-devel -l pl.UTF-8 | |
4f528c8f | 179 | Pliki nagłówkowe biblioteki HarfBuzz subset. |
2141b1ec JP |
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 | ||
214fe00a | 193 | %package progs |
b4123cee JB |
194 | Summary: HarfBuzz command-line utilities |
195 | Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń | |
214fe00a ER |
196 | Group: Libraries |
197 | Requires: %{name} = %{version}-%{release} | |
198 | Requires: cairo >= 1.8.0 | |
199 | ||
200 | %description progs | |
b4123cee JB |
201 | HarfBuzz command-line utilities. |
202 | ||
203 | %description progs -l pl.UTF-8 | |
204 | Narzędzia HarfBuzz uruchamiane z linii poleceń. | |
214fe00a | 205 | |
96f54f6c JB |
206 | %package apidocs |
207 | Summary: HarfBuzz API documentation | |
208 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
209 | Group: Documentation | |
29fa7f1d ER |
210 | %if "%{_rpmversion}" >= "5" |
211 | BuildArch: noarch | |
212 | %endif | |
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 | ||
0844366e ER |
258 | %post gobject -p /sbin/ldconfig |
259 | %postun gobject -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) | |
3a67e23d | 269 | %doc AUTHORS COPYING NEWS README.md THANKS TODO |
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 | |
96f54f6c | 287 | %{_includedir}/harfbuzz/hb-deprecated.h |
7e583981 | 288 | %{_includedir}/harfbuzz/hb-draw.h |
96f54f6c | 289 | %{_includedir}/harfbuzz/hb-face.h |
d18130a6 JB |
290 | %{_includedir}/harfbuzz/hb-font.h |
291 | %{_includedir}/harfbuzz/hb-ft.h | |
292 | %{_includedir}/harfbuzz/hb-glib.h | |
aab43ec3 JR |
293 | %{_includedir}/harfbuzz/hb-gobject.h |
294 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
295 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
d18130a6 | 296 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
da2b2fda | 297 | %{_includedir}/harfbuzz/hb-map.h |
cf0b2839 | 298 | %{_includedir}/harfbuzz/hb-ot-color.h |
9acbff8e | 299 | %{_includedir}/harfbuzz/hb-ot-deprecated.h |
c9ed3fb9 | 300 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 301 | %{_includedir}/harfbuzz/hb-ot-layout.h |
8acbd1ec | 302 | %{_includedir}/harfbuzz/hb-ot-math.h |
5aafd8c1 JP |
303 | %{_includedir}/harfbuzz/hb-ot-meta.h |
304 | %{_includedir}/harfbuzz/hb-ot-metrics.h | |
06a31627 | 305 | %{_includedir}/harfbuzz/hb-ot-name.h |
16fffe4d | 306 | %{_includedir}/harfbuzz/hb-ot-shape.h |
13e3f4ef | 307 | %{_includedir}/harfbuzz/hb-ot-var.h |
d18130a6 JB |
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 | |
25428c77 | 312 | %{_includedir}/harfbuzz/hb-style.h |
d18130a6 JB |
313 | %{_includedir}/harfbuzz/hb-unicode.h |
314 | %{_includedir}/harfbuzz/hb-version.h | |
cf468305 | 315 | %{_pkgconfigdir}/harfbuzz.pc |
aab43ec3 | 316 | %{_pkgconfigdir}/harfbuzz-gobject.pc |
2141b1ec JP |
317 | %dir %{_libdir}/cmake/harfbuzz |
318 | %{_libdir}/cmake/harfbuzz/harfbuzz-config.cmake | |
aab43ec3 | 319 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir |
cf468305 JB |
320 | |
321 | %if %{with static_libs} | |
322 | %files static | |
323 | %defattr(644,root,root,755) | |
324 | %{_libdir}/libharfbuzz.a | |
325 | %endif | |
d18130a6 | 326 | |
b4123cee JB |
327 | %if %{with static_libs} |
328 | %files gobject-static | |
329 | %defattr(644,root,root,755) | |
330 | %{_libdir}/libharfbuzz-gobject.a | |
331 | %endif | |
332 | ||
d18130a6 JB |
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 | |
96f54f6c | 351 | |
2141b1ec JP |
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 | |
2141b1ec JP |
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 | ||
214fe00a ER |
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 | |
2141b1ec | 373 | %attr(755,root,root) %{_bindir}/hb-subset |
214fe00a ER |
374 | %attr(755,root,root) %{_bindir}/hb-view |
375 | ||
96f54f6c JB |
376 | %files apidocs |
377 | %defattr(644,root,root,755) | |
378 | %{_gtkdocdir}/harfbuzz |