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