3 %bcond_without static_libs # static libraries build
4 %bcond_without graphite2 # Graphite2 library usage
5 %bcond_without icu # ICU integration
6 %bcond_without tests # "make check" call
8 Summary: HarfBuzz - internationalized text shaping library
9 Summary(pl.UTF-8): HarfBuzz - biblioteka rysująca tekst z obsługą wielu języków
15 Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2
16 # Source0-md5: 531ee8650626ecddcd90b2a4637e31d4
17 URL: http://www.freedesktop.org/wiki/HarfBuzz
18 BuildRequires: autoconf >= 2.64
19 BuildRequires: automake >= 1:1.11.1
20 BuildRequires: cairo-devel >= 1.8.0
21 BuildRequires: freetype-devel >= 2.3.8
22 BuildRequires: glib2-devel >= 1:2.16
23 BuildRequires: gobject-introspection-devel >= 1.34.0
24 %{?with_graphite2:BuildRequires: graphite2-devel}
25 BuildRequires: gtk-doc >= 1.15
26 %{?with_icu:BuildRequires: libicu-devel}
27 BuildRequires: libstdc++-devel
28 BuildRequires: libtool >= 2:2.2
29 BuildRequires: pkgconfig >= 1:0.20
30 BuildRequires: sed >= 4.0
31 Requires: freetype >= 2.3.8
32 Requires: glib2 >= 1:2.16
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Internationalized OpenType text layout and rendering library.
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.
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}
47 Requires: freetype-devel >= 2.3.8
48 Requires: glib2-devel >= 1:2.16
49 %{?with_graphite2:Requires: graphite2-devel}
50 Requires: libstdc++-devel
53 Header files for HarfBuzz library.
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki HarfBuzz.
59 Summary: Static HarfBuzz library
60 Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 Static HarfBuzz library.
67 %description static -l pl.UTF-8
68 Statyczna biblioteka HarfBuzz.
71 Summary: Harfbuzz GObject interface
72 Summary(pl.UTF-8): Interfejs GObject do biblioteki Harfbuzz
74 Requires: %{name} = %{version}-%{release}
77 Harfbuzz GObject interface.
79 %description gobject -l pl.UTF-8
80 Interfejs GObject do biblioteki Harfbuzz.
82 %package gobject-devel
83 Summary: Header files for Harfbuzz GObject interface
84 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do biblioteki Harfbuzz
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
87 Requires: %{name}-gobject = %{version}-%{release}
88 Requires: glib2-devel >= 1:2.12.2
90 %description gobject-devel
91 This is the package containing the header files for Harfbuzz GObject
94 %description gobject-devel -l pl.UTF-8
95 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do biblioteki
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}
104 %description gobject-static
105 Static Harfbuzz GObject library.
107 %description gobject-static -l pl.UTF-8
108 Statyczna biblioteka Harfbuzz GObject.
111 Summary: HarfBuzz text shaping library - ICU integration
112 Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU
114 Requires: %{name} = %{version}-%{release}
117 HarfBuzz text shaping library - ICU integration.
119 %description icu -l pl.UTF-8
120 Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU.
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
130 %description icu-devel
131 Header file for HarfBuzz ICU library.
133 %description icu-devel -l pl.UTF-8
134 Plik nagłówkowy biblioteki HarfBuzz ICU.
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}
142 %description icu-static
143 Static HarfBuzz ICU library.
145 %description icu-static -l pl.UTF-8
146 Biblioteka statyczna HarfBuzz ICU.
149 Summary: HarfBuzz command-line utilities
150 Summary(pl.UTF-8): Narzędzia HarfBuzz uruchamiane z linii poleceń
152 Requires: %{name} = %{version}-%{release}
153 Requires: cairo >= 1.8.0
156 HarfBuzz command-line utilities.
158 %description progs -l pl.UTF-8
159 Narzędzia HarfBuzz uruchamiane z linii poleceń.
162 Summary: HarfBuzz API documentation
163 Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz
165 %if "%{_rpmversion}" >= "5"
170 API documentation for HarfBuzz libraries.
172 %description apidocs -l pl.UTF-8
173 Dokumentacja API bibliotek HarfBuzz.
178 # missing dependencies
179 cat >> src/harfbuzz.pc.in <<EOF
180 Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2}
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
187 echo "Recheck arabic-fallback-shaping.tests in current version"
198 --disable-silent-rules \
199 %{?with_static_libs:--enable-static} \
204 %{?with_graphite2:--with-graphite2} \
205 --with-html-dir=%{_gtkdocdir} \
206 --with-icu%{!?with_icu:=no}
209 %{?with_tests:%{__make} check}
212 rm -rf $RPM_BUILD_ROOT
214 DESTDIR=$RPM_BUILD_ROOT
216 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
219 rm -rf $RPM_BUILD_ROOT
221 %post -p /sbin/ldconfig
222 %postun -p /sbin/ldconfig
224 %post gobject -p /sbin/ldconfig
225 %postun gobject -p /sbin/ldconfig
227 %post icu -p /sbin/ldconfig
228 %postun icu -p /sbin/ldconfig
231 %defattr(644,root,root,755)
232 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
233 %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.*
234 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_libdir}/libharfbuzz.so
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
244 %{_includedir}/harfbuzz/hb-deprecated.h
245 %{_includedir}/harfbuzz/hb-face.h
246 %{_includedir}/harfbuzz/hb-font.h
247 %{_includedir}/harfbuzz/hb-ft.h
248 %{_includedir}/harfbuzz/hb-glib.h
249 %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h}
250 %{_includedir}/harfbuzz/hb-ot-font.h
251 %{_includedir}/harfbuzz/hb-ot-layout.h
252 %{_includedir}/harfbuzz/hb-ot-shape.h
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
260 %{_pkgconfigdir}/harfbuzz.pc
262 %if %{with static_libs}
264 %defattr(644,root,root,755)
265 %{_libdir}/libharfbuzz.a
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
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
283 %if %{with static_libs}
284 %files gobject-static
285 %defattr(644,root,root,755)
286 %{_libdir}/libharfbuzz-gobject.a
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
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
301 %if %{with static_libs}
303 %defattr(644,root,root,755)
304 %{_libdir}/libharfbuzz-icu.a
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
315 %defattr(644,root,root,755)
316 %{_gtkdocdir}/harfbuzz