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