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: 0e27e531f4c4acff601ebff0957755c2
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 >= 1: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 >= 1: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 >= 1: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}
190 --disable-silent-rules \
191 %{?with_static_libs:--enable-static} \
196 %{?with_graphite2:--with-graphite2} \
197 --with-html-dir=%{_gtkdocdir} \
198 --with-icu%{!?with_icu:=no}
201 %{?with_tests:%{__make} check}
204 rm -rf $RPM_BUILD_ROOT
206 DESTDIR=$RPM_BUILD_ROOT
208 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
211 rm -rf $RPM_BUILD_ROOT
213 %post -p /sbin/ldconfig
214 %postun -p /sbin/ldconfig
216 %post gobject -p /sbin/ldconfig
217 %postun gobject -p /sbin/ldconfig
219 %post icu -p /sbin/ldconfig
220 %postun icu -p /sbin/ldconfig
223 %defattr(644,root,root,755)
224 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
225 %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.*
226 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_libdir}/libharfbuzz.so
231 %dir %{_includedir}/harfbuzz
232 %{_includedir}/harfbuzz/hb.h
233 %{_includedir}/harfbuzz/hb-blob.h
234 %{_includedir}/harfbuzz/hb-buffer.h
235 %{_includedir}/harfbuzz/hb-common.h
236 %{_includedir}/harfbuzz/hb-deprecated.h
237 %{_includedir}/harfbuzz/hb-face.h
238 %{_includedir}/harfbuzz/hb-font.h
239 %{_includedir}/harfbuzz/hb-ft.h
240 %{_includedir}/harfbuzz/hb-glib.h
241 %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h}
242 %{_includedir}/harfbuzz/hb-ot-font.h
243 %{_includedir}/harfbuzz/hb-ot-layout.h
244 %{_includedir}/harfbuzz/hb-ot-shape.h
245 %{_includedir}/harfbuzz/hb-ot-tag.h
246 %{_includedir}/harfbuzz/hb-ot.h
247 %{_includedir}/harfbuzz/hb-set.h
248 %{_includedir}/harfbuzz/hb-shape-plan.h
249 %{_includedir}/harfbuzz/hb-shape.h
250 %{_includedir}/harfbuzz/hb-unicode.h
251 %{_includedir}/harfbuzz/hb-version.h
252 %{_pkgconfigdir}/harfbuzz.pc
254 %if %{with static_libs}
256 %defattr(644,root,root,755)
257 %{_libdir}/libharfbuzz.a
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.*
263 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0
264 %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so
269 %{_includedir}/harfbuzz/hb-gobject.h
270 %{_includedir}/harfbuzz/hb-gobject-enums.h
271 %{_includedir}/harfbuzz/hb-gobject-structs.h
272 %{_pkgconfigdir}/harfbuzz-gobject.pc
273 %{_datadir}/gir-1.0/HarfBuzz-0.0.gir
275 %if %{with static_libs}
276 %files gobject-static
277 %defattr(644,root,root,755)
278 %{_libdir}/libharfbuzz-gobject.a
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.*
285 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so
290 %{_includedir}/harfbuzz/hb-icu.h
291 %{_pkgconfigdir}/harfbuzz-icu.pc
293 %if %{with static_libs}
295 %defattr(644,root,root,755)
296 %{_libdir}/libharfbuzz-icu.a
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_bindir}/hb-ot-shape-closure
303 %attr(755,root,root) %{_bindir}/hb-shape
304 %attr(755,root,root) %{_bindir}/hb-view
307 %defattr(644,root,root,755)
308 %{_gtkdocdir}/harfbuzz