]>
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 | |
fac38ac2 | 6 | %bcond_without tests # "make check" call |
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 | |
28638d0b | 11 | Version: 2.5.1 |
890bf101 | 12 | Release: 1 |
cf468305 JB |
13 | License: MIT |
14 | Group: Libraries | |
890bf101 | 15 | Source0: https://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.xz |
28638d0b | 16 | # Source0-md5: 7d19d1f610472285b3e47f5c45831b84 |
26e1b58a | 17 | Patch0: pc_deps.patch |
d23beedf | 18 | URL: https://www.freedesktop.org/wiki/HarfBuzz |
d83c11ab | 19 | BuildRequires: autoconf >= 2.64 |
089d8430 | 20 | BuildRequires: automake >= 1:1.13.0 |
cf468305 | 21 | BuildRequires: cairo-devel >= 1.8.0 |
4f0fb993 JB |
22 | # hb-fc-list is disabled in util/Makefile.am |
23 | #BuildRequires: fontconfig-devel | |
4f528c8f | 24 | %{?with_tests:BuildRequires: fonttools} |
06d83441 | 25 | BuildRequires: freetype-devel >= 1:2.9 |
8acbd1ec | 26 | BuildRequires: glib2-devel >= 1:2.38 |
6681ba55 | 27 | BuildRequires: gobject-introspection-devel >= 1.34.0 |
06a31627 | 28 | %{?with_graphite2:BuildRequires: graphite2-devel >= 1.2.0} |
96f54f6c | 29 | BuildRequires: gtk-doc >= 1.15 |
d18130a6 | 30 | %{?with_icu:BuildRequires: libicu-devel} |
890bf101 | 31 | BuildRequires: libstdc++-devel >= 6:4.9 |
d83c11ab | 32 | BuildRequires: libtool >= 2:2.2 |
537793e0 | 33 | %{?with_tests:BuildRequires: otsanitizer} |
26e1b58a | 34 | BuildRequires: pkgconfig >= 1:0.27 |
d83c11ab | 35 | BuildRequires: sed >= 4.0 |
99ae3ad2 | 36 | BuildRequires: tar >= 1:1.22 |
890bf101 | 37 | BuildRequires: xz |
06d83441 | 38 | Requires: freetype >= 1:2.9 |
8acbd1ec | 39 | Requires: glib2 >= 1:2.38 |
06a31627 | 40 | %{?with_graphite2:Requires: graphite2 >= 1.2.0} |
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} |
cf468305 JB |
58 | Requires: libstdc++-devel |
59 | ||
60 | %description devel | |
61 | Header files for HarfBuzz library. | |
62 | ||
63 | %description devel -l pl.UTF-8 | |
64 | Pliki nagłówkowe biblioteki HarfBuzz. | |
65 | ||
66 | %package static | |
67 | Summary: Static HarfBuzz library | |
68 | Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-devel = %{version}-%{release} | |
71 | ||
72 | %description static | |
73 | Static HarfBuzz library. | |
74 | ||
75 | %description static -l pl.UTF-8 | |
76 | Statyczna biblioteka HarfBuzz. | |
77 | ||
0844366e ER |
78 | %package gobject |
79 | Summary: Harfbuzz GObject interface | |
b4123cee | 80 | Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz |
0844366e | 81 | Group: Libraries |
214fe00a | 82 | Requires: %{name} = %{version}-%{release} |
0844366e ER |
83 | |
84 | %description gobject | |
85 | Harfbuzz GObject interface. | |
86 | ||
87 | %description gobject -l pl.UTF-8 | |
b4123cee | 88 | Interfejs GObject do biblioteki Harfbuzz. |
0844366e ER |
89 | |
90 | %package gobject-devel | |
91 | Summary: Header files for Harfbuzz GObject interface | |
b4123cee | 92 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz |
0844366e ER |
93 | Group: Development/Libraries |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | Requires: %{name}-gobject = %{version}-%{release} | |
0844366e ER |
96 | |
97 | %description gobject-devel | |
98 | This is the package containing the header files for Harfbuzz GObject | |
99 | interface. | |
100 | ||
101 | %description gobject-devel -l pl.UTF-8 | |
b4123cee JB |
102 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki |
103 | Harfbuzz. | |
0844366e ER |
104 | |
105 | %package gobject-static | |
106 | Summary: Static Harfbuzz GObject library | |
107 | Summary(pl.UTF-8): Statyczna biblioteka Harfbuzz GObject | |
108 | Group: Development/Libraries | |
109 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
110 | ||
111 | %description gobject-static | |
112 | Static Harfbuzz GObject library. | |
113 | ||
114 | %description gobject-static -l pl.UTF-8 | |
115 | Statyczna biblioteka Harfbuzz GObject. | |
116 | ||
d18130a6 JB |
117 | %package icu |
118 | Summary: HarfBuzz text shaping library - ICU integration | |
119 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU | |
120 | Group: Libraries | |
121 | Requires: %{name} = %{version}-%{release} | |
122 | ||
123 | %description icu | |
124 | HarfBuzz text shaping library - ICU integration. | |
125 | ||
126 | %description icu -l pl.UTF-8 | |
127 | Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU. | |
128 | ||
129 | %package icu-devel | |
130 | Summary: Header file for HarfBuzz ICU library | |
131 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki HarfBuzz ICU | |
132 | Group: Development/Libraries | |
133 | Requires: %{name}-devel = %{version}-%{release} | |
134 | Requires: %{name}-icu = %{version}-%{release} | |
135 | Requires: libicu-devel | |
136 | ||
137 | %description icu-devel | |
138 | Header file for HarfBuzz ICU library. | |
139 | ||
140 | %description icu-devel -l pl.UTF-8 | |
141 | Plik nagłówkowy biblioteki HarfBuzz ICU. | |
142 | ||
143 | %package icu-static | |
144 | Summary: Static HarfBuzz ICU library | |
145 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz ICU | |
146 | Group: Development/Libraries | |
147 | Requires: %{name}-icu-devel = %{version}-%{release} | |
148 | ||
149 | %description icu-static | |
150 | Static HarfBuzz ICU library. | |
151 | ||
152 | %description icu-static -l pl.UTF-8 | |
153 | Biblioteka statyczna HarfBuzz ICU. | |
154 | ||
2141b1ec JP |
155 | %package subset |
156 | Summary: HarfBuzz text shaping library - font subsetter | |
157 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - font subsetter | |
158 | Group: Libraries | |
159 | Requires: %{name} = %{version}-%{release} | |
160 | ||
161 | %description subset | |
162 | HarfBuzz text shaping library - font subsetter. | |
163 | ||
164 | %description subset -l pl.UTF-8 | |
165 | Biblioteka HarfBuzz do rysowania tekstu - font subsetter. | |
166 | ||
167 | %package subset-devel | |
4f528c8f JB |
168 | Summary: Header files for HarfBuzz subset library |
169 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz subset | |
2141b1ec JP |
170 | Group: Development/Libraries |
171 | Requires: %{name}-devel = %{version}-%{release} | |
172 | Requires: %{name}-subset = %{version}-%{release} | |
2141b1ec JP |
173 | |
174 | %description subset-devel | |
4f528c8f | 175 | Header files for HarfBuzz subset library. |
2141b1ec JP |
176 | |
177 | %description subset-devel -l pl.UTF-8 | |
4f528c8f | 178 | Pliki nagłówkowe biblioteki HarfBuzz subset. |
2141b1ec JP |
179 | |
180 | %package subset-static | |
181 | Summary: Static HarfBuzz subset library | |
182 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz subset | |
183 | Group: Development/Libraries | |
184 | Requires: %{name}-subset-devel = %{version}-%{release} | |
185 | ||
186 | %description subset-static | |
187 | Static HarfBuzz subset library. | |
188 | ||
189 | %description subset-static -l pl.UTF-8 | |
190 | Biblioteka statyczna HarfBuzz subset. | |
191 | ||
214fe00a | 192 | %package progs |
b4123cee JB |
193 | Summary: HarfBuzz command-line utilities |
194 | Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń | |
214fe00a ER |
195 | Group: Libraries |
196 | Requires: %{name} = %{version}-%{release} | |
197 | Requires: cairo >= 1.8.0 | |
198 | ||
199 | %description progs | |
b4123cee JB |
200 | HarfBuzz command-line utilities. |
201 | ||
202 | %description progs -l pl.UTF-8 | |
203 | Narzędzia HarfBuzz uruchamiane z linii poleceń. | |
214fe00a | 204 | |
96f54f6c JB |
205 | %package apidocs |
206 | Summary: HarfBuzz API documentation | |
207 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
208 | Group: Documentation | |
29fa7f1d ER |
209 | %if "%{_rpmversion}" >= "5" |
210 | BuildArch: noarch | |
211 | %endif | |
96f54f6c JB |
212 | |
213 | %description apidocs | |
214 | API documentation for HarfBuzz libraries. | |
215 | ||
216 | %description apidocs -l pl.UTF-8 | |
217 | Dokumentacja API bibliotek HarfBuzz. | |
218 | ||
cf468305 JB |
219 | %prep |
220 | %setup -q | |
221 | ||
26e1b58a | 222 | %patch0 -p1 |
d18130a6 | 223 | |
cf468305 | 224 | %build |
d83c11ab JB |
225 | %{__libtoolize} |
226 | %{__aclocal} -I m4 | |
227 | %{__autoconf} | |
228 | %{__autoheader} | |
229 | %{__automake} | |
cf468305 JB |
230 | %configure \ |
231 | --disable-silent-rules \ | |
d18130a6 JB |
232 | %{?with_static_libs:--enable-static} \ |
233 | --with-cairo \ | |
234 | --with-freetype \ | |
235 | --with-glib \ | |
96f54f6c | 236 | --with-gobject \ |
d18130a6 | 237 | %{?with_graphite2:--with-graphite2} \ |
96f54f6c | 238 | --with-html-dir=%{_gtkdocdir} \ |
d18130a6 | 239 | --with-icu%{!?with_icu:=no} |
cf468305 JB |
240 | %{__make} |
241 | ||
c9ed3fb9 AM |
242 | %{?with_tests:%{__make} check} |
243 | ||
cf468305 JB |
244 | %install |
245 | rm -rf $RPM_BUILD_ROOT | |
d18130a6 | 246 | %{__make} install \ |
cf468305 JB |
247 | DESTDIR=$RPM_BUILD_ROOT |
248 | ||
4e2c56b4 | 249 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
250 | |
251 | %clean | |
252 | rm -rf $RPM_BUILD_ROOT | |
253 | ||
254 | %post -p /sbin/ldconfig | |
255 | %postun -p /sbin/ldconfig | |
256 | ||
0844366e ER |
257 | %post gobject -p /sbin/ldconfig |
258 | %postun gobject -p /sbin/ldconfig | |
259 | ||
d18130a6 JB |
260 | %post icu -p /sbin/ldconfig |
261 | %postun icu -p /sbin/ldconfig | |
262 | ||
2141b1ec JP |
263 | %post subset -p /sbin/ldconfig |
264 | %postun subset -p /sbin/ldconfig | |
265 | ||
cf468305 JB |
266 | %files |
267 | %defattr(644,root,root,755) | |
d18130a6 | 268 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO |
cf468305 JB |
269 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* |
270 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
0844366e | 271 | |
cf468305 JB |
272 | %files devel |
273 | %defattr(644,root,root,755) | |
274 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
d18130a6 JB |
275 | %dir %{_includedir}/harfbuzz |
276 | %{_includedir}/harfbuzz/hb.h | |
3ee666c8 JP |
277 | %{_includedir}/harfbuzz/hb-aat.h |
278 | %{_includedir}/harfbuzz/hb-aat-layout.h | |
d18130a6 JB |
279 | %{_includedir}/harfbuzz/hb-blob.h |
280 | %{_includedir}/harfbuzz/hb-buffer.h | |
281 | %{_includedir}/harfbuzz/hb-common.h | |
96f54f6c JB |
282 | %{_includedir}/harfbuzz/hb-deprecated.h |
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 |
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 |