]>
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 | |
298931dd | 11 | Version: 1.8.2 |
da2b2fda | 12 | Release: 1 |
cf468305 JB |
13 | License: MIT |
14 | Group: Libraries | |
d23beedf | 15 | Source0: https://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 |
298931dd | 16 | # Source0-md5: ff048f84547041643f9d726547058570 |
26e1b58a | 17 | Patch0: pc_deps.patch |
d23beedf | 18 | URL: https://www.freedesktop.org/wiki/HarfBuzz |
d83c11ab JB |
19 | BuildRequires: autoconf >= 2.64 |
20 | BuildRequires: automake >= 1:1.11.1 | |
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 |
d18130a6 | 28 | %{?with_graphite2:BuildRequires: graphite2-devel} |
96f54f6c | 29 | BuildRequires: gtk-doc >= 1.15 |
d18130a6 | 30 | %{?with_icu:BuildRequires: libicu-devel} |
cf468305 | 31 | BuildRequires: libstdc++-devel |
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 |
06d83441 | 36 | Requires: freetype >= 1:2.9 |
8acbd1ec | 37 | Requires: glib2 >= 1:2.38 |
cf468305 JB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | Internationalized OpenType text layout and rendering library. | |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
45 | obsługująca wiele języków. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for HarfBuzz library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
06d83441 | 52 | Requires: freetype-devel >= 1:2.9 |
8acbd1ec | 53 | Requires: glib2-devel >= 1:2.38 |
d18130a6 | 54 | %{?with_graphite2:Requires: graphite2-devel} |
cf468305 JB |
55 | Requires: libstdc++-devel |
56 | ||
57 | %description devel | |
58 | Header files for HarfBuzz library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki HarfBuzz. | |
62 | ||
63 | %package static | |
64 | Summary: Static HarfBuzz library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static HarfBuzz library. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka HarfBuzz. | |
74 | ||
0844366e ER |
75 | %package gobject |
76 | Summary: Harfbuzz GObject interface | |
b4123cee | 77 | Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz |
0844366e | 78 | Group: Libraries |
214fe00a | 79 | Requires: %{name} = %{version}-%{release} |
0844366e ER |
80 | |
81 | %description gobject | |
82 | Harfbuzz GObject interface. | |
83 | ||
84 | %description gobject -l pl.UTF-8 | |
b4123cee | 85 | Interfejs GObject do biblioteki Harfbuzz. |
0844366e ER |
86 | |
87 | %package gobject-devel | |
88 | Summary: Header files for Harfbuzz GObject interface | |
b4123cee | 89 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz |
0844366e ER |
90 | Group: Development/Libraries |
91 | Requires: %{name}-devel = %{version}-%{release} | |
92 | Requires: %{name}-gobject = %{version}-%{release} | |
0844366e ER |
93 | |
94 | %description gobject-devel | |
95 | This is the package containing the header files for Harfbuzz GObject | |
96 | interface. | |
97 | ||
98 | %description gobject-devel -l pl.UTF-8 | |
b4123cee JB |
99 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki |
100 | Harfbuzz. | |
0844366e ER |
101 | |
102 | %package gobject-static | |
103 | Summary: Static Harfbuzz GObject library | |
104 | Summary(pl.UTF-8): Statyczna biblioteka Harfbuzz GObject | |
105 | Group: Development/Libraries | |
106 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
107 | ||
108 | %description gobject-static | |
109 | Static Harfbuzz GObject library. | |
110 | ||
111 | %description gobject-static -l pl.UTF-8 | |
112 | Statyczna biblioteka Harfbuzz GObject. | |
113 | ||
d18130a6 JB |
114 | %package icu |
115 | Summary: HarfBuzz text shaping library - ICU integration | |
116 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU | |
117 | Group: Libraries | |
118 | Requires: %{name} = %{version}-%{release} | |
119 | ||
120 | %description icu | |
121 | HarfBuzz text shaping library - ICU integration. | |
122 | ||
123 | %description icu -l pl.UTF-8 | |
124 | Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU. | |
125 | ||
126 | %package icu-devel | |
127 | Summary: Header file for HarfBuzz ICU library | |
128 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki HarfBuzz ICU | |
129 | Group: Development/Libraries | |
130 | Requires: %{name}-devel = %{version}-%{release} | |
131 | Requires: %{name}-icu = %{version}-%{release} | |
132 | Requires: libicu-devel | |
133 | ||
134 | %description icu-devel | |
135 | Header file for HarfBuzz ICU library. | |
136 | ||
137 | %description icu-devel -l pl.UTF-8 | |
138 | Plik nagłówkowy biblioteki HarfBuzz ICU. | |
139 | ||
140 | %package icu-static | |
141 | Summary: Static HarfBuzz ICU library | |
142 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz ICU | |
143 | Group: Development/Libraries | |
144 | Requires: %{name}-icu-devel = %{version}-%{release} | |
145 | ||
146 | %description icu-static | |
147 | Static HarfBuzz ICU library. | |
148 | ||
149 | %description icu-static -l pl.UTF-8 | |
150 | Biblioteka statyczna HarfBuzz ICU. | |
151 | ||
2141b1ec JP |
152 | %package subset |
153 | Summary: HarfBuzz text shaping library - font subsetter | |
154 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - font subsetter | |
155 | Group: Libraries | |
156 | Requires: %{name} = %{version}-%{release} | |
157 | ||
158 | %description subset | |
159 | HarfBuzz text shaping library - font subsetter. | |
160 | ||
161 | %description subset -l pl.UTF-8 | |
162 | Biblioteka HarfBuzz do rysowania tekstu - font subsetter. | |
163 | ||
164 | %package subset-devel | |
4f528c8f JB |
165 | Summary: Header files for HarfBuzz subset library |
166 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz subset | |
2141b1ec JP |
167 | Group: Development/Libraries |
168 | Requires: %{name}-devel = %{version}-%{release} | |
169 | Requires: %{name}-subset = %{version}-%{release} | |
2141b1ec JP |
170 | |
171 | %description subset-devel | |
4f528c8f | 172 | Header files for HarfBuzz subset library. |
2141b1ec JP |
173 | |
174 | %description subset-devel -l pl.UTF-8 | |
4f528c8f | 175 | Pliki nagłówkowe biblioteki HarfBuzz subset. |
2141b1ec JP |
176 | |
177 | %package subset-static | |
178 | Summary: Static HarfBuzz subset library | |
179 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz subset | |
180 | Group: Development/Libraries | |
181 | Requires: %{name}-subset-devel = %{version}-%{release} | |
182 | ||
183 | %description subset-static | |
184 | Static HarfBuzz subset library. | |
185 | ||
186 | %description subset-static -l pl.UTF-8 | |
187 | Biblioteka statyczna HarfBuzz subset. | |
188 | ||
214fe00a | 189 | %package progs |
b4123cee JB |
190 | Summary: HarfBuzz command-line utilities |
191 | Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń | |
214fe00a ER |
192 | Group: Libraries |
193 | Requires: %{name} = %{version}-%{release} | |
194 | Requires: cairo >= 1.8.0 | |
195 | ||
196 | %description progs | |
b4123cee JB |
197 | HarfBuzz command-line utilities. |
198 | ||
199 | %description progs -l pl.UTF-8 | |
200 | Narzędzia HarfBuzz uruchamiane z linii poleceń. | |
214fe00a | 201 | |
96f54f6c JB |
202 | %package apidocs |
203 | Summary: HarfBuzz API documentation | |
204 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
205 | Group: Documentation | |
29fa7f1d ER |
206 | %if "%{_rpmversion}" >= "5" |
207 | BuildArch: noarch | |
208 | %endif | |
96f54f6c JB |
209 | |
210 | %description apidocs | |
211 | API documentation for HarfBuzz libraries. | |
212 | ||
213 | %description apidocs -l pl.UTF-8 | |
214 | Dokumentacja API bibliotek HarfBuzz. | |
215 | ||
cf468305 JB |
216 | %prep |
217 | %setup -q | |
218 | ||
26e1b58a | 219 | %patch0 -p1 |
d18130a6 | 220 | |
cf468305 | 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 | |
274 | %{_includedir}/harfbuzz/hb-blob.h | |
275 | %{_includedir}/harfbuzz/hb-buffer.h | |
276 | %{_includedir}/harfbuzz/hb-common.h | |
96f54f6c JB |
277 | %{_includedir}/harfbuzz/hb-deprecated.h |
278 | %{_includedir}/harfbuzz/hb-face.h | |
d18130a6 JB |
279 | %{_includedir}/harfbuzz/hb-font.h |
280 | %{_includedir}/harfbuzz/hb-ft.h | |
281 | %{_includedir}/harfbuzz/hb-glib.h | |
d18130a6 | 282 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
da2b2fda | 283 | %{_includedir}/harfbuzz/hb-map.h |
c9ed3fb9 | 284 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 285 | %{_includedir}/harfbuzz/hb-ot-layout.h |
8acbd1ec | 286 | %{_includedir}/harfbuzz/hb-ot-math.h |
16fffe4d | 287 | %{_includedir}/harfbuzz/hb-ot-shape.h |
d18130a6 | 288 | %{_includedir}/harfbuzz/hb-ot-tag.h |
13e3f4ef | 289 | %{_includedir}/harfbuzz/hb-ot-var.h |
d18130a6 JB |
290 | %{_includedir}/harfbuzz/hb-ot.h |
291 | %{_includedir}/harfbuzz/hb-set.h | |
292 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
293 | %{_includedir}/harfbuzz/hb-shape.h | |
294 | %{_includedir}/harfbuzz/hb-unicode.h | |
295 | %{_includedir}/harfbuzz/hb-version.h | |
cf468305 | 296 | %{_pkgconfigdir}/harfbuzz.pc |
2141b1ec JP |
297 | %dir %{_libdir}/cmake/harfbuzz |
298 | %{_libdir}/cmake/harfbuzz/harfbuzz-config.cmake | |
cf468305 JB |
299 | |
300 | %if %{with static_libs} | |
301 | %files static | |
302 | %defattr(644,root,root,755) | |
303 | %{_libdir}/libharfbuzz.a | |
304 | %endif | |
d18130a6 | 305 | |
b4123cee JB |
306 | %files gobject |
307 | %defattr(644,root,root,755) | |
308 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* | |
309 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
310 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib | |
311 | ||
312 | %files gobject-devel | |
313 | %defattr(644,root,root,755) | |
314 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so | |
315 | %{_includedir}/harfbuzz/hb-gobject.h | |
316 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
317 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
318 | %{_pkgconfigdir}/harfbuzz-gobject.pc | |
319 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir | |
320 | ||
321 | %if %{with static_libs} | |
322 | %files gobject-static | |
323 | %defattr(644,root,root,755) | |
324 | %{_libdir}/libharfbuzz-gobject.a | |
325 | %endif | |
326 | ||
d18130a6 JB |
327 | %if %{with icu} |
328 | %files icu | |
329 | %defattr(644,root,root,755) | |
330 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.* | |
331 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0 | |
332 | ||
333 | %files icu-devel | |
334 | %defattr(644,root,root,755) | |
335 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so | |
336 | %{_includedir}/harfbuzz/hb-icu.h | |
337 | %{_pkgconfigdir}/harfbuzz-icu.pc | |
338 | ||
339 | %if %{with static_libs} | |
340 | %files icu-static | |
341 | %defattr(644,root,root,755) | |
342 | %{_libdir}/libharfbuzz-icu.a | |
343 | %endif | |
344 | %endif | |
96f54f6c | 345 | |
2141b1ec JP |
346 | %files subset |
347 | %defattr(644,root,root,755) | |
348 | %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so.*.*.* | |
349 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-subset.so.0 | |
350 | ||
351 | %files subset-devel | |
352 | %defattr(644,root,root,755) | |
353 | %attr(755,root,root) %{_libdir}/libharfbuzz-subset.so | |
354 | %{_includedir}/harfbuzz/hb-subset.h | |
355 | %{_includedir}/harfbuzz/hb-subset-glyf.hh | |
356 | %{_includedir}/harfbuzz/hb-subset-plan.hh | |
357 | %{_includedir}/harfbuzz/hb-subset-private.hh | |
358 | %{_pkgconfigdir}/harfbuzz-subset.pc | |
359 | ||
360 | %if %{with static_libs} | |
361 | %files subset-static | |
362 | %defattr(644,root,root,755) | |
363 | %{_libdir}/libharfbuzz-subset.a | |
364 | %endif | |
365 | ||
214fe00a ER |
366 | %files progs |
367 | %defattr(644,root,root,755) | |
368 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure | |
369 | %attr(755,root,root) %{_bindir}/hb-shape | |
2141b1ec | 370 | %attr(755,root,root) %{_bindir}/hb-subset |
214fe00a ER |
371 | %attr(755,root,root) %{_bindir}/hb-view |
372 | ||
96f54f6c JB |
373 | %files apidocs |
374 | %defattr(644,root,root,755) | |
375 | %{_gtkdocdir}/harfbuzz |