]>
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 | |
d83c11ab | 11 | Version: 0.9.35 |
6edfe36a | 12 | Release: 2 |
cf468305 JB |
13 | License: MIT |
14 | Group: Libraries | |
15 | Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 | |
d83c11ab | 16 | # Source0-md5: 531ee8650626ecddcd90b2a4637e31d4 |
cf468305 | 17 | URL: http://www.freedesktop.org/wiki/HarfBuzz |
d83c11ab JB |
18 | BuildRequires: autoconf >= 2.64 |
19 | BuildRequires: automake >= 1:1.11.1 | |
cf468305 | 20 | BuildRequires: cairo-devel >= 1.8.0 |
2979e716 | 21 | BuildRequires: freetype-devel >= 1:2.3.8 |
cf468305 | 22 | BuildRequires: glib2-devel >= 1:2.16 |
6681ba55 | 23 | BuildRequires: gobject-introspection-devel >= 1.34.0 |
d18130a6 | 24 | %{?with_graphite2:BuildRequires: graphite2-devel} |
96f54f6c | 25 | BuildRequires: gtk-doc >= 1.15 |
d18130a6 | 26 | %{?with_icu:BuildRequires: libicu-devel} |
cf468305 | 27 | BuildRequires: libstdc++-devel |
d83c11ab | 28 | BuildRequires: libtool >= 2:2.2 |
d9ba18f6 | 29 | BuildRequires: pkgconfig >= 1:0.20 |
d83c11ab | 30 | BuildRequires: sed >= 4.0 |
2979e716 | 31 | Requires: freetype >= 1:2.3.8 |
cf468305 JB |
32 | Requires: glib2 >= 1:2.16 |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | Internationalized OpenType text layout and rendering library. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
40 | obsługująca wiele języków. | |
41 | ||
42 | %package devel | |
43 | Summary: Header files for HarfBuzz library | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
2979e716 | 47 | Requires: freetype-devel >= 1:2.3.8 |
cf468305 | 48 | Requires: glib2-devel >= 1:2.16 |
d18130a6 | 49 | %{?with_graphite2:Requires: graphite2-devel} |
cf468305 JB |
50 | Requires: libstdc++-devel |
51 | ||
52 | %description devel | |
53 | Header files for HarfBuzz library. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe biblioteki HarfBuzz. | |
57 | ||
58 | %package static | |
59 | Summary: Static HarfBuzz library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static HarfBuzz library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka HarfBuzz. | |
69 | ||
0844366e ER |
70 | %package gobject |
71 | Summary: Harfbuzz GObject interface | |
b4123cee | 72 | Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz |
0844366e | 73 | Group: Libraries |
214fe00a | 74 | Requires: %{name} = %{version}-%{release} |
0844366e ER |
75 | |
76 | %description gobject | |
77 | Harfbuzz GObject interface. | |
78 | ||
79 | %description gobject -l pl.UTF-8 | |
b4123cee | 80 | Interfejs GObject do biblioteki Harfbuzz. |
0844366e ER |
81 | |
82 | %package gobject-devel | |
83 | Summary: Header files for Harfbuzz GObject interface | |
b4123cee | 84 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz |
0844366e ER |
85 | Group: Development/Libraries |
86 | Requires: %{name}-devel = %{version}-%{release} | |
87 | Requires: %{name}-gobject = %{version}-%{release} | |
88 | Requires: glib2-devel >= 1:2.12.2 | |
89 | ||
90 | %description gobject-devel | |
91 | This is the package containing the header files for Harfbuzz GObject | |
92 | interface. | |
93 | ||
94 | %description gobject-devel -l pl.UTF-8 | |
b4123cee JB |
95 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki |
96 | Harfbuzz. | |
0844366e ER |
97 | |
98 | %package gobject-static | |
99 | Summary: Static Harfbuzz GObject library | |
100 | Summary(pl.UTF-8): Statyczna biblioteka Harfbuzz GObject | |
101 | Group: Development/Libraries | |
102 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
103 | ||
104 | %description gobject-static | |
105 | Static Harfbuzz GObject library. | |
106 | ||
107 | %description gobject-static -l pl.UTF-8 | |
108 | Statyczna biblioteka Harfbuzz GObject. | |
109 | ||
d18130a6 JB |
110 | %package icu |
111 | Summary: HarfBuzz text shaping library - ICU integration | |
112 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU | |
113 | Group: Libraries | |
114 | Requires: %{name} = %{version}-%{release} | |
115 | ||
116 | %description icu | |
117 | HarfBuzz text shaping library - ICU integration. | |
118 | ||
119 | %description icu -l pl.UTF-8 | |
120 | Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU. | |
121 | ||
122 | %package icu-devel | |
123 | Summary: Header file for HarfBuzz ICU library | |
124 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki HarfBuzz ICU | |
125 | Group: Development/Libraries | |
126 | Requires: %{name}-devel = %{version}-%{release} | |
127 | Requires: %{name}-icu = %{version}-%{release} | |
128 | Requires: libicu-devel | |
129 | ||
130 | %description icu-devel | |
131 | Header file for HarfBuzz ICU library. | |
132 | ||
133 | %description icu-devel -l pl.UTF-8 | |
134 | Plik nagłówkowy biblioteki HarfBuzz ICU. | |
135 | ||
136 | %package icu-static | |
137 | Summary: Static HarfBuzz ICU library | |
138 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz ICU | |
139 | Group: Development/Libraries | |
140 | Requires: %{name}-icu-devel = %{version}-%{release} | |
141 | ||
142 | %description icu-static | |
143 | Static HarfBuzz ICU library. | |
144 | ||
145 | %description icu-static -l pl.UTF-8 | |
146 | Biblioteka statyczna HarfBuzz ICU. | |
147 | ||
214fe00a | 148 | %package progs |
b4123cee JB |
149 | Summary: HarfBuzz command-line utilities |
150 | Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń | |
214fe00a ER |
151 | Group: Libraries |
152 | Requires: %{name} = %{version}-%{release} | |
153 | Requires: cairo >= 1.8.0 | |
154 | ||
155 | %description progs | |
b4123cee JB |
156 | HarfBuzz command-line utilities. |
157 | ||
158 | %description progs -l pl.UTF-8 | |
159 | Narzędzia HarfBuzz uruchamiane z linii poleceń. | |
214fe00a | 160 | |
96f54f6c JB |
161 | %package apidocs |
162 | Summary: HarfBuzz API documentation | |
163 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
164 | Group: Documentation | |
29fa7f1d ER |
165 | %if "%{_rpmversion}" >= "5" |
166 | BuildArch: noarch | |
167 | %endif | |
96f54f6c JB |
168 | |
169 | %description apidocs | |
170 | API documentation for HarfBuzz libraries. | |
171 | ||
172 | %description apidocs -l pl.UTF-8 | |
173 | Dokumentacja API bibliotek HarfBuzz. | |
174 | ||
cf468305 JB |
175 | %prep |
176 | %setup -q | |
177 | ||
d18130a6 JB |
178 | # missing dependencies |
179 | cat >> src/harfbuzz.pc.in <<EOF | |
96f54f6c | 180 | Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2} |
d18130a6 JB |
181 | EOF |
182 | ||
d83c11ab JB |
183 | # test failing in 0.9.35; remove whole fragment when it gets fixed |
184 | %if "%{version}" == "0.9.35" | |
185 | %{__sed} -i -e '/arabic-fallback-shaping.tests/d' test/shaping/Makefile.am | |
186 | %else | |
187 | echo "Recheck arabic-fallback-shaping.tests in current version" | |
188 | exit 1 | |
189 | %endif | |
190 | ||
cf468305 | 191 | %build |
d83c11ab JB |
192 | %{__libtoolize} |
193 | %{__aclocal} -I m4 | |
194 | %{__autoconf} | |
195 | %{__autoheader} | |
196 | %{__automake} | |
cf468305 JB |
197 | %configure \ |
198 | --disable-silent-rules \ | |
d18130a6 JB |
199 | %{?with_static_libs:--enable-static} \ |
200 | --with-cairo \ | |
201 | --with-freetype \ | |
202 | --with-glib \ | |
96f54f6c | 203 | --with-gobject \ |
d18130a6 | 204 | %{?with_graphite2:--with-graphite2} \ |
96f54f6c | 205 | --with-html-dir=%{_gtkdocdir} \ |
d18130a6 | 206 | --with-icu%{!?with_icu:=no} |
cf468305 JB |
207 | %{__make} |
208 | ||
c9ed3fb9 AM |
209 | %{?with_tests:%{__make} check} |
210 | ||
cf468305 JB |
211 | %install |
212 | rm -rf $RPM_BUILD_ROOT | |
d18130a6 | 213 | %{__make} install \ |
cf468305 JB |
214 | DESTDIR=$RPM_BUILD_ROOT |
215 | ||
4e2c56b4 | 216 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
217 | |
218 | %clean | |
219 | rm -rf $RPM_BUILD_ROOT | |
220 | ||
221 | %post -p /sbin/ldconfig | |
222 | %postun -p /sbin/ldconfig | |
223 | ||
0844366e ER |
224 | %post gobject -p /sbin/ldconfig |
225 | %postun gobject -p /sbin/ldconfig | |
226 | ||
d18130a6 JB |
227 | %post icu -p /sbin/ldconfig |
228 | %postun icu -p /sbin/ldconfig | |
229 | ||
cf468305 JB |
230 | %files |
231 | %defattr(644,root,root,755) | |
d18130a6 | 232 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO |
cf468305 JB |
233 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* |
234 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
0844366e | 235 | |
cf468305 JB |
236 | %files devel |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
d18130a6 JB |
239 | %dir %{_includedir}/harfbuzz |
240 | %{_includedir}/harfbuzz/hb.h | |
241 | %{_includedir}/harfbuzz/hb-blob.h | |
242 | %{_includedir}/harfbuzz/hb-buffer.h | |
243 | %{_includedir}/harfbuzz/hb-common.h | |
96f54f6c JB |
244 | %{_includedir}/harfbuzz/hb-deprecated.h |
245 | %{_includedir}/harfbuzz/hb-face.h | |
d18130a6 JB |
246 | %{_includedir}/harfbuzz/hb-font.h |
247 | %{_includedir}/harfbuzz/hb-ft.h | |
248 | %{_includedir}/harfbuzz/hb-glib.h | |
d18130a6 | 249 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
c9ed3fb9 | 250 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 251 | %{_includedir}/harfbuzz/hb-ot-layout.h |
16fffe4d | 252 | %{_includedir}/harfbuzz/hb-ot-shape.h |
d18130a6 JB |
253 | %{_includedir}/harfbuzz/hb-ot-tag.h |
254 | %{_includedir}/harfbuzz/hb-ot.h | |
255 | %{_includedir}/harfbuzz/hb-set.h | |
256 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
257 | %{_includedir}/harfbuzz/hb-shape.h | |
258 | %{_includedir}/harfbuzz/hb-unicode.h | |
259 | %{_includedir}/harfbuzz/hb-version.h | |
cf468305 JB |
260 | %{_pkgconfigdir}/harfbuzz.pc |
261 | ||
262 | %if %{with static_libs} | |
263 | %files static | |
264 | %defattr(644,root,root,755) | |
265 | %{_libdir}/libharfbuzz.a | |
266 | %endif | |
d18130a6 | 267 | |
b4123cee JB |
268 | %files gobject |
269 | %defattr(644,root,root,755) | |
270 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* | |
271 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
272 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib | |
273 | ||
274 | %files gobject-devel | |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so | |
277 | %{_includedir}/harfbuzz/hb-gobject.h | |
278 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
279 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
280 | %{_pkgconfigdir}/harfbuzz-gobject.pc | |
281 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir | |
282 | ||
283 | %if %{with static_libs} | |
284 | %files gobject-static | |
285 | %defattr(644,root,root,755) | |
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 | |
214fe00a ER |
308 | %files progs |
309 | %defattr(644,root,root,755) | |
310 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure | |
311 | %attr(755,root,root) %{_bindir}/hb-shape | |
312 | %attr(755,root,root) %{_bindir}/hb-view | |
313 | ||
96f54f6c JB |
314 | %files apidocs |
315 | %defattr(644,root,root,755) | |
316 | %{_gtkdocdir}/harfbuzz |