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