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